Update all command files to use optimized template system

- Migrated 18 command files to use @include references
- Replaced custom legend sections with shared constants
- Standardized flag descriptions and report outputs
- Eliminated redundant content across commands
- Improved consistency and maintainability

Part of the 35% token reduction optimization.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NomenAK 2025-06-24 12:58:28 +02:00
parent 327d7ded3c
commit 84ad5b60d1
19 changed files with 68 additions and 211 deletions

View File

@ -1,14 +1,10 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | anlz | analyze |
| & | and/with | | perf | performance |
| w/ | with | | arch | architecture |
@include shared/command-templates.yml#Command_Header @include shared/command-templates.yml#Command_Header
Multi-dimensional analysis on code, arch, or problem in $ARGUMENTS. Multi-dimensional analysis on code, arch, or problem in $ARGUMENTS.
@include shared/command-templates.yml#Universal_Flags
@see shared/thinking-modes.yml ∀ thinking flags @see shared/thinking-modes.yml ∀ thinking flags
@see shared/mcp-flags.yml ∀ MCP controls @see shared/mcp-flags.yml ∀ MCP controls
@ -33,8 +29,8 @@ Analysis modes:
**--interactive:** Guided exploration | Step-by-step fixes | Live improvement **--interactive:** Guided exploration | Step-by-step fixes | Live improvement
@see shared/research-first.yml ∀ research requirements @include shared/command-templates.yml#Research_Requirements
Report: `.claudedocs/reports/analysis-<type>-<timestamp>.md` | Create dir: `mkdir -p .claudedocs/reports/` | Ref: "📄 Analysis report→[path]" @include shared/command-templates.yml#Report_Output
Deliverables: Analysis report, root causes, prioritized action plan w/ recommendations. Deliverables: @include shared/constants.yml#Success_Messages

View File

