This document outlines the changes needed to bring CCGlobalCommands up to date with the current Claude Code system (2025) for slash commands.
Based on real-world testing:
- ❌ Skills auto-activation is unreliable - NOT implementing skills system
- ❌ Archive pattern no longer works in Claude Code - using standard subdirectories
- ✅ Focus on proper
.claude/commands/structure with YAML frontmatter
Current State:
CCGlobalCommands/
├── commands/ # ❌ Wrong location
├── workflows/ # ❌ Wrong location
└── _archive/ # ❌ Wrong location
Required State:
CCGlobalCommands/
└── .claude/
└── commands/ # ✅ Project-level slash commands
├── guide.md
├── agents.md
├── workflows.md
├── engineering/ # Engineering specialists
│ ├── senior-engineer.md
│ ├── visual-designer.md
│ └── frontend-engineer.md
├── business/ # Business specialists
│ ├── legal-expert.md
│ └── marketing-expert.md
├── infrastructure/# Infrastructure specialists
│ └── cloud-architect.md
└── workflows/ # Multi-agent workflows
├── css-safety-check.md
└── visual-testing.md
NO skills directory - Skills auto-activation doesn't work reliably in practice.
Impact: Commands won't be recognized by Claude Code without .claude/ prefix
Current Format:
# Command Name
## Command: /command-name
```yaml
meta:
name: command-name
description: Description here
version: 3.0.0
token_estimate: 4k-8k
config:
analysis_depth: comprehensive
capabilities:
- Capability 1
instructions:
role: Role description
approach:
security: [...]
**Required Format:**
```markdown
---
description: Brief description of what this command does
---
# Command Name
[Instructions for Claude in natural language]
## Capabilities
- Capability 1
- Capability 2
## Approach
...
Issues:
- Missing YAML frontmatter delimiters (
---) - Over-complicated nested YAML structure
- Only
descriptionfield is required/used - Content inside code blocks instead of markdown body
Current: Uses _archive/ folder to hide specialists
Reality: Archive pattern doesn't work in current Claude Code
Solution: Use standard subdirectory organization
Action:
- Move all specialists to
.claude/commands/[category]/ - Use subdirectories for organization (engineering/, business/, infrastructure/)
- All commands accessible via
/command-namedirectly - Use
/guideto help users discover commands
Current: Commands include detailed hooks: configuration in YAML
Reality:
- Hooks are configured separately via
.claude/hooks/or settings - Commands don't define hooks - hooks are external
- The hooks metadata in commands is documentation, not functional
Action:
- Remove
hooks:from command metadata - Create separate hooks documentation if needed
- Keep hooks info in README/guides only
Decision: NOT implementing skills system
Reason: Real-world testing shows skills auto-activation is unreliable
Action:
- Keep all agents as slash commands
- Users explicitly invoke commands when needed
- Better control and predictability
- No
.claude/skills/directory needed
Current: Workflows in separate /workflows/ directory
Options:
- Move to
.claude/commands/workflows/ - Convert some to skills (auto-activate)
- Keep as specialized commands
Recommendation: Move to .claude/commands/workflows/
- Create
.claude/commands/directory structure - Create subdirectories: engineering/, business/, infrastructure/, workflows/
- Move core commands to
.claude/commands/root - Move engineering specialists to
.claude/commands/engineering/ - Move business specialists to
.claude/commands/business/ - Move infrastructure specialists to
.claude/commands/infrastructure/ - Move workflows to
.claude/commands/workflows/ - Remove old
commands/,_archive/,workflows/directories
- Convert all commands to YAML frontmatter format
- Each file gets
---\ndescription: ...\n---header - Move YAML content out of code blocks into markdown body
- Remove non-functional
hooks:,meta:,config:from frontmatter - Keep version/token/capabilities as markdown in body
- Ensure natural language instructions after frontmatter
- Update README.md with new
.claude/structure - Update CLAUDE.md to remove archive pattern references
- Update QUICK_SETUP.md with new installation paths
- Update all examples to show new command paths
- Add migration guide for existing users
- Update badges and links
- Validate all commands have proper frontmatter
- Test slash command invocation works
- Verify subdirectory commands accessible
- Check token estimates still accurate
- Test all workflows function correctly
- Verify cross-references work
/guide- Help system and command catalog/agents- Directory listing of all specialists/workflows- Workflow selector and catalog/prompt-engineer- Prompt optimization/documentation- Documentation generation/cicd-orchestrator- CI/CD pipeline management/incident-commander- Incident response
/senior-engineer- Code reviews and architecture/visual-designer- UI/UX, CSS, animations/frontend-engineer- Frontend development/backend-engineer- Backend APIs/qa-automation- Testing automation/performance-optimizer- Performance optimization/security-engineer- Security audits/data-engineer- Data pipelines
/legal-expert- Legal compliance/marketing-expert- Marketing campaigns/project-manager- Project management/product-manager- Product strategy
/cloud-architect- Cloud architecture/kubernetes-specialist- K8s management/terraform-engineer- Infrastructure as Code
- All multi-agent workflows organized here
- Accessible via
/workflow-name
All are slash commands - No skills directory needed.
- Create new
.claude/structure - Update all files at once
- Remove old directories
- Single commit with all changes
- Tag as v4.0.0 (breaking change)
- Create
.claude/structure alongside old - Duplicate files in both locations
- Deprecation notice in old files
- Remove old structure after grace period
Recommendation: Option A - Clean break, easier to maintain
- v4.0.0 will require new installation
- Old command paths won't work
- Setup scripts will be updated
- Migration guide will be provided
- All functionality preserved, just different paths
## v4.0.0 - 2025-01-XX - BREAKING CHANGES
### 🔥 Breaking Changes
- Commands moved from `commands/` to `.claude/commands/`
- Workflows moved to `.claude/commands/workflows/`
- New skills system in `.claude/skills/`
- Simplified metadata format (YAML frontmatter)
- Removed non-functional hooks configuration
### ✨ New Features
- Auto-activating skills for common tasks
- Standard Claude Code directory structure
- Cleaner command metadata
- Better organization with subdirectories
### 📦 Migration
See MIGRATION.md for upgrade instructions- ~40 command files to update
- ~6 workflow files to move
- ~5-8 new skill directories to create
- ~5 documentation files to update
- Simplified frontmatter may save ~100-200 tokens per command
- Moving to skills may reduce overall token usage (auto-activation is more efficient)
- One-time reinstall required
- All commands work the same (just different paths)
- New skills provide better auto-completion
- Get User Approval on migration strategy
- Create v4.0.0 branch for changes
- Implement Phase 1 - Directory restructure
- Implement Phase 2 - Metadata updates
- Implement Phase 3 - Skills creation
- Implement Phase 4 - Documentation
- Test thoroughly
- Release v4.0.0
- Should we keep the "archive" concept with subdirectories?
- Which specific commands should become skills?
- Should workflows be commands or skills?
- Keep version 4.0.0 or reset to 1.0.0 for new era?
- Maintain backward compatibility or clean break?
Recommendation: Clean break with v4.0.0, clear migration guide