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; use night-market-operations.
Assess whether to escalate models. Use when evaluating reasoning depth.
$ npx -y skills add athola/claude-night-market --skill escalation-governance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/escalation-governanceContext preview
The summary Claude sees to decide when to auto-load this skill.
Assess whether to escalate models. Use when evaluating reasoning depth.
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_hint: standard
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
**Verification:** Run the command with `--help` flag to verify availability.
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.
**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
| Excuse | Reality | |--------|---------| | "This is complex" | Complex for whom? Have you tried? | | "Better safe than sorry" | Safety theater wastes resources | | "I tried and failed" | How many times? Did you investigate why? | | "The user expects quality" | Quality comes from process, not model size | | "Just this once" | Exceptions become habits | | "Time is money" | Systematic approach is faster than thrashing |
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**Verification:** Run the command with `--help` flag to verify availability.
**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 sa
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; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.