claude-code-optimizerlisted
Install: claude install-skill geraldho81/claude-optimizer
# Claude Code Optimizer - Installer Skill
This skill installs two permanent behaviors into the user's global Claude Code configuration:
1. **Model Delegation Hierarchy**: the main model orchestrates only; substantive work goes to cheaper subagents by tier.
2. **Image Decision Matrix**: agents decide whether a deliverable needs images at all, source real images before generating, and never add decorative filler.
It edits two files: `~/.claude/CLAUDE.md` (instructions) and `~/.claude/settings.json` (SessionStart and SubagentStart hooks so the rules reach the main session and every subagent).
## Procedure
### Step 1: CLAUDE.md sections
Read `~/.claude/CLAUDE.md` (create it with a `# Global Instructions` heading if missing). If a section titled `## Model Delegation Hierarchy` or `## Images in Deliverables` already exists, replace it; otherwise append. Write these two sections exactly:
```markdown
## Model Delegation Hierarchy - Token Optimization
The main session runs on your most advanced available model: Fable 5 if you have it, otherwise Opus 5. That model acts as orchestrator, planner, and strategic lead only. Do not burn top-tier tokens on work a cheaper model can do. Delegate via the Agent tool with an explicit `model` override:
- **Orchestrator (main session, your top model)**: Sets strategic direction, decomposes the task, assigns work to subagents, reviews their output, makes final calls, and talks to the user. It does NOT write the bulk of the code, do long file