claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Assess whether to escalate models. Use when evaluating reasoning depth.
Claude Code
$ npx -y skills add athola/claude-night-market --skill escalation-governance --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill escalation-governance -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill escalation-governance -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill escalation-governance -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill escalation-governance -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill escalation-governance -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill escalation-governance -a windsurf -y
name: escalation-governance description: 'Assess whether to escalate models. Use when evaluating reasoning depth.' alwaysApply: false category: agent-workflow tags: - escalation - model-selection - governance - agents - orchestration dependencies: [] estimated_tokens: 800
Model escalation (haiku→sonnet→opus) trades speed/cost for reasoning capability. This trade-off must be justified.
**Core principle:** Escalation is for tasks that genuinely require deeper reasoning, not for "maybe a smarter model will figure it out."
NO ESCALATION WITHOUT INVESTIGATION FIRST
Escalation is never a shortcut. If you haven't understood why the current model is insufficient, escalation is premature.
**Legitimate escalation triggers:**
| Trigger | Description | Example | |---------|-------------|---------| | Genuine complexity | Task inherently requires nuanced judgment | Security policy trade-offs | | Reasoning depth | Multiple inference steps with uncertainty | Architecture decisions | | Novel patterns | No existing patterns apply | First-of-kind implementation | | High stakes | Error cost justifies capability investment | Production deployment | | Ambiguity resolution | Multiple valid interpretations need weighing | Spec clarification |
**Illegitimate escalation triggers:**
| Anti-Pattern | Why It's Wrong | What to Do Instead | |--------------|----------------|---------------------| | "Maybe smarter model will figure it out" | This is thrashing | Investigate root cause | | Multiple failed attempts | Suggests wrong approach, not insufficient capability | Question your assumptions | | Time pressure | Urgency doesn't change task complexity | Systematic investigation is faster | | Uncertainty without investigation | You haven't tried to understand yet | Gather evidence first | | "Just to be safe" | False safety - wastes resources | Assess actual complexity |
Before escalating, answer these questions:
**If knowledge gap:** Gather more information, don't escalate.
and which one is current?
Two coexisting implementations of one concern make a task look harder than it is. That is a knowledge gap: count them with a reference search and read both before escalating (`docs/knowledge-corpus/decoherence.md`, which calls them models of a concern).
**If not investigated:** Complete investigation first.
**If decomposable:** Break down, don't escalate.
**If not proportional:** Don't escalate.
When escalation IS justified:
1. **Document the reason** - State why current model is insufficient 2. **Specify the scope** - What specific subtask needs higher capability? 3. **Define success** - How will you know the escalated task succeeded? 4. **Return promptly** - Drop back to efficient model after reasoning task
Escalation needs a reason tied to the task. These common ones fail the four steps above, and the constraint behind each says why:
falls short. Complexity alone does not predict model failure.
without reducing a risk nobody identified.
failure not yet investigated is often a context problem that a larger model would repeat.
evidence. Model size does not supply them.
exception repeated without one becomes the default.
is slower than a systematic pass on the current one.
Agents can declare escalation hints in frontmatter:
model: haiku
escalation:
to: sonnet # Suggested escalation target
hints: # Advisory triggers (orchestrator may override)
- security_sensitive # Touches auth, secrets, permissions
- ambiguous_input # Multiple valid interpretations
- novel_pattern # No existing patterns apply
- high_stakes # Error would be costly**Key points:**
The orchestrator (typically Opus) makes final escalation decisions:
**Can follow hints:** When hint matches observed conditions **Can override to escalate:** When context demands it (even without hints) **Can override to stay:** When task is simpler than hints suggest **Can escalate beyond hint:** Go to opus even if hint says sonnet
The orchestrator's judgment, informed by conversation context, supersedes static hints.
If you catch yourself thinking:
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.