OpenSpec: Skill for Claude Code

.agents/skills/draft-openspec-docs/SKILL.md

draft-openspec-docs is a skill for Claude Code from Fission-AI/OpenSpec. It costs 81 tokens per session (767 once invoked), scanned A, original, MIT.

A collaborative workflow for drafting OpenSpec documentation, with a temporary page plan followed by section-by-section writing.

In plain words
What is it for?
Use it when creating or substantially rewriting an OpenSpec documentation page.
Why use it?
It gives the author a chance to agree on the page purpose and structure before substantial documentation is written.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is Fission-AI/OpenSpec's own configuration. It tells Claude Code how to work on OpenSpec itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenSpec configures →

About the project

OpenSpec is a specification-driven development framework that records software requirements and implementation plans as readable Markdown artifacts. It helps developers and AI coding assistants agree on what should be built before code is written, including work spanning multiple repositories. The catalogue add-ons provide workflow skills and instructions for using OpenSpec.

Fission-AI/OpenSpec · 74,064 stars · on GitHub · openspec.dev

Reuse

Borrowing it

Nothing to install: this file belongs to Fission-AI/OpenSpec. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Fission-AI/OpenSpec/main/.agents/skills/draft-openspec-docs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Fission-AI/OpenSpec

Made for: Claude Code.

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 draft-openspec-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/fission-ai/openspec/draft-openspec-docs/github.svg)](https://agentmods.dev/skills/fission-ai/openspec/draft-openspec-docs)
Your own site
<a href="https://agentmods.dev/skills/fission-ai/openspec/draft-openspec-docs"><img src="https://agentmods.dev/badge/skills/fission-ai/openspec/draft-openspec-docs/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 draft-openspec-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/fission-ai/openspec/draft-openspec-docs"><img src="https://agentmods.dev/badge/skills/fission-ai/openspec/draft-openspec-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 767 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. Third-party audits
  • Socket pass 21 Aug 2026
  • Snyk warn 21 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00081 $0.00767
Opus 5.5 $0.00032 $0.00307
Sonnet 5.5 $0.00016 $0.00153
Haiku 4.5 $0.00008 $0.00077

Measured 2mo ago against content hash 274209302f51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

draft-openspec-docs 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 2mo 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.

.agents/skills/draft-openspec-docs/SKILL.md · 47 lines

How it starts

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

Draft OpenSpec docs (scratch-plan workflow)

You are shaping a docs page with the user in the loop. The page is planned and reviewed inside the page itself, then drafted one section at a time. Load write-openspec-docs (the style authority) and no-ai-slop before drafting anything.

1. Set up the scratch section

Strip the page to its title and > goal line, then add a working section below them:

## Scratch: page plan (delete before publish)

### Purpose

### Structure
  • Purpose: 3-5 dot points. Who the reader is and what they come to look up, what the page covers, what it links out to. Check docs-lab/README.md (the page's goal line) and docs-lab/message-map.md (the questions routed here) before writing it.
  • Structure: a numbered list of the page's sections, one line each naming the section and the shape of its content (table, fence, tree, bullets).
  • Say what the page will do, never what it won't. Plain words and short bullets; the user reads this in their editor.

2. Iterate until the plan is approved

  • Plan edits are cheap; page edits aren't. Reshape the plan as many times as the user asks before drafting.
  • Record every decision in the plan itself, not only in chat. Add a ### Notes list for follow-ups that belong to other pages and product observations found along the way.
  • The user may edit the file directly between turns; their edits are decisions, not drift to revert.
  • Surface one open call at a time, with a recommendation.

3. Add the draft plan, then draft step by step

Once the structure holds, add a ### Draft plan below the notes: one step per page section, each with an ID and a readable title (**D1. Goal line and intro**), ending with a consolidation step (cross-page updates) and a cleanup step. Then:

  • Wait for the user to call a step ID. Draft exactly that step, into the page above the scratch block.
  • Verify each fact against source before writing it; a cheap grep beats trust. Reference content shows the raw contract (templates, instructions, config) verbatim in fences, linked to the file on GitHub, rather than paraphrasing it.
  • Keep sibling sections on a repeatable sub-structure so the page scans as one system.
  • Mark the step (done) in the plan, report what landed, and name the next step.

Read the full file on GitHub · 47 lines

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. 2mo ago First seen · 47 lines · 81 tokens per session scan A 274209302f51

Subscribe to this mod's changes

draft-openspec-docs is a skill published in the GitHub repository Fission-AI/OpenSpec (74,064 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 767 once invoked, about $0.0003 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-30.

Related

draft-openspec-docs compared with skills from other repositories

draft-openspec-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
draft-openspec-docsFission-AI/OpenSpecSkill74kyesterdayMITA81Claude Code
add-community-extensiongithub/spec-kitSkill148kyesterdayMITA63Claude Code
code-reviewgithub/spec-kitSkill148kyesterdayMITA54Claude Code
openprd-harnessmileson/openprdSkill501mo agoMITA68Claude Code, Codex
openprd-sharedmileson/openprdSkill501mo agoMITA74Claude Code, Codex
openprd-frontend-designmileson/openprdSkill501mo agoMITA50Claude Code, Codex
openprd-discovery-loopmileson/openprdSkill501mo agoMITA76Codex