Refactored commands to extract reusable skills following the Commands → Skills separation pattern. Each command is now <50 lines and references skill files for detailed knowledge. Plugins refactored: - claude-config-maintainer: 5 commands → 7 skills - code-sentinel: 3 commands → 2 skills - contract-validator: 5 commands → 6 skills - data-platform: 10 commands → 6 skills - doc-guardian: 5 commands → 6 skills (replaced nested dir) - git-flow: 8 commands → 7 skills Skills contain: workflows, validation rules, conventions, reference data, tool documentation Commands now contain: YAML frontmatter, agent assignment, skills list, brief workflow steps, parameters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51 lines
1.0 KiB
Markdown
51 lines
1.0 KiB
Markdown
---
|
|
description: Optimize CLAUDE.md structure and content
|
|
---
|
|
|
|
# Optimize CLAUDE.md
|
|
|
|
Automatically optimize CLAUDE.md based on best practices.
|
|
|
|
## Skills to Load
|
|
|
|
- skills/visual-header.md
|
|
- skills/optimization-patterns.md
|
|
- skills/pre-change-protocol.md
|
|
- skills/claude-md-structure.md
|
|
|
|
## Visual Output
|
|
|
|
Display: `CONFIG-MAINTAINER - CLAUDE.md Optimization`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/config-optimize # Full optimization
|
|
/config-optimize --condense # Reduce verbosity
|
|
/config-optimize --dry-run # Preview only
|
|
```
|
|
|
|
## Workflow
|
|
|
|
1. Identify optimization opportunities
|
|
2. Plan restructure, condense, or add actions
|
|
3. Show before/after preview
|
|
4. Apply changes with approval
|
|
5. Verify improvements
|
|
|
|
## Options
|
|
|
|
| Option | Description |
|
|
|--------|-------------|
|
|
| `--dry-run` | Preview without applying |
|
|
| `--no-backup` | Skip backup |
|
|
| `--aggressive` | Maximum condensation |
|
|
| `--section=NAME` | Optimize specific section |
|
|
|
|
**Priority:** Add Pre-Change Protocol if missing.
|
|
|
|
## Safety
|
|
|
|
- Auto backup to `.claude/backups/`
|
|
- Preview before applying
|