# Spec Authoring

> Create/iterate requirements docs with REQ-IDs following specs/requirements.md (root or specs/features/<slug>/ scope). Use when this capability is needed.

- Skill: `tomevault-io/spec-authoring-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/spec-authoring-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/spec-authoring-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/spec-authoring-2

---


# spec-authoring

## Purpose
Write or refine `requirements.md` so it is clear, testable, and scoped, using REQ IDs and the repository template.

## Inputs
- `PROJECT.md`
- `specs/requirements.md` OR `specs/features/<slug>/requirements.md` (scope)
- If present: existing `design.md` / `tasks.md` for the same scope (read-only context; do not advance phases)

## Steps
1. Resolve scope:
   - If `<slug>` provided: use `specs/features/<slug>/requirements.md`
   - Else: use `specs/requirements.md`
2. Read the target requirements file and keep its template structure.
3. Fill/iterate:
   - Introduction (what/why, not how)
   - Glossary (only domain terms; consistent naming)
   - Requirements list using REQ IDs: `REQ-001`, `REQ-002`, ...
4. For each requirement:
   - Keep it single-purpose.
   - Make it testable and unambiguous.
   - Avoid implementation details.
   - Add acceptance criteria only if it improves testability (SHALL statements).
5. Detect missing info and ask only the minimum blocking questions.
6. Stop and request explicit approval when the requirements are coherent and complete.

## Output
- Updated requirements file for the resolved scope
- 3–5 bullets summarizing what changed
- Blocking questions (only if required to proceed)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/jpiedrafita) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

