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.
npx agentmods add skills/moberghr/mtk-agent-toolkit/spec-driven-developmentnpx skills add moberghr/mtk-agent-toolkit --skill spec-driven-developmentgit clone --depth 1 https://github.com/moberghr/mtk-agent-toolkitWrote 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.
[](https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/spec-driven-development)<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/spec-driven-development"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/spec-driven-development.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00031 | $0.07407 |
| Opus 5 | $0.00015 | $0.03703 |
| Sonnet 5 | $0.00006 | $0.01481 |
| Haiku 4.5 | $0.00003 | $0.00741 |
Grade A, and why
spec-driven-development 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 470 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spec-Driven Development
Overview
Write the implementation spec before writing code. The spec is the shared source of truth between the engineer, the command flow, and the reviewers. Code without a spec is guessing.
Tool discipline (phase-locked): spec authoring is a read + spec-artifact phase. Write only the spec artifacts (
docs/specs/<date>-<slug>.mdand its.jsonsidecar) — never source or test code. Code starts at Phase 3, after the approval gate; a source edit here is a scope violation. (Not toolset-locked toread-onlybecause it must write its spec files.)
Supplied spec/plan (adoption, not authoring): when the engineer hands in a complete spec or plan as the input (e.g.
docs/specs/…mdordocs/plans/…mdalready on disk),implement's Phase 0.7 adopts it as the source of truth. In that case this skill validates the supplied artifact against the schema and reconciles it against the current code (seeprior-work-check's existing-plan reconciliation) rather than re-authoring to a fresh path — never overwrite or version-bump the engineer's input. Seeimplement/SKILL.mdPhase 0.7.
When To Use
- New endpoints, handlers, routes, or views
- Database changes or migrations
- Multi-file work
- Breaking changes
- Any task where approval should happen before coding
- Any task likely to take more than a short focused session
When NOT To Use
- Typo fixes
- One-line config updates with no behavior impact
- Small bug fixes that clearly stay within quick-fix scope
Workflow
Decision Graph
This graph drives the two questions models get wrong most often: "do I need a spec at all?" and "can I start coding after writing one?" The red node is the hard stop — implementation never begins inside this skill.
digraph spec_flow {
rankdir=TB;
node [shape=box, style=rounded, fontname="Helvetica"];
edge [fontname="Helvetica", fontsize=10];
start [label="task arrived"];
trivial [label="typo / 1-line config /\nclear quick fix?", shape=diamond];
skip [label="skip spec\n(use fix workflow)", style="rounded,filled", fillcolor="#e0f0e0"];
multi [label="multi-file OR new endpoint /\nhandler / migration OR\nbreaking change?", shape=diamond];
long [label="longer than a short\nfocused session?", shape=diamond];
load [label="load standards:\nCLAUDE.md, coding guidelines,\nsecurity, testing, architecture,\nrelevant lessons"];
assume [label="surface assumptions\n(runtime, arch, storage,\nauth, boundaries)"];
classify [label="classify scope:\ninternal-refactoring /\nnew-feature / breaking-change"];
pattern [label="read 2-3 nearby files\nfor local pattern"];
ambig [label="ambiguity present?\n(≥2 plausible designs OR\nundefined scope edge OR\nunresolved arch choice)", shape=diamond];
ask [label="ask via AskUserQuestion\nBEFORE drafting\n(batched ≤2 / interview ≥3)"];
draft [label="draft spec sections:\nsummary · success criteria ·\narch · security impact ·\nchange manifest · test manifest ·\nbatches · risks · open Qs"];
elegance [label="elegance check:\nfewer files? fewer\nabstractions? fewer\nmoving parts?"];
sec [label="security_impact\nhonest?", shape=diamond];
fixsec [label="upgrade security_impact\n(spec-drift will catch lies)",
style="rounded,filled", fillcolor="#fff8d0"];
persist [label="write to disk:\ndocs/specs/<date>-<slug>.md\n+ <date>-<slug>.json sidecar\n(version-suffix if exists)"];
approve [label="STOP — hand to approval gate.\nDo NOT implement.\nDo NOT merge into batch 1.",
style="rounded,filled", fillcolor="#ff9090"];
start -> trivial;
trivial -> skip [label="yes"];
trivial -> multi [label="no"];
multi -> load [label="yes"];
multi -> long [label="no"];
long -> load [label="yes"];
long -> skip [label="no"];
load -> assume -> classify -> pattern -> ambig;
ambig -> ask [label="yes"];
ambig -> draft [label="no"];
ask -> draft;
draft -> elegance -> sec;
sec -> fixsec [label="no — auth/payments/\naudit/secrets/PII/IAM\nbut marked 'none'"];
fixsec -> persist;
sec -> persist [label="yes"];
persist -> approve;
}
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.
- 3d ago First seen · 470 lines · 31 tokens per session scan A 6e2835a66c9a
spec-driven-development is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (6 stars, last pushed 9d ago), licensed MIT. It adds 31 tokens to every session and 7,407 once invoked, about $0.0002 per session on Opus 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…