cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Use PROACTIVELY to clean up merged branches, stale remotes, and organize branch structure
$ npx -y skills add davila7/claude-code-templates --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/branch-cleanupContext preview
What this command does when you run it.
Use PROACTIVELY to clean up merged branches, stale remotes, and organize branch structure
allowed-tools: Bash(git branch:*), Bash(git checkout:*), Bash(git push:*), Bash(git merge:*), Bash(gh:*), Read, Grep argument-hint: [--dry-run] | [--force] | [--remote-only] | [--local-only] description: Use PROACTIVELY to clean up merged branches, stale remotes, and organize branch structure
Clean up merged branches and organize repository structure: $ARGUMENTS
Perform comprehensive branch cleanup and organization based on the repository state and provided arguments.
1. Show branch analysis with recommendations 2. Ask for confirmation before each deletion 3. Provide summary of actions taken 4. Offer to push deletions to remote
1. Show what would be deleted without making changes 2. Display branch analysis and recommendations 3. Provide cleanup statistics 4. Exit without modifying repository
1. Delete merged branches without confirmation 2. Clean up stale remotes automatically 3. Provide summary of all actions taken 4. Use with caution - no undo capability
1. Only clean up remote-tracking branches 2. Synchronize with actual remote state 3. Remove stale remote references 4. Keep all local branches intact
1. Only clean up local branches 2. Don't affect remote-tracking branches 3. Keep remote synchronization intact 4. Focus on local workspace organization
Never delete branches matching these patterns:
Branch Cleanup Summary: ✅ Deleted 3 merged feature branches ✅ Removed 5 stale remote references ✅ Cleaned up 2 old hotfix branches ⚠️ Found 1 unmerged branch requiring attention 📊 Repository now has 8 active branches (was 18)
Branch Recovery Commands: git checkout -b feature/user-auth 1a2b3c4d # Recover feature/user-auth git push origin feature/user-auth # Restore to remote
# Safe interactive cleanup /branch-cleanup # See what would be cleaned without changes /branch-cleanup --dry-run # Clean only remote tracking branches /branch-cleanup --remote-only # Force cleanup of merged branches /branch-cleanup --force # Clean only local branches /branch-cleanup --local-only
If GitHub CLI or GitLab CLI is available:
Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.
Repo: davila7/claude-code-templates
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Create an SEO-optimized blog article for a Claude Code component with AI-generated cover image