spec-authoring
БесплатноБез исполняемых скриптовНе проверенStandard for authoring engineering behavior-contract specs in docs/specs/: scope subsystems, assign stable IDs, structure docs, manage lifecycle.
от bobmatnyc★ 160 звёзд на GitHubОб этом скилле
Spec Authoring
Overview
This skill is the agent-facing entry point to the Engineering Spec Authoring Standard:
how to write engineering specifications in docs/specs/. A spec is a behavior contract
(testable WHAT + WHY, linked to implementing modules), owned by Engineering / Architecture.
It has two distinct companions — keep the roles separate:
spec-authoring(this skill) = authoring engineering specs. Scope a subsystem into a file, assign stable IDs, structure a behavior-contract document, decide granularity, run pre-spec technical research, and move a spec through its lifecycle.spec-linked-docs(SLD) = traceability. Keep source code in sync with the spec via docstringReferencesand a CI checker.prd-authoring= product PRDs (a separate, product-owned standard —docs/prd/).
SPEC ≠ PRD. A SPEC is an engineering contract (
SPEC-{SUBSYSTEM}-{NN}~{rev}, indocs/specs/, owned by Engineering). A PRD is a product requirements doc (PRD-{AREA}-{NN}, indocs/prd/, owned by Product). A spec implements a PRD requirement and cites it; product framing (problem, users, acceptance criteria, metrics) stays in the PRD. Do not put PRD content in a spec.
Full standard: docs/specs/AUTHORING.md.
This skill orients and links; AUTHORING.md is the authoritative, portable standard.
The ID grammar itself lives in docs/specs/README.md
— defer to it; never re-derive it.
Use this skill, do not duplicate it. SKILL.md is a concise router. The detailed rules live in
AUTHORING.mdand the five reference files below. Read the reference you need.
When to Use
- Creating a new
docs/specs/{subsystem}.mdfile for a subsystem. - Adding a governed
SPEC-{SUBSYSTEM}-{NN}~{rev}section to an existing spec. - Deciding whether a behavior is one ID, several, or none.
- Deciding whether to add a new subsystem (file) or a section to an existing one.
- Running pre-spec technical research and recording it in
docs/specs/research/. - Moving a spec through its lifecycle (Draft → Review → Active → Superseded).
If your task is instead linking code to an existing spec, use spec-linked-docs.
If you are authoring product requirements, use prd-authoring.
Core Model (at a glance)
A claude-mpm spec is a behavior contract: one bounded subsystem = one file
(docs/specs/{subsystem}.md). Each governed section has a stable
{#SPEC-{SUBSYSTEM}-{NN}~{rev}} ID and contains:
- Behavior Contract (WHAT) — Inputs / Outputs / Preconditions / Postconditions / Error conditions.
- Rationale (WHY) — design decisions and constraints (mandatory; never HOW). Cite the
PRD-{AREA}-{NN}requirement realized, if any. - Implementing Modules — the HOW-link table (SLD verifies these).
Around the governed sections sit a header block (Status, Version, Subsystem, Owner=eng, Last-updated, Related), Purpose & Scope, a Table of Contents (ID → section → modules), Open Questions / Future Work, and References.
There is no Acceptance Criteria or Success Metrics section — those are PRD concerns.
The copy-pasteable template is in references/spec-template.md.
Quick Start
- Read the grammar.
docs/specs/README.md§4 definesSPEC-{SUBSYSTEM}-{NN}~{rev}and the declaration rule. Do not invent IDs. - Pick or create the subsystem file. One bounded subsystem = one file. See
references/category-taxonomy.mdfor the existing seven subsystems and the add-subsystem-vs-section rules. - Apply the spec template. Copy
references/spec-template.md; fill the header block, Purpose & Scope, ToC, and each governed section. - Get granularity right. One ID per independently-verifiable behavior. Use the litmus
test and split/merge heuristics in
references/granularity-guide.md. - Cite the PRD requirement realized (if any) and your research. Non-obvious decisions
link to
docs/specs/research/NN-topic-slug.md. Seereferences/research-conventions.md. - Link implementing modules in each section's table; engineers then add SLD
Referencesblocks (handoff tospec-linked-docs). - Run the CI check.
uv run pytest tests/test_spec_traceability.pyverifies the traceability graph. Draft sections are exempt from UNCOVERED (see README §9b).
Reference Files
| Reference | Read it when you need to… |
|---|---|
spec-template.md |
Copy the canonical behavior-contract spec document template. |
category-taxonomy.md |
See existing subs |
Установить spec-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл spec-authoring?
Standard for authoring engineering behavior-contract specs in docs/specs/: scope subsystems, assign stable IDs, structure docs, manage lifecycle.
Как установить скилл spec-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic