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:
@@ -1,58 +1,9 @@
|
||||
| Symbol | Meaning | | Abbrev | Meaning |
|
||||
|--------|---------|---|--------|---------|
|
||||
| → | leads to | | cfg | configuration |
|
||||
| & | and/with | | impl | implementation |
|
||||
| w/ | with | | perf | performance |
|
||||
| @ | at/located | | ops | operations |
|
||||
| > | greater than | | val | validation |
|
||||
| ∀ | for all/every | | req | requirements |
|
||||
| ∃ | exists/there is | | deps | dependencies |
|
||||
| ∴ | therefore | | env | environment |
|
||||
| ∵ | because | | db | database |
|
||||
| ≡ | equivalent | | api | interface |
|
||||
| ≈ | approximately | | docs | documentation |
|
||||
| 📁 | directory/path | | std | standard |
|
||||
| 🔢 | number/count | | def | default |
|
||||
| 📝 | text/string | | ctx | context |
|
||||
| ⚙ | setting/config | | err | error |
|
||||
| 🎛 | control/flags | | exec | execution |
|
||||
| 🔧 | configuration | | qual | quality |
|
||||
| 📋 | group/category | | rec | recovery |
|
||||
| 🚨 | critical/urgent | | sev | severity |
|
||||
| ⚠ | warning/caution | | resp | response |
|
||||
| 🔄 | retry/recovery | | esc | escalation |
|
||||
| ✅ | success/fixed | | tok | token |
|
||||
| ❌ | failure/error | | opt | optimization |
|
||||
| ℹ | information | | UX | user experience |
|
||||
| ⚡ | fast/quick | | UI | user interface |
|
||||
| 🐌 | slow/delayed | | C | critical |
|
||||
| ✨ | complete/done | | H | high |
|
||||
| 📖 | read operation | | M | medium |
|
||||
| ✏ | edit operation | | L | low |
|
||||
| 🗑 | delete operation | | |
|
||||
@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"
|
||||
@include shared/command-structure.yml#Base_Execution
|
||||
|
||||
## Universal Flags
|
||||
--plan: "Show execution plan before running"
|
||||
--uc: "UltraCompressed mode (~70% token reduction)"
|
||||
--ultracompressed: "Alias for --uc"
|
||||
--think: "Multi-file analysis w/ context (4K tokens)"
|
||||
--think-hard: "Deep architectural analysis (10K tokens)"
|
||||
--ultrathink: "Critical system redesign (32K tokens)"
|
||||
--c7: "Enable Context7→library documentation lookup"
|
||||
--seq: "Enable Sequential→complex analysis & thinking"
|
||||
--magic: "Enable Magic→UI component generation"
|
||||
--pup: "Enable Puppeteer→browser automation & testing"
|
||||
--all-mcp: "Enable all MCP servers"
|
||||
--no-mcp: "Disable all MCP servers (native tools only)"
|
||||
--no-c7: "Disable Context7 specifically"
|
||||
--no-seq: "Disable Sequential thinking specifically"
|
||||
--no-magic: "Disable Magic UI builder specifically"
|
||||
--no-pup: "Disable Puppeteer specifically"
|
||||
@include shared/flag-inheritance.yml#Universal_Always
|
||||
|
||||
Deploy application to env specified in $ARGUMENTS.
|
||||
|
||||
@@ -100,53 +51,9 @@ Safety:
|
||||
- Always have rollback plan | Backups before deployment
|
||||
- Monitor key metrics during deployment | Gradual rollout→major changes
|
||||
|
||||
@include shared/research-patterns.yml#Mandatory_Research_Flows
|
||||
|
||||
```yaml
|
||||
Mandatory_Research_Flows:
|
||||
External_Library_Research:
|
||||
Step_1: "Identify library/framework mentioned"
|
||||
Step_2: "Context7 lookup for official documentation"
|
||||
Step_3: "Verify API patterns and examples"
|
||||
Step_4: "Check version compatibility"
|
||||
Step_5: "Document findings in implementation"
|
||||
|
||||
Pattern_Research:
|
||||
Step_1: "Search existing codebase for similar patterns"
|
||||
Step_2: "Magic component search if UI-related"
|
||||
Step_3: "WebSearch for official documentation"
|
||||
Step_4: "Validate approach with Sequential thinking"
|
||||
Step_5: "Document pattern choice rationale"
|
||||
|
||||
API_Integration_Research:
|
||||
Step_1: "Official documentation lookup"
|
||||
Step_2: "Authentication requirements"
|
||||
Step_3: "Rate limiting and error handling"
|
||||
Step_4: "SDK availability and examples"
|
||||
Step_5: "Integration testing approach"
|
||||
```
|
||||
|
||||
|
||||
```yaml
|
||||
Standard_Notifications:
|
||||
Operation_Start: "▶ Starting {operation}"
|
||||
Operation_Complete: "✅ {operation} completed successfully"
|
||||
File_Created: "📝 Created: {file_path}"
|
||||
File_Updated: "✏ Updated: {file_path}"
|
||||
Report_Generated: "📄 Report saved to: {path}"
|
||||
Error_Occurred: "❌ {operation} failed: {reason}"
|
||||
Warning_Issued: "⚠ {warning_message}"
|
||||
Info_Message: "ℹ {information}"
|
||||
|
||||
Output_Notifications:
|
||||
Success_Format: "✅ {operation} completed in {duration}"
|
||||
Error_Format: "❌ {operation} failed: {error_details}"
|
||||
Warning_Format: "⚠ {warning}: {details}"
|
||||
Info_Format: "ℹ {message}"
|
||||
Progress_Format: "🔄 {operation}: {current}/{total} ({percentage}%)"
|
||||
```
|
||||
@include shared/user-experience.yml#Standard_Notifications
|
||||
|
||||
## Success Messages
|
||||
✅ {operation} completed successfully
|
||||
📝 Created: {file_path}
|
||||
✏ Updated: {file_path}
|
||||
✨ Task completed: {task_title}
|
||||
@include shared/user-experience.yml#Success_Notifications
|
||||
Reference in New Issue
Block a user