Skip to content
Development
Skill

/sonnet-pilot

Sonnet-first quality playbook: through context engineering, sub-agent delegation, and forced self-review loops, get Sonnet 4.6 to produce code/doc quality on par with Opus 4.7. Escalate to Opus only when quantitative gates trigger. Triggers: "sonnet", "Sonnet", "Sonnet mode",

From plugin
claude-pilot-suite
243 skills

Claude Code

$ npx -y skills add zeuikli/claude-pilot-suite --skill sonnet-pilot --agent claude-code

SKILL.md

sonnet-pilot.SKILL.md
name: sonnet-pilot
description: |
  Sonnet-first quality playbook: through context engineering, sub-agent delegation,
  and forced self-review loops, get Sonnet 4.6 to produce code/doc quality on par
  with Opus 4.7. Escalate to Opus only when quantitative gates trigger.
  Triggers: "sonnet", "Sonnet", "Sonnet mode", "sonnet-pilot".

  Do NOT use for: pure cost optimization, file-count cognitive heuristic,
  agent dispatch table, CLAUDE.md / rules audit, harness health check,
  default Haiku execution (use haiku-pilot for that).
  This SKILL is a Sonnet quality-enhancement router, not a generic decision tree.
allowed-tools: Read, Grep, Glob, Bash, TodoWrite

Sonnet Pilot — Quality-First Execution Playbook

Thesis

**Deep context engineering + precise delegation = quality floor protection + predictable escalation.**

> Augment Code eval (2026-04): Best-quality AGENTS.md provides performance gain equivalent to one model tier (Haiku→Sonnet or Sonnet→Opus effective). Bad documentation is worse than no documentation, by ~30%. > AgentOpt (arxiv 2604.06296): On HotpotQA, strongest planner alone (Opus full stack) = 31.71%; weak planner + strong solver (layered delegation) = 74.27%. **Individual model capability does NOT predict ensemble performance.**

**What this SKILL actually does** (empirically validated, A/B/C benchmark, n=5 wiki tasks, Opus 4.7 graded):

  • Sonnet + SKILL = 283/300; Sonnet Plain = 283/300; Opus = 286/300
  • **SKILL net gain on routine extraction = 0**: on structured wiki tasks, Sonnet already performs near-Opus without this playbook
  • **SKILL value = floor protection on hard tasks**: complex tasks with ambiguous requirements, multi-step agentic, cross-module design — where Sonnet without structure tends to miss assumptions, skip self-review, or produce over-engineered output

→ Think of this SKILL as **insurance**: no observable premium on easy days; prevents 10–30% quality loss on hard days. → If your tasks are mostly "extract facts from a structured document" → you may not see measurable gain; activate this for complex implementation and agentic tasks. → Sonnet as planner + advisor()/reviewer (Opus) on-demand > Opus full-stack for most tasks.

> Cost ratio: Sonnet ($3/$15) vs Opus ($15/$75). Quality first does NOT mean always-Opus; **Opus only fires when quantitative gates trigger.**

---

Per-Session Pre-flight (run once per session)

1. Reference Pattern Technique

| ❌ Abstract description | ✅ Point to a file | |----------------------|-------------------| | "Write a validation module" | "Follow the pattern in `src/auth/validator.ts`" | | "Add a hook similar to useUser" | "Pattern: `hooks/useUser.ts:42-78`" | | "Reference the deploy flow we used last time" | "Follow `<your-playbook>.md` Step 3-6" |

**Sonnet-specific**: Sonnet given an abstract description tends to design from scratch; concrete reference = narrows design space to "variant of correct pattern", not "invent from zero".

2. Decision-Log Requirement (Opus has this built-in; Sonnet must enforce)

For every non-obvious technical decision, before completion output 2 lines:

Choice: <what you decided>
Rejected: <option considered but excluded> — Reason: <one sentence>

**Why it matters**: Opus naturally does this in reasoning; Sonnet tends to skip the intermediate decision record and emit results directly, making reasoning quality undiffable and review hard. Decision-log is a synthetic substitute for Opus's deeper thinking, externalized.

3. Reasoning Chain Before Code

Before implementation, output (don't skip): 1. **1-2 sentence task understanding** (your interpretation, not parroting) 2. **Key assumptions** (≥ 1, prefixed with "Assumption: ...") 3. **Implementation plan** (bullet list, ≤ 5 steps) 4. If multiple reasonable interpretations exist → **list options for user confirmation**, don't pick one yourself

> Source: `core.md` § "Think-Before-Coding". Sonnet has higher confidence than Haiku, paradoxically MORE prone to skipping assumption verification; this pre-flight enforces it.

4. Self-Review Loop (quality gate)

Before declaring "complete":

git diff --stat   # confirm change scope
git status        # confirm no unintended additions

**Explain each modified file in one sentence**. Then:

  • Any change > 30 LoC → dispatch `quick-code-reviewer` sub-agent for post-implementation review
  • Touches auth/payment/user-data → dispatch `security-reviewer`
  • Architecture or cross-module design → call `advisor()` before declaring done

**Sonnet-specific**: Sonnet's high confidence is a double-edged sword — easy to skip self-review. This pledge is the externally bolted-on "doubt mechanism".

5. Intermediate Checkpoint (multi-step tasks)

For tasks with ≥ 3 independent steps, **pause and verify** after each:

  • Output: "Completed Step N / M: <one-sentence result>"
  • Confirm intermediate output matches expectation before proceeding
  • If anything unexpected → stop and ask, don't power through

> Empirical basis: AgentOpt experiments show step roles in multi-step pipelines matter more than overall model capability; Sonnet's failure mode is "reasoning without verification checkpoints".

6. Mid-Write Outline Verification (architecture / counter-factual / synthesis tasks)

**Trigger**: tasks tagged Architecture / Counter-factual / Synthesis (per § Task-Type Fast-Path table).

**Procedure** (run once at ~200 words drafted, before continuing):

| Check | Action on fail | |-------|----------------| | Still inside the question's scope? | Drop tangential paragraphs | | Projected total ≤ 800w? (current_wc × est_remaining_sections) | Cut outline; merge sections | | All N mandatory citations / subquestions covered? (list them; checkmark) | Add missing items first; do not write more body until covered |

**Why this exists**: Pre-flight #4 (Self-Review Loop, `git diff --stat`) fires *after* the answer is written. By that point, runaway answers are already 700–800 words. Mid-write

Read more
@zeuikli
Ships withclaude-pilot-suite

License: MIT Validated on: Claude Sonnet 4.6 + Haiku 4.5 + Opus 4.7 (6-agent × 10-question pilot-vs-vanilla benchmark) A portable, opinionated execution playbook for Claude Code that provides: Haiku 4.5 quality close to Opus 4.7 (Haiku Pilot mode) — with

Stars on GitHub

Momentum

stars in total
24
Star history of zeuikli/claude-pilot-suite on GitHub, a chart by star-history.com

Other skills on claude-pilot-suite.

haiku-pilot

haiku-pilot

Haiku-first execution playbook: through deliberate prompt structure, sub-agent delegation, and quantitative escalation gates, get…

opus-pilot

opus-pilot

Opus-first ceiling-elevation playbook: through reverse-advisor loops, parallel harness hypotheses, CAR-explicit declarations,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about sonnet-pilot.

Which coding agents can use sonnet-pilot?
sonnet-pilot installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.