mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
refactor: Standardize @include reference system across all command files
- Fix @include references to use underscore format (Universal_Legend, Standard_Messages_Templates) - Add missing ultracompressed.yml shared pattern file - Update broken reference paths in all 18 command files - Ensure consistent template naming across command system - Optimize command file structure with standardized includes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,51 +1,41 @@
|
||||
@include shared/universal-constants.yml#Universal_Legend
|
||||
|
||||
## Command Execution
|
||||
@include shared/command-structure.yml#Base_Execution
|
||||
Execute: immediate. --plan→show plan first
|
||||
Legend: Generated based on symbols used in command
|
||||
Purpose: "[Action][Subject] in $ARGUMENTS"
|
||||
|
||||
Cleanup project files, dependencies & artifacts in $ARGUMENTS.
|
||||
|
||||
@include shared/flag-inheritance.yml#Universal_Always
|
||||
|
||||
Clean up project artifacts, code & cfg specified in $ARGUMENTS.
|
||||
Examples:
|
||||
- `/cleanup --code --dry-run` - Preview code cleanup changes
|
||||
- `/cleanup --deps --all` - Remove unused dependencies
|
||||
- `/cleanup --files --watch` - Continuous file cleanup
|
||||
|
||||
--code flag:
|
||||
- Remove unused imports & dead code | Clean console.log & debug code
|
||||
- Remove commented blocks | Fix style inconsistencies | Remove TODO>30 days
|
||||
Cleanup modes:
|
||||
|
||||
--files flag:
|
||||
- Remove build artifacts & temp files | Clean node_modules if corrupted
|
||||
- Remove logs & cache dirs | Clean test outputs | Remove OS files (.DS_Store, thumbs.db)
|
||||
**--code:** Remove unused imports & dead code | Clean console.log & debug code | Remove commented blocks | Fix style inconsistencies | Remove TODO>30 days
|
||||
|
||||
--deps flag:
|
||||
- Remove unused deps from package.json | Update vulnerable deps
|
||||
- Clean duplicate deps | Optimize dep tree | Check outdated packages
|
||||
**--files:** Remove build artifacts & temp files | Clean node_modules if corrupted | Remove logs & cache dirs | Clean test outputs | Remove OS files (.DS_Store, thumbs.db)
|
||||
|
||||
--git flag:
|
||||
- Remove untracked files (w/ confirmation) | Clean merged branches
|
||||
- Remove large/unwanted files from history | Optimize git (.git/objects cleanup) | Clean stale refs
|
||||
**--deps:** Remove unused deps from package.json | Update vulnerable deps | Clean duplicate deps | Optimize dep tree | Check outdated packages
|
||||
|
||||
--cfg flag:
|
||||
- Remove deprecated cfg settings | Clean unused env vars
|
||||
- Update outdated cfg formats | Validate cfg consistency | Remove duplicate entries
|
||||
**--git:** Remove untracked files (w/ confirmation) | Clean merged branches | Remove large/unwanted files from history | Optimize git (.git/objects cleanup) | Clean stale refs
|
||||
|
||||
--all flag:
|
||||
- Comprehensive cleanup all areas | Generate detailed report
|
||||
- Suggest maintenance schedule | Provide perf impact analysis
|
||||
**--cfg:** Remove deprecated cfg settings | Clean unused env vars | Update outdated cfg formats | Validate cfg consistency | Remove duplicate entries
|
||||
|
||||
--dry-run flag:
|
||||
- Show what would be cleaned w/o changes | Estimate space savings & perf impact | ID risks before cleanup
|
||||
**--all:** Comprehensive cleanup all areas | Generate detailed report | Suggest maintenance schedule | Provide perf impact analysis
|
||||
|
||||
--watch flag:
|
||||
- Monitor & auto-clean new artifacts | Continuous cleanup during dev | Prevent temp file accumulation | Real-time maintenance
|
||||
**--dry-run:** Show what would be cleaned w/o changes | Estimate space savings & perf impact | ID risks before cleanup
|
||||
|
||||
**--watch:** Monitor & auto-clean new artifacts | Continuous cleanup during dev | Prevent temp file accumulation | Real-time maintenance
|
||||
|
||||
## Integration & Best Practices
|
||||
|
||||
@include shared/research-patterns.yml#Mandatory_Research_Flows
|
||||
|
||||
@include shared/user-experience.yml#Standard_Notifications
|
||||
- Space savings: `.claudedocs/metrics/cleanup-savings-<timestamp>.md`
|
||||
- Ensure dirs: `mkdir -p .claudedocs/reports/ .claudedocs/metrics/`
|
||||
- Include location: "📄 Cleanup report saved to: [path]"
|
||||
@include shared/docs-patterns.yml#Standard_Notifications
|
||||
|
||||
Deliverables: Cleanup report w/ space saved, perf improvements, maintenance recommendations, safety analysis & cleanup strategy docs.
|
||||
@include shared/universal-constants.yml#Standard_Messages_Templates
|
||||
Reference in New Issue
Block a user