@ -1,14 +1,10 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | bld | build |
| & | and/with | | impl | implementation |
| w/ | with | | TDD | test-driven development |
@include shared/command-templates.yml#Command_Header @include shared/command-templates.yml#Command_Header
Build project/feature based on req in $ARGUMENTS. Build project/feature based on req in $ARGUMENTS.
@include shared/command-templates.yml#Universal_Flags
@see shared/mcp-flags.yml ∀ MCP controls @see shared/mcp-flags.yml ∀ MCP controls
Examples: Examples:
@ -33,8 +29,7 @@ Templates:
**--watch:** Continuous build | Real-time feedback | Incremental | Live reload **--watch:** Continuous build | Real-time feedback | Incremental | Live reload
**--interactive:** Step-by-step cfg | Interactive deps | Build customization **--interactive:** Step-by-step cfg | Interactive deps | Build customization
@see shared/research-first.yml ∀ research req @include shared/command-templates.yml#Research_Requirements
@include shared/execution-lifecycle.yml#Standard_Lifecycle
Workflow: Research→Setup→Impl→Test→Integrate Deliverables: @include shared/constants.yml#Success_Messages
Deliverables: Working code, tests, docs, integration instructions.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | cfg | configuration |
| & | and/with | | deps | dependencies |
| w/ | with | | perf | performance |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Clean up project artifacts, code & cfg specified in $ARGUMENTS. Clean up project artifacts, code & cfg specified in $ARGUMENTS.
@ -41,13 +36,9 @@ Clean up project artifacts, code & cfg specified in $ARGUMENTS.
## Integration & Best Practices ## Integration & Best Practices
Research requirements: @include shared/command-templates.yml#Research_Requirements
- Project patterns→C7 framework-specific cleanup | Build tools→verify safe procedures for stack
- Git ops→WebSearch safe practices & warnings | Deps mgmt→check official package mgr guidance
- Never cleanup w/o understanding impact - verify patterns | Cite sources: // Source: [cleanup guide ref]
Report Output: @include shared/command-templates.yml#Report_Output
- Cleanup summaries: `.claudedocs/reports/cleanup-<type>-<timestamp>.md`
- Space savings: `.claudedocs/metrics/cleanup-savings-<timestamp>.md` - Space savings: `.claudedocs/metrics/cleanup-savings-<timestamp>.md`
- Ensure dirs: `mkdir -p .claudedocs/reports/ .claudedocs/metrics/` - Ensure dirs: `mkdir -p .claudedocs/reports/ .claudedocs/metrics/`
- Include location: "📄 Cleanup report saved to: [path]" - Include location: "📄 Cleanup report saved to: [path]"

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | env | environment |
| & | and/with | | prod | production |
| w/ | with | | perf | performance |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Deploy application to env specified in $ARGUMENTS. Deploy application to env specified in $ARGUMENTS.
@ -53,16 +48,8 @@ Safety:
- Always have rollback plan | Backups before deployment - Always have rollback plan | Backups before deployment
- Monitor key metrics during deployment | Gradual rollout→major changes - Monitor key metrics during deployment | Gradual rollout→major changes
Research requirements: @include shared/command-templates.yml#Research_Requirements
- Infrastructure patterns→WebSearch cloud provider practices & docs
- CI/CD patterns→verify w/ platform-specific guides | Monitoring→research observability patterns
- Security hardening→check security guides & compliance | Never deploy on assumptions
- All cfg cite sources: // Source: [deployment guide ref]
Report Output: @include shared/command-templates.yml#Report_Output
- Deployment logs: `.claudedocs/reports/deployment-<env>-<timestamp>.md`
- Health checks: `.claudedocs/metrics/health-check-<timestamp>.md`
- Ensure dirs: `mkdir -p .claudedocs/reports/ .claudedocs/metrics/`
- Include location: "📄 Deployment report saved to: [path]"
Deliverables: Deployment log w/ timestamps, health check results, perf metrics comparison, rollback instructions & verification report. @include shared/constants.yml#Success_Messages

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | API | application programming interface |
| & | and/with | | DDD | domain-driven design |
| w/ | with | | PRD | product requirements document |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Design & architect software solutions based on requirements in $ARGUMENTS. Design & architect software solutions based on requirements in $ARGUMENTS.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | CI/CD | continuous integration/deployment |
| & | and/with | | cfg | configuration |
| w/ | with | | env | environment |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Setup comprehensive dev env or CI/CD pipeline based on $ARGUMENTS. Setup comprehensive dev env or CI/CD pipeline based on $ARGUMENTS.
@ -35,15 +30,8 @@ Examples:
Ensure all cfgs follow security practices & include comprehensive docs. Ensure all cfgs follow security practices & include comprehensive docs.
Research requirements: @include shared/command-templates.yml#Research_Requirements
- Dev tools→C7 docs for installation & cfg patterns | CI/CD platforms→WebSearch platform-specific practices & guides
- Security tools→research OWASP & security scanning docs | Monitoring→check official observability platform docs
- Never cfg w/o docs - verify setup patterns | All cfgs cite sources: // Source: [setup guide ref]
Report Output: @include shared/command-templates.yml#Report_Output
- Setup logs: `.claudedocs/reports/dev-setup-<timestamp>.md`
- Cfg summaries: `.claudedocs/summaries/environment-config-<timestamp>.md`
- Ensure dirs: `mkdir -p .claudedocs/reports/ .claudedocs/summaries/`
- Include location: "📄 Setup report saved to: [path]"
Deliverables: Cfg scripts, CI/CD pipeline files, setup docs, env-specific cfgs & security validation report. @include shared/constants.yml#Success_Messages

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | API | application programming interface |
| & | and/with | | UX | user experience |
| w/ | with | | FAQ | frequently asked questions |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Create comprehensive docs for code, API, or system specified in $ARGUMENTS. Create comprehensive docs for code, API, or system specified in $ARGUMENTS.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | E2E | end-to-end |
| & | and/with | | deps | dependencies |
| w/ | with | | impl | implementation |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Provide comprehensive time & complexity estimates for task in $ARGUMENTS. Provide comprehensive time & complexity estimates for task in $ARGUMENTS.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | MCP | model context protocol |
| & | and/with | | impl | implementation |
| w/ | with | | perf | performance |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Provide comprehensive explanations of concepts, code, or systems in $ARGUMENTS. Provide comprehensive explanations of concepts, code, or systems in $ARGUMENTS.

View File

@ -40,7 +40,7 @@ Git operations:
@see shared/git-workflow.yml ∀ best practices @see shared/git-workflow.yml ∀ best practices
@see shared/checkpoint.yml ∀ checkpoint system @see shared/checkpoint.yml ∀ checkpoint system
@see shared/error-recovery-enhanced.yml ∀ safety checks @see shared/error-handling.yml ∀ safety checks
Workflow: Check status→Create chkpt→Execute→Verify→Sync Workflow: Check status→Create chkpt→Execute→Verify→Sync

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | perf | performance |
| & | and/with | | ops | operations |
| w/ | with | | impl | implementation |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Improve code, perf, or quality of system specified in $ARGUMENTS. Improve code, perf, or quality of system specified in $ARGUMENTS.
@ -160,24 +155,8 @@ Balance considerations:
- Speed vs correctness - Speed vs correctness
- Present vs future needs - Present vs future needs
## Research Requirements @include shared/command-templates.yml#Research_Requirements
All optimization patterns must be verified: @include shared/command-templates.yml#Report_Output
- Performance optimizations → Research benchmarks and best practices via WebSearch
- Framework-specific improvements → C7 documentation lookup required
- Algorithm changes → Verify complexity analysis with authoritative sources
- Caching strategies → Check official recommendations for the platform
- Never apply "common" optimizations without documentation backing
- All improvements must cite sources: // Source: [optimization guide reference]
Report Output: @include shared/constants.yml#Success_Messages
- Quality metrics: `.claudedocs/metrics/quality-<timestamp>.md`
- Performance benchmarks: `.claudedocs/metrics/performance-<timestamp>.md`
- Iteration logs: `.claudedocs/summaries/iteration-log-<timestamp>.md`
- Ensure directory exists: `mkdir -p .claudedocs/metrics/ .claudedocs/summaries/`
- Include report location in output: "📄 Report saved to: [path]"
Deliverables:
- For quality: Refactored code, quality metrics report, improvement documentation
- For performance: Optimized system, performance benchmarks, bottleneck analysis
- For iterate: Final metrics, iteration log, recommendations for future improvements

