spec-escapes

spec-escapes is a skill for Claude Code from benjaminthomas/spec-driven-dev. It costs 148 tokens per session (2,134 once invoked), scanned A, original, MIT.

A post-release bug investigation skill that traces a fixed bug back to the change and specification that introduced it. It identifies which development stage missed the problem and records a prevention rule when approved.

In plain words
What is it for?
Use it after a production bug or other escaped defect to examine the specification, tests, verification, review, and related commits.
Why use it?
A shipped bug often requires more than a code fix: teams need to understand how it passed their process. This creates a repeatable, blame-free record of the gap and its proposed remedy.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ticket-to-pr plugin — 14 skills shipped together

Good fit Use it after a production bug or other escaped defect to examine the specification, tests, verification, review, and related commits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benjaminthomas/spec-driven-dev/spec-escapes
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add benjaminthomas/spec-driven-dev --skill spec-escapes
Clone the repo
git clone --depth 1 https://github.com/benjaminthomas/spec-driven-dev

Made for: Claude Code.

Or install ticket-to-pr, the plugin that ships this one along with the rest of its 14 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-escapes

README.md
[![agentmods](https://agentmods.dev/badge/skills/benjaminthomas/spec-driven-dev/spec-escapes/github.svg)](https://agentmods.dev/skills/benjaminthomas/spec-driven-dev/spec-escapes)
Your own site
<a href="https://agentmods.dev/skills/benjaminthomas/spec-driven-dev/spec-escapes"><img src="https://agentmods.dev/badge/skills/benjaminthomas/spec-driven-dev/spec-escapes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-escapes

Your own site · 80×15
<a href="https://agentmods.dev/skills/benjaminthomas/spec-driven-dev/spec-escapes"><img src="https://agentmods.dev/badge/skills/benjaminthomas/spec-driven-dev/spec-escapes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00148 $0.02134
Opus 5.5 $0.00059 $0.00854
Sonnet 5.5 $0.00030 $0.00427
Haiku 4.5 $0.00015 $0.00213

Measured today against content hash ca4f6a1d7bf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-escapes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/spec-escapes/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Escapes

A bug got through the pipeline and was fixed later. This skill finds the commit and spec that introduced it, says which stage missed it, and turns the miss into one rule the project keeps.

investigate → create → approve → implement → verify → review → checkpoint → ship → (escapes, after a bug)

Blameless: never name or guess who wrote code. Don't run git blame yourself and don't look at authors. Use the CLI, which leaves authors out. When you read commits yourself, use formats without author fields: git show --stat --format='%h %ad %s' --date=short <sha> and git log --format='%h %ad %s' --date=short. Never print git show's default header.

Project config (read first)

Load .spec-driven.yml: walk up from the current directory to the home folder, and the first one found wins (a multi-repo config only applies inside the repos it lists). If none is found, check ~/.spec-driven/workspaces.json, which maps each multi-repo config to its repo paths. Use the config whose repos contain the current directory. Its values beat anything you would detect or assume. If {specs_dir}/team.yml exists, it holds the team's shared rules: read it first, and let .spec-driven.yml override it. This skill uses specs_dir, layout, repos and tracker (only to read a ticket). For multi-repo projects, run the trace in each repo the fix touched, with --repo=<path>.

No config? The CLI still works (repo is the git top of the current folder, specs folder is specs). Say so, and suggest spec-setup.

The context rules are in references/context-template.md inside the installed spec-setup skill folder. Read it before writing a rule.

Step 1: Find the fix

You are given Do this
A commit sha Use it.
A PR gh pr view <n> --json mergeCommit,commits --jq '{merge: .mergeCommit.oid, commits: [.commits[].oid]}'. Use the squash or merge commit, else the PR's commits.
A ticket key git log --all --oneline --grep=<key>. Use the tracker only to read the ticket.
A description Ask for the fix commit, PR or ticket.

Read the full file on GitHub · 155 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 155 lines · 148 tokens per session scan A ca4f6a1d7bf9

Subscribe to this mod's changes

spec-escapes is a skill published in the GitHub repository benjaminthomas/spec-driven-dev (2 stars, last pushed today), licensed MIT. It adds 148 tokens to every session and 2,134 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-30.

Related

spec-escapes compared with skills from other repositories

spec-escapes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-escapesbenjaminthomas/spec-driven-devSkill2todayMITA148Claude Code
cloud-logging-query-generationhamzabellouch/agent-skillsSkill81mo agoMITA67Claude Code, Codex
datalineage-summaryhamzabellouch/agent-skillsSkill81mo agoMITA92Claude Code, Codex
browser-testing-with-devtoolshamzabellouch/agent-skillsSkill81mo agoMITB68Claude Code, Codex
doubt-driven-developmentaddyosmani/agent-skillsSkill122k7d agoMITA96Claude Code
performance-optimizationaddyosmani/agent-skillsSkill122k7d agoMITA59Claude Code
debugging-methodologyDevelopersGlobal/ai-agent-skillsSkill2206d agoMITA26Claude Code, Codex