Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/inkeep/open-knowledge-skillsnpx agentmods add skills/inkeep/open-knowledge-skills/write-a-specWrote 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/inkeep/open-knowledge-skills/write-a-spec)<a href="https://agentmods.dev/skills/inkeep/open-knowledge-skills/write-a-spec"><img src="https://agentmods.dev/badge/skills/inkeep/open-knowledge-skills/write-a-spec/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.
<a href="https://agentmods.dev/skills/inkeep/open-knowledge-skills/write-a-spec"><img src="https://agentmods.dev/badge/skills/inkeep/open-knowledge-skills/write-a-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 23 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
- medium Excessive Agency · line 25 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
- medium Excessive Agency · line 112 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.1 | $0.00176 | $0.04724 |
| Opus 5.5 | $0.00070 | $0.01890 |
| Sonnet 5.5 | $0.00035 | $0.00945 |
| Haiku 4.5 | $0.00018 | $0.00472 |
Grade A, and why
write-a-spec 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 26d 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 — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write a spec — scope a feature and commit an implementation spec
This skill is pack guidance. The platform
/open-knowledgeskill (read/write/preview/linking/grounding rules) still governs every markdown operation — this layers spec-writing craft on top.
A spec is the contract between "we decided to build this" and "here is how it gets built." It is derived from an ACCEPTED proposal, maps the system that exists TODAY before proposing a change, and records its one-way-door choices in a Decision Log so the reasoning survives the author leaving. A spec that skips the current-system mapping, or resolves its open questions silently, is a liability — it reads authoritative while being unfounded.
specs/ uses a folder-per-spec shape: specs/NNN-name/ holding spec.md, and (when the work is actually going to be built) plan.md + tasks.md. The pack ships all three templates. status on spec.md flows draft → ... → shipped.
Autonomy mode
| Mode | Behavior | How entered |
|---|---|---|
| Supervised (default) | STOP at the Step 2 scoping gate for user confirmation of Goals / Non-goals / change shape. Route open decisions interactively. | Default when a user drives the session. |
| Headless | Auto-confirm the scoping proposal after presenting it; auto-select routing decisions. All other gates (parent-proposal check, current-system mapping, Decision Log, validation, grounding) still enforced. | Explicit "don't wait for me", "just proceed", "run headless" — or non-interactive container environments. |
In headless mode, propose the scope AND proceed immediately; record in the Decision Log that scope was auto-confirmed without user sign-off.
Mandatory execution order
Hard gates — do NOT skip ahead. If you find yourself about to write ## Design before you have read the actual code the change touches, STOP — you skipped Step 1.
- Find the parent proposal. No accepted proposal behind a spec is a smell.
- Map the CURRENT system. Read real code + prior specs + guides. Write what exists today, with pointers.
- Scoping STOP gate. Propose Goals / Non-goals / change shape. In Supervised mode, WAIT.
- Create the spec folder +
spec.mdfrom thespectemplate; allocateNNNby listing, not guessing. - Fill Goals / Non-goals — non-goals temporal, each with a reason.
- Design — options considered, one chosen, why; one-way doors flow to the Decision Log.
- Decision Log — append the section; each entry survives the author.
- Open Questions — a live backlog, each with its closing evidence and decider.
- Migration + Test plan — real states, real tiers, explicit gaps.
plan.md+tasks.md— only when the spec is going to be built.- Link + validate — backlinks, dead-links clean, frontmatter complete.
- Recap — and what would move it out of
draft.
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.
- 26d ago Changed 68558c437844
- 2mo ago First seen · 299 lines · 176 tokens per session scan A 1e1e2fdc5335
write-a-spec is a skill published in the GitHub repository inkeep/open-knowledge-skills (17 stars, last pushed 13d ago), licensed MIT. It adds 176 tokens to every session and 4,724 once invoked, about $0.0007 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-08-31.
write-a-spec compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-a-specinkeep/open-knowledge-skills | Skill | 17 | 13d ago | MIT | A | 176 | Claude Code |
| claude-md-improveranthropics/claude-plugins-official | Skill | 47k | today | Apache-2.0 | A | 82 | Claude Code |
| agent-platform-model-registrygoogle/skills | Skill | 24k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 24k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 10k | today | Apache-2.0 | A | 56 | Claude Code |
| viteantfu/skills | Skill | 6.1k | 5d ago | MIT | A | 49 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 6d ago | MIT | A | 110 | Claude Code |