View File

@ -1,11 +1,6 @@
# SuperClaude Commands Index # SuperClaude Commands Index
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | MCP | model context protocol |
| & | and/with | | UI | user interface |
| w/ | with | | docs | documentation |
## Command Usage ## Command Usage
All commands use `/user:` prefix. Examples: All commands use `/user:` prefix. Examples:
@ -132,23 +127,28 @@ Planning for Complex Operations:
Cleanup: cleanup --all --dry-run → review → cleanup --all Cleanup: cleanup --all --dry-run → review → cleanup --all
``` ```
## Shared Resources (22 files) ## Shared Resources (37 files)
- `ambiguity-check.yml`: Ambiguity detection & resolution - `ambiguity-check.yml`: Ambiguity detection & resolution
- `audit.yml`: Audit configurations & logging - `audit.yml`: Audit configurations & logging
- `checkpoint.yml`: Checkpoint management & rollback - `checkpoint.yml`: Checkpoint management & rollback
- `cleanup-patterns.yml`: Cleanup safety rules & patterns - `cleanup-patterns.yml`: Cleanup safety rules & patterns
- `command-memory.yml`: Enhanced command result sharing & context management - `command-memory.yml`: Enhanced command result sharing & context management
- `command-templates.yml`: Token-optimized reusable command patterns
- `constants.yml`: Universal constants & shared values
- `documentation-dirs.yml`: Documentation directory standards - `documentation-dirs.yml`: Documentation directory standards
- `error-recovery.yml`: Error handling & resilience patterns (NEW) - `error-handling.yml`: Error handling & resilience patterns
- `evidence.yml`: Evidence tracking & validation - `evidence.yml`: Evidence tracking & validation
- `execution-lifecycle.yml`: Command execution flow & lifecycle management
- `git-workflow.yml`: Git integration patterns - `git-workflow.yml`: Git integration patterns
- `implementation.yml`: Implementation hooks & behaviors - `implementation.yml`: Implementation hooks & behaviors
- `loading-config.yml`: Token optimization & lazy loading - `loading-config.yml`: Token optimization & lazy loading
- `mcp-flags.yml`: Enhanced MCP server control via flags - `mcp-flags.yml`: Enhanced MCP server control via flags
- `patterns.yml`: Enhanced common workflows & command integration patterns - `patterns.yml`: Enhanced common workflows & command integration patterns
- `performance-monitoring.yml`: Self-monitoring metrics - `performance.yml`: Performance monitoring & metrics
- `planning-mode.yml`: Risk assessment & planning configuration - `planning-mode.yml`: Risk assessment & planning configuration
- `research-first.yml`: Mandatory research & documentation requirements - `research-first.yml`: Mandatory research & documentation requirements
- `severity-levels.yml`: Severity classification & escalation paths
- `task-system.yml`: Comprehensive task management & workflow system
- `thinking-modes.yml`: Thinking depth configuration & flags - `thinking-modes.yml`: Thinking depth configuration & flags
- `ultracompressed.yml`: ~70% token reduction documentation mode - `ultracompressed.yml`: ~70% token reduction documentation mode
- `user-experience.yml`: User interface & interaction patterns (NEW) - `user-experience.yml`: User interface & interaction patterns (NEW)

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | cfg | configuration |
| & | and/with | | deps | dependencies |
| w/ | with | | CI/CD | continuous integration/deployment |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Load & analyze project context in $ARGUMENTS→build comprehensive understanding. Load & analyze project context in $ARGUMENTS→build comprehensive understanding.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | DB | database |
| & | and/with | | perf | performance |
| w/ | with | | arch | architecture |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Execute comprehensive DB or code migration based on specs in $ARGUMENTS. Execute comprehensive DB or code migration based on specs in $ARGUMENTS.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | cfg | configuration |
| & | and/with | | deps | dependencies |
| w/ | with | | vuln | vulnerability |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Scan code, ops, or systems→security vulns & safety issues in $ARGUMENTS. Scan code, ops, or systems→security vulns & safety issues in $ARGUMENTS.
@ -163,12 +158,6 @@ Best practices:
- Automate where possible - Automate where possible
- Document exceptions with justification - Document exceptions with justification
Report Output: @include shared/command-templates.yml#Report_Output
- Safety reports: `.claudedocs/reports/safety-scan-<timestamp>.md`
- Security reports: `.claudedocs/reports/security-scan-<timestamp>.md`
- Ensure directory exists: `mkdir -p .claudedocs/reports/`
- Include report location in output: "📄 Scan report saved to: [path]"
Deliverables: @include shared/constants.yml#Success_Messages
- For validate: Safety report, risk score, proceed/block recommendation
- For security: Vulnerability report, remediation guide, risk assessment, compliance status

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | UI/UX | user interface/experience |
| & | and/with | | auth | authentication |
| w/ | with | | impl | implementation |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Spawn specialized sub-agent→handle specific task in $ARGUMENTS. Spawn specialized sub-agent→handle specific task in $ARGUMENTS.

View File

@ -1,6 +1,6 @@
# /task: - Task Management & Session Recovery # /task: - Task Management & Session Recovery
@task-management.yml @see shared/task-system.yml
## Purpose ## Purpose
Manage complex features & requirements across sessions with automatic breakdown, context preservation & recovery. Manage complex features & requirements across sessions with automatic breakdown, context preservation & recovery.

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | E2E | end-to-end |
| & | and/with | | MCP | model context protocol |
| w/ | with | | DB | database |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Create or run comprehensive tests for code in $ARGUMENTS. Create or run comprehensive tests for code in $ARGUMENTS.
@ -65,18 +60,8 @@ Follow testing standards:
- Create fixtures for consistent test data - Create fixtures for consistent test data
- Ensure tests are independent and can run in any order - Ensure tests are independent and can run in any order
Research requirements for testing: @include shared/command-templates.yml#Research_Requirements
- Testing frameworks → C7 documentation lookup for framework-specific patterns
- Test patterns → Must verify with official testing guides and best practices
- E2E testing → WebSearch for accessibility and user experience standards
- Performance testing → Research benchmarking patterns for the specific stack
- Never implement test patterns without documentation backing
- All test implementations must cite sources: // Source: [testing guide reference]
Report Output: @include shared/command-templates.yml#Report_Output
- Coverage reports: `.claudedocs/metrics/coverage-<timestamp>.html`
- Test summaries: `.claudedocs/summaries/test-results-<timestamp>.md`
- Ensure directory exists: `mkdir -p .claudedocs/metrics/ .claudedocs/summaries/`
- Include report location in output: "📄 Coverage report saved to: [path]"
Deliverables: Comprehensive test suite, coverage reports, testing documentation, and test strategy guide. @include shared/constants.yml#Success_Messages

View File

@ -1,11 +1,6 @@
## Legend @include shared/constants.yml#Process_Symbols
| Symbol | Meaning | | Abbrev | Meaning |
|--------|---------|---|--------|---------|
| → | leads to | | prod | production |
| & | and/with | | impl | implementation |
| w/ | with | | info | information |
Execute immediately. Add --plan flag if user wants to see plan first. @include shared/command-templates.yml#Universal_Flags
Troubleshoot & resolve issues in code or system in $ARGUMENTS. Troubleshoot & resolve issues in code or system in $ARGUMENTS.
@ -91,21 +86,8 @@ For production issues:
- Analyze resource utilization - Analyze resource utilization
- Consider rollback if critical - Consider rollback if critical
Research before fixing: @include shared/command-templates.yml#Research_Requirements
- Search for known issues → WebSearch "[error message] [library version]"
- Check library bug trackers → C7 documentation for known problems
- Verify error patterns → Official troubleshooting guides required
- Framework-specific issues → Must check official documentation first
- Never assume root cause without researching similar cases
- Document all research sources in fix explanation
Report Output: @include shared/command-templates.yml#Report_Output
- Root cause analysis: `.claudedocs/incidents/rca-<timestamp>.md`
- Incident documentation: `.claudedocs/incidents/incident-<timestamp>.md`
- Investigation findings: `.claudedocs/reports/investigation-<timestamp>.md`
- Ensure directory exists: `mkdir -p .claudedocs/incidents/ .claudedocs/reports/`
- Include report location in output: "📄 Report saved to: [path]"
Deliverables: @include shared/constants.yml#Success_Messages
- For investigation: Root cause analysis, detailed findings report, recommended solutions
- For fix: Implemented solution with tests, prevention measures, incident documentation