Update workflow files to align with the latest standard template and apply specified changes using intelligent delegation to subagents. Handles both single workflow updates and bulk updates of all workflows in parallel.
Updates workflow files to match the latest template standards and apply specified changes. Use to maintain consistency across workflows or when templates evolve.
/plugin marketplace add alvis/.claude/plugin install governance@alvisUpdate workflow files to align with the latest standard template and apply specified changes using intelligent delegation to subagents. Handles both single workflow updates and bulk updates of all workflows in parallel.
What this command does NOT do:
When to REJECT:
Invalid workflow file paths
Malformed change specifications
Attempting to violate constitutional standards
Template file is missing or corrupted
Modified files: !git diff --name-only
Staged files: !git diff --cached --name-only
Template: !ls template:workflow 2>/dev/null || echo "Template not found"
ultrathink: you'd perform the following steps
[✅/❌] Command: $ARGUMENTS
## Summary
- Workflows updated: [count]
- Changes applied: [change specifications]
- Template alignment: [COMPLETE/PARTIAL/FAILED]
## Actions Taken
1. [Workflow file]: [Status] - [Changes applied]
2. [Workflow file]: [Status] - [Changes applied]
## Subagent Results
- Total agents deployed: [count]
- Successful updates: [count]
- Failed updates: [count] (if any)
## Template Alignment Applied
- Structure updates: [list]
- Section additions: [list]
- Format corrections: [list]
## Changes Applied
- --change1: [Status and details]
- --change2: [Status and details]
## Issues Found (if any)
- **Issue**: [Description]
**Resolution**: [Applied fix or escalation]
## Next Steps (if applicable)
- Review updated workflows for accuracy
- Test workflow execution with sample scenarios
- Commit changes if satisfied with results
/update-workflow "write-code.md"
# Updates specified workflow to match latest template
# Uses one ultrathink subagent for comprehensive analysis
/update-workflow "build-service.md" --change1="add Docker deployment step" --change2="include security scanning phase"
# Applies template alignment plus specified modifications
# Each change becomes a subtask (2a, 2b) in the workflow
/update-workflow
# Discovers all workflow files in [plugin]/constitution/workflows/
# Spawns parallel subagents to update each workflow
# Maintains consistency across entire workflow system
/update-workflow "review-code.md" --change1="integrate AI-assisted review" --change2="add performance criteria" --change3="update approval requirements"
# Applies template + three specific changes
# Subagent creates tasks 1, 2a, 2b, 2c, 3 for comprehensive update
/update-workflow "nonexistent-workflow.md"
# Error: Workflow file not found
# Suggestion: Check available workflows with 'find [plugin]/constitution/workflows -name "*.md"'
# Alternative: Use '/update-workflow' without arguments to update all workflows
/update-workflow "some-workflow.md"
# Error: Template template:workflow not found
# Suggestion: Ensure template exists before updating workflows
# Action: Command aborts to prevent inconsistent updates