| name | spear |
| description | SPEAR loop for any non-trivial agent task โ Scope, Plan, Execute, Assess, Resolve. Prevents the strong-start-weak-finish failure mode by forcing an explicit MECE rubric and a PlanโExecuteโAssess inner loop until the rubric passes. |
SPEAR โ Management Framework for Agent Runs
Source: Ryan Waliany, Introducing SPEAR: The Management Framework for AI (May 2026).
One-line summary: Standard PM phases (initiate, plan, execute, monitor, close) compressed for the software factory.
Core insight: The strong-start-weak-finish problem is a process problem, not a model problem. Skipping Plan or Assess is what makes agents feel unreliable.
When to load this skill
Load BEFORE starting any task that has more than one acceptable answer or that the user will visibly inspect when you're done. That covers:
- Bug fixes that touch shared code (auth, runtime, tool registry)
- Any feature with user-visible behavior
- Anything where "looks good to me" is not a sufficient acceptance test
- Multi-step refactors, migrations, multi-platform launches
- Customer-facing artifacts (reports, landing pages, ad creatives, support replies)
Do NOT load this skill for: typo fixes, single-line config changes, pure reads, simple lookups.
The five phases (gates, not checkboxes)
โญโโโโโโโโฎ โญโโโโโโโฎ โญโโโโโโโโโโฎ โญโโโโโโโโโฎ โญโโโโโโโโโโฎ
โ Scope โโโโถโ Plan โโโโถโ Execute โโโโถโ Assess โโโโถโ Resolve โ
โฐโโโโโโโโฏ โฐโโโฌโโโโฏ โฐโโโโโโโโโโฏ โฐโโโโฌโโโโโฏ โฐโโโโโโโโโโฏ
โฒ โ
โ gap found โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
(narrow Plan to the gap,
rerun Execute + Assess)
| Phase | Gate passes whenโฆ | Typical artifact |
|---|
| Scope | Ambiguity has been surfaced and resolved. | A 1-paragraph problem statement + explicit non-goals + the success rubric (see below). |
| Plan | An ordered sequence of steps is visible and approved. | A numbered step list with file paths, the tool calls per step, and what each step changes. |
| Execute | The work completes (code written, tests run, artifact generated). | The diff, the generated artifact, or the tool output. |
| Assess | Result is scored against scope, plan, AND rubric. Every rubric item is 10/10. | A scored rubric table. Anything < 10 = fail. |
| Resolve | Assess passed. Hand off, report, clean up worktree, close ticket. | A short summary message + PR link + any follow-ups. |
The inner loop is Plan โ Execute โ Assess. If Assess fails, narrow Plan to the gap (do not re-plan the whole task) and re-run Execute + Assess. Repeat until the rubric holds.
Designing the Assess rubric (the hardest part)
A rubric works when it is MECE:
- Mutually exclusive โ items don't overlap. A failure on one item must be independent of every other. Overlap creates drift (you'll fix one and break another, then declare victory on a regression).
- Collectively exhaustive โ items cover every dimension that has to pass. Gaps create false positives ("looks good" with a silent missing dimension).
Each item is scored 1โ10. Only 10/10 is a pass. Anything else = the inner loop runs again, with the next round's rubric stricter than the last.
How to author the rubric
- Write the rubric BEFORE Execute, not after. Otherwise you grade what you produced, not what you needed.
- Aim for 4โ8 items. Fewer is usually wrong (too coarse). More is usually wrong (overlapping items).
- Each item is a single observable fact: "X is true" / "X is present" / "X matches Y". Never aesthetics ("looks clean").
- Ask "if I score this 10/10 and the user still complains, which item should have caught it?" โ that's a missing item.
- Ask "if both item A and item B fail together, is one of them the actual cause of the other?" โ if yes, merge them or remove one.
- For agent code changes the rubric almost always includes: behavior change verified by test, no regression in adjacent surfaces, types/build pass, observability added, no secret/PII leak, docs updated where contract changed.
Worked example โ applying SPEAR to a code task
See examples/agent-bug-fix.md for a full SPEAR run on a representative agent bug (multi-surface default mismatch), including the MECE rubric, two inner-loop iterations, and Resolve.
Anti-patterns that defeat SPEAR
| Anti-pattern | Why it breaks SPEAR | Correction |
|---|
| Writing the rubric after Execute | You'll grade the work you did, not the work needed. | Author rubric in Scope phase. |
| 1-item or vague rubric ("works correctly") | Not MECE โ gaps everywhere. | Decompose into 4โ8 observable items. |
| Passing on 8/10 or 9/10 | Same as not assessing. The author already wanted it to pass. | Only 10/10 = pass. |
| Re-planning from scratch when Assess fails | Wastes the cycles; loses what already worked. | Narrow Plan to the gap the rubric found. |
| Letting Execute run unbounded between assessments | You can't diagnose which step caused the failure. | Execute โ Assess after each unit of work, not at the end of an hour. |
| Skipping Scope because "the user already said what they want" | The user said the symptom, not the system change. | Translate user request โ problem statement + non-goals + rubric. |
| Skipping Assess because Execute "obviously worked" | This is the moment that produces support tickets. | Always Assess. The cost is 2โ3 seconds; the savings are hours. |
Time budgets
Same five phases, only the clock changes:
| Task size | Total time | Scope | Plan | Execute | Assess | Resolve |
|---|
| One-line fix | 30 s | 5 s | 5 s | 10 s | 5 s | 5 s |
| Bug fix in shared code | 5โ15 min | 1 min | 1 min | 5โ10 min | 2 min | 1 min |
| Feature PR | 1โ4 hours | 5 min | 10 min | 60โ180 min | 20 min | 15 min |
| Multi-PR epic | 1โ5 days | 30 min | 1 hour | bulk of time | 1 hour per PR | 30 min |
If Assess keeps failing, the right move is almost always shrink the scope (move items to follow-up PRs), not loosen the rubric.
How to combine with spec-driven-dev and code-review
| Skill | Owns |
|---|
spec-driven-dev | The spec file in docs/specs/, Linear issue, branch naming, BHV entries. |
spear | The thinking loop within a single run: rubric, PlanโExecuteโAssess gate. |
code-review | The final review pass before merge โ runs Assess from a reviewer's POV. |
Order: spec-driven-dev (set up the spec) โ spear (do the work) โ code-review (independent assess from the reviewer angle).
Output discipline
When applying SPEAR in a user-visible thread, surface only the gates that just changed, not every intermediate thought. Format:
**Scope:** <1 line>
**Rubric:** <4โ8 bullets, observable items>
**Plan:** <numbered steps>
**Execute:** <what you did or the diff link>
**Assess:** <scored rubric table>
**Resolve:** <summary + next action>
Skip phases the user already approved. Show the rubric table fully on each Assess round so the user can spot a regression.
About this skill
Part of the Synter free skills collection โ open-source agent skills for advertising, PPC, and marketing automation.
Want this skill (and 40+ more) running on autopilot against your live ad accounts? Try Synter โ AI Agent Media Buyers that connect to Google, Meta, LinkedIn, TikTok, Reddit, Amazon, and 7+ more platforms.