Create a new technical standard from template
Creates a new technical standard document from a template in the standards directory. Use this when establishing new coding, security, or quality guidelines for your team.
/plugin marketplace add alvis/.claude/plugin install governance@alvis<name> [--detail=...]Create a new technical standard document in the [plugin]/constitution/standards directory following the template structure. $ARGUMENTS
What this command does NOT do:
When to REJECT:
ultrathink: you'd perform the following steps
Analyze Requirements
Identify Applicable Workflows & Standards
/create-standard.md for creation processRisk Assessment
Workflow Compliance
/create-standard.mdPrimary Implementation
Standards Enforcement
Edge Case Handling
Workflow-Based Verification
Automated Testing
Quality Assurance
Side Effect Validation
Output Format:
[✅/❌] Command: $ARGUMENTS
## Summary
- Standard created: [name].md
- Location: [name].md
- Category: [category]
## Actions Taken
1. Generated standard from template
2. Populated with relevant guidelines
3. Created file at specified location
## Content Structure
- Core Principles: [count]
- Main Topics: [list]
- Code Examples: [count]
- Anti-patterns: [count]
## Related Standards
- [Related standard 1]
- [Related standard 2]
## Next Steps
- Review generated standard for completeness
- Add specific code examples if needed
- Link from related documentation
/create-standard "error-handling"
# Generates: error-handling.md
# Category: Automatically determined as 'code'
/create-standard "component-testing" --detail="React component testing patterns"
# Generates: component-testing.md
# Includes: React-specific testing examples
/create-standard "api-authentication" --category=security
# Generates: api-authentication.md
# Category: Explicitly set to 'security'
/create-standard "database-migrations" --detail="PostgreSQL migration patterns" --category=backend
# Generates: database-migrations.md
# Includes: PostgreSQL-specific examples
/create-standard "code-coverage" --category=quality
# Generates: code-coverage.md
# Includes: Coverage metrics and thresholds
/create-standard ""
# Error: Empty standard name
# Prompt: "What is the name of the standard you want to create?"
# Action: Wait for user input before proceeding
/create-standard "naming"
# Warning: naming.md already exists
# Prompt: "Standard 'naming' already exists. Create with different name?"
# Alternative: Use /update-standard to modify existing