mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
feat: Optimize all 18 command files using @include reference system
Major streamlining achievement: - Eliminate 2,733 lines of duplicate content across commands - Reduce individual command files by ~70% (130-150 → 35-60 lines) - Leverage existing shared/*.yml reference patterns - Maintain full Claude Code compliance Benefits: • Single source of truth for universal content • Guaranteed consistency across all commands • Dramatically reduced maintenance overhead • Massive token efficiency improvements Implementation: - Universal Legend: @include shared/universal-constants.yml#Universal Legend - Universal Flags: @include shared/flag-inheritance.yml#Universal_Always - Command patterns: References to appropriate shared/*.yml files - Template system: Enhanced command-patterns.yml 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,31 @@ Command_Header:
|
||||
Legend: "@cmd-specific legend gen"
|
||||
Purpose: "[Action][Subject] in $ARGUMENTS"
|
||||
|
||||
## Optimized Command File Template
|
||||
|
||||
```yaml
|
||||
# Standard template for all command files using @include references
|
||||
Optimized_Command_Template: |
|
||||
@include shared/universal-constants.yml#Universal_Legend
|
||||
|
||||
## Command Execution
|
||||
Execute: immediate. --plan→show plan first
|
||||
Legend: Generated based on symbols used in command
|
||||
Purpose: "[Action][Subject] in $ARGUMENTS"
|
||||
|
||||
[Command-specific description here]
|
||||
|
||||
@include shared/flag-inheritance.yml#Universal_Always
|
||||
|
||||
Examples:
|
||||
- `/{command} --flag` - Description
|
||||
- `/{command} --other-flag` - Description
|
||||
- `/{command} --complex-example` - Description
|
||||
|
||||
[Command-specific content sections]
|
||||
|
||||
@include shared/universal-constants.yml#Success_Messages
|
||||
|
||||
## UltraCompressed Command Structure
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user