Create a new workflow file from the standard template
Creates a new workflow file from the standard template in the constitution/workflows/ directory. Use this when you need to document a repeatable process with clear steps, verification, and rollback procedures.
/plugin marketplace add alvis/.claude/plugin install governance@alvis<name> --howto="step-by-step instructions"Create a new workflow file ("/create-workflow <name> --howto='...'") following the /create-workflow.md workflow. The --howto parameter describes WHAT the workflow does (the steps it will contain), not HOW the AI creates it. Generates workflow files in constitution/workflows/ directory from template:workflow template.
What this command does NOT do:
When to REJECT:
ultrathink: you'd perform the following steps
Output Format:
[✅/❌] Command: $ARGUMENTS
## Summary
- Workflow created: [name].md
- Location: [plugin]/constitution/workflows/[category]/[name].md
- Category: [category]
## Actions Taken
1. Generated workflow from template
2. Structured step-by-step instructions
3. Added verification and rollback procedures
4. Created file at specified location
## Workflow Structure
- Purpose defined
- Steps: [count]
- Verification items: [count]
- Related workflows referenced: [list]
## Next Steps
- Review workflow content
- Test workflow execution
- Update related documentation
/create-workflow "deploy-service" --howto="Build Docker image, push to registry, update Kubernetes deployment, verify health checks"
# Generates: deploy-service.md
# Creates workflow with steps for containerized deployment process
# Category: backend (auto-detected from content)
/create-workflow "frontend/test-component" --howto="Set up test environment, write unit tests with Jest, run tests, verify coverage meets 100% threshold"
# Generates: test-component.md
# Creates workflow with TDD approach for React components
# Category: frontend (explicitly specified)
/create-workflow "verify-dependencies" --howto="Run npm audit, check license compatibility, identify outdated packages, update to latest stable versions, test after updates"
# Generates: verify-dependencies.md
# Creates workflow for dependency management and security
# Category: quality (auto-detected)
/create-workflow "build-rest-endpoint" --howto="Design API contract, implement controller, add validation middleware, write integration tests, document in OpenAPI"
# Generates: build-rest-endpoint.md
# Creates workflow following API design standards
# Includes task tracking and agent delegation
/create-workflow "review-code"
# Error: Workflow already exists
# Location: review-code.md
# Suggestion: Use /update-workflow to modify existing workflow
/create-workflow "analyze-performance"
# Prompt: "What process steps should this workflow document?"
# Waits for user to provide the workflow steps before proceeding
/create-workflow "migrate-database" --howto="Phase 1: Analyze current schema and data. Phase 2: Create migration scripts with rollback. Phase 3: Test migration in staging. Phase 4: Execute production migration with monitoring. Phase 5: Verify data integrity and update documentation"
# Generates: migrate-database.md
# Creates comprehensive workflow with multiple phases
# Includes verification steps and rollback procedures
/create-workflow "collaboration/onboard-developer" --howto="Set up development environment, grant access permissions, assign buddy, complete orientation checklist, first PR review"
# Generates: onboard-developer.md
# Creates workflow for team onboarding process
# References multiple existing workflows