From governance
Update existing slash commands to follow current best practices and template structure. Parses $ARGUMENTS to identify both target commands and specific areas to change. Commands will be upgraded to the latest template with clean, comment-free output and change any content in relate to the specified changes. Intelligently extracts change requirements from arguments, adds missing sections from template, removes all comments, preserves custom functionality, and make sure all the changes are clearly reflected in the command file. Ultrathink mode.
How this skill is triggered — by the user, by Claude, or both
Slash command
/governance:update-commandThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update existing slash commands to follow current best practices and template structure. Parses $ARGUMENTS to identify both target commands and specific areas to change. Commands will be upgraded to the latest template with clean, comment-free output and change any content in relate to the specified changes. Intelligently extracts change requirements from arguments, adds missing sections from te...
Update existing slash commands to follow current best practices and template structure. Parses $ARGUMENTS to identify both target commands and specific areas to change. Commands will be upgraded to the latest template with clean, comment-free output and change any content in relate to the specified changes. Intelligently extracts change requirements from arguments, adds missing sections from template, removes all comments, preserves custom functionality, and make sure all the changes are clearly reflected in the command file. Ultrathink mode.
What this command does NOT do:
When to REJECT:
ultrathink: you'd perform the following steps
Check the session context for **Agent Teams**: enabled under the "Agent Capabilities" section.
Analyze Requirements
Structure Analysis
Identify Applicable Skills & Standards
[plugin]/skills/ for relevant skill processes[plugin]/constitution/standards/ for applicable standardsDelegation Decision
Risk Assessment
Create Team
update-command-teamSpawn Command Update Specialists
team_name: "update-command-team"name: "updater-{N}" (sequential naming)model: "opus"agent_type: "general-purpose"Create and Assign Tasks
Subagent Task Specification
Each Command Update Specialist receives:
ultrathink: adopt the Command Update Specialist mindset
Assignment You're assigned to update command: [command name]
Command Specifications:
Steps
Read Current Command:
Compare with Template:
Apply Updates:
Clean & Finalize:
Report [IMPORTANT] You MUST return the following execution report (<500 tokens) via SendMessage to team-lead:
status: success|failure|partial
command: '[command-name]'
summary: 'Brief description of changes applied'
modifications:
- section: '[section name]'
change: '[what was changed]'
template_compliance: true|false
functionality_preserved: true|false
context_level: '[calculated %]' # (input_tokens / context_window_size) from real usage data
issues: ['issue1', 'issue2', ...] # only if problems encountered
<<<
Progress Monitoring
Collect Results
Shutdown Teammates
Delete Team
| Agent Type | Model | Role | Lifecycle |
|---|---|---|---|
| Command Update Specialist | opus | Updates command files with template alignment and changes | One per command file; spawned for Phase 3, retired in Phase 4 |
When Agent Teams are not available, execute the existing workflow:
Skill Compliance
Primary Implementation
Standards Enforcement
[plugin]/constitution/standards/Edge Case Handling
Quality Assurance
Side Effect Validation
Output Format:
[✅/❌] Command: $ARGUMENTS
## Summary
- Execution mode: [team/subagent]
- Files modified: [count]
- Commands updated: [count/total]
- Specific areas changed: [list]
- Standards compliance: [PASS/FAIL]
## Actions Taken
1. [Action with result]
2. [Action with result]
## Skills Applied (subagent mode)
- [Skill name]: [Status]
## Teammate Results (team mode only)
- Total agents deployed: [count]
- Successful updates: [count]
- Failed updates: [count] (if any)
## Updated Commands
- [command-name]: [Status] - [Changes applied]
- [command-name]: [Status] - [Changes applied]
## Issues Found (if any)
- **Issue**: [Description]
**Fix**: [Applied fix or suggestion]
## Next Steps (if applicable)
- [Required manual action]
- [Recommended follow-up]
/update-command all
# With CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1:
# - Creates update-command-team
# - Spawns parallel Command Update Specialists (one per command)
# - Each specialist updates command with template alignment
# - Aggregates results and reports execution mode: team
/update-command all
# Without agent teams:
# - Uses traditional subagent delegation
# - Updates every command in .claude/commands/
# - Reports execution mode: subagent
/update-command fix-issue
# Updates only fix-issue.md
/update-command "update-command" --area="argument parsing"
# Updates update-command.md focusing on argument parsing section
/update-command "create-component" --changes="include TypeScript types in examples"
# Updates create-component.md to add TypeScript types to examples
/update-command "dev/*"
# Updates all commands in dev/ subdirectory
/update-command "analyze-code review-pr" --area="workflow phase 2"
# Updates specific commands focusing on execution phase
/update-command "commit" --changes="include git hooks validation in workflow"
# Intelligently parses to update commit.md adding git hooks to workflow
/update-command "invalid-target"
# Error: Target not found
# Suggestion: Check available commands with 'ls .claude/commands/'
# Alternative: Use '/update-command all' to update all commands
npx claudepluginhub alvis/.claude --plugin governanceGuides creation of Claude Code slash commands using YAML frontmatter, XML tags like <objective> and <process>, dynamic context, and argument handling.
Guides creation of legacy slash commands for Claude Code (.claude/commands/ format), including YAML frontmatter, dynamic args, bash execution, git integration, and user interaction patterns.
Create custom slash commands for Claude Code including syntax, arguments, bash execution, file references, and frontmatter configuration. Use when creating slash commands, custom commands, .md command files, or when asked about command creation, /command syntax, or command best practices.