author-spec

A workflow for writing a detailed technical specification for one part of a software system. A sub-spec describes one subsystem and gives another workflow enough detail to break it into implementation tasks.

In plain words
What is it for?
Use it to research a subsystem, collect decisions from operators, draft its specification, get documentation review, and hand the approved work to a task-decomposition process.
Why use it?
It turns incomplete or scattered requirements into an agreed document grounded in the existing code, related specifications, and primary sources. Review and approval gates help catch contradictions before implementation.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/blakemartz/delivery-loop/author-spec
Any agent
npx skills add blakemartz/delivery-loop --skill author-spec
Clone the repo
git clone --depth 1 https://github.com/blakemartz/delivery-loop

Made for: Claude Code, Codex.

Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00074 $0.02161
Opus 5 $0.00037 $0.01081
Sonnet 5 $0.00015 $0.00432
Haiku 4.5 $0.00007 $0.00216

Measured 2d ago against content hash f79643e66032, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

author-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 2d 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.

plugins/delivery-loop/skills/author-spec/SKILL.md · 55 lines

How it starts

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

author-spec — subsystem → merged spec → backlog handoff

You are the spec author role from the delivery spec (${CLAUDE_PLUGIN_ROOT}/docs/agentic_delivery_spec.md, §3.7). You produce the normative text the decomposer translates; you never implement tasks — execution belongs to the delivery loop.

Read .claude/delivery.conf for SPEC_SOURCES (where specs live / what /decompose reads), STYLEGUIDES_DIR, BASE_BRANCH, WORKTREE_SETUP_CMD, and NOTIFY_ESCALATE_CMD.

Inputs

  1. The subsystem argument (e.g. "object storage") — refuse politely if a spec for it already exists among SPEC_SOURCES (propose a vN+1 amendment instead).
  2. The parent/architecture specs among SPEC_SOURCES — the frame the sub-spec derives from — and the product-intent doc if the repo keeps one (for the why, never for criteria). If SPEC_SOURCES matches nothing, this is the repo's first spec: frame it as the root architecture spec later sub-specs will derive from (§Frame states the whole system, not a parent), and skip the sibling pass in input 3.
  3. Every sibling sub-spec the new one extends, consumes, or must not contradict, and the relevant conventions in STYLEGUIDES_DIR.
  4. The live board: gh issue list + bash "${CLAUDE_PLUGIN_ROOT}/scripts/task-queue.sh" — cross-wave dependencies must name real issue numbers, and your repo's serialization hazards (e.g. DB migration single-head, generated-artifact/client regen, one-start-per-module:) are facts about today's in-flight waves.
  5. Research notes, when the repo keeps them for the area.

Pipeline (phase gates are hard — never skip forward)

  1. Frame. Place the spec in the graph: sub-spec of what, extends/consumes which siblings, prerequisite of what, independent of what. State what exists in code today and what gap the spec closes.
  2. Pin. Enumerate the genuine design forks (storage/queue/format choices, scope cutlines, rollout order). Present them to the operator as explicit decision sets with a recommendation first (AskUserQuestion), in prose a newcomer to the tool in question can follow. Never write normative text over an unpinned fork. Record the pins and their date in the spec header ("decisions confirmed with the operator YYYY-MM-DD").
  3. Ground. Two passes, both mandatory:
    • Repo: an Explore agent maps the seams the spec builds on — exact model fields, protocols, registries, DTO gaps, and any exhaustive enum/variant maps a new case would ripple through (classic extension-race points — find them before the spec adds a variant).
    • External: every load-bearing external fact (endpoints, formats, licenses, rate limits, auth) is verified against primary sources (WebFetch/WebSearch or a research agent) — fetch the real API, don't trust prior notes. A fact that can't be verified is flagged in the spec as unverified, never silently assumed.
  4. Draft to the house template (§Template below), in the scratchpad.
  5. Preview — hard gate. Send the draft to the operator (SendUserFile when the harness provides it; otherwise print the draft path and a summary) with every judgment call flagged (cutline scope, deferred alternatives, anything that surprised you in grounding). No PR before the nod.
  6. Land. Worktree from origin/$BASE_BRANCH; copy the spec into the specs directory (so SPEC_SOURCES matches it); make every §Cross-doc-alignment edit in the same commit; run WORKTREE_SETUP_CMD if the gate needs deps installed; commit, push, open the PR. Gates are never bypassed — no --no-verify, ever.
  7. Docs review. Spawn a fresh adversarial reviewer (it must not see your drafting context). Its brief, which differs from /delivery-loop:review-task (there are no acceptance criteria to execute):
    • ground every claim the spec makes about existing code against origin/$BASE_BRANCH, and every external API contract against the live primary source;
    • check internal consistency (golden-case numbering, cutline ↔ case ↔ test-file mapping, §-references) and buildability (could a task agent implement each cutline task from the text and fixtures alone?);
    • sweep the other docs for claims this PR makes stale;
    • post exactly ONE verdict per round, as a GitHub review comment: gh pr review --comment --body "<verdict>" <pr> (flags first — the single-account verdict-of-record form; delivery_runbook.md §7, spec §13.2; formal --approve/--request-changes are rejected on same-account PRs), body opening ## Adversarial review — verdict: APPROVE|REQUEST_CHANGES with numbered blockers. Verify it landed (gh pr view --json reviews) — an unposted verdict did not happen. Fix rounds: address blockers, push, and resume the same reviewer (its grounding context is the asset — a deliberate, docs-review-scoped deviation from the loop's fresh-reviewer rule, spec §3.7). Max 3 rounds, then needs-human (run NOTIFY_ESCALATE_CMD if set).
  8. Merge. On APPROVE + green CI the PR is mergeable. Merge authority follows the delivery spec (§3.6, §8.2): human by default — squash-merge (--delete-branch) yourself only under the operator's explicit standing authorization; otherwise report ready-for-merge and stop at the gate. After the merge (whoever performs it): remove the worktree, fast-forward local $BASE_BRANCH.
  9. Hand off to /decompose. Against the merged text — never pre-merge: review rounds change cutlines, and a pre-merge decomposition decomposes stale text. Run /delivery-loop:decompose <spec area> dry-run, present the printed backlog, and pass --create only on the operator's approval of that table (/decompose's own gate — this skill sequences it, never absorbs or pre-satisfies it; a standing operator directive counts only when it explicitly covers backlog creation). Then report the epic, task numbers, and ready set, and update the operator's roadmap memory when the session keeps one.

Read the full file on GitHub · 55 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. 2d ago First seen · 55 lines · 74 tokens per session scan A f79643e66032

Subscribe to this mod's changes

author-spec is a skill published in the GitHub repository blakemartz/delivery-loop (4 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 2,161 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

github-issue-triage

Issue triage and lifecycle management agent for ZeroClaw. Use this skill whenever the user wants to: triage open issues, close stale/duplicate/fixed issues, apply labels, run a backlog sweep, enforce the current issue stale policy, or handle a specific issue. Trigger on: 'triage issues', 'issue triage', 'sweep…

zeroclaw-labs/zeroclaw · 140 tokens

docs-planner

Identify documentation gaps and prioritize the docs backlog. Use when planning a docs improvement sprint, after signals surface repeated friction, when new SDK features ship without docs, or for periodic health assessment. Also triggers on "plan docs work", "what docs need writing", "prioritize the backlog", "docs…

strands-agents/harness-sdk · 73 tokens

design-sprint-plan

Plan and facilitate a design sprint from challenge framing through prototype testing. Use when compressing discovery into days. For ongoing team cadence, use team-workflow.

Owl-Listener/designer-skills · 37 tokens

team-workflow

Design the team's operating rhythm — task management, collaboration rituals, and tooling. Use when the day-to-day cadence needs structure. For a time-boxed sprint, use design-sprint-plan.

Owl-Listener/designer-skills · 43 tokens

Technical Debt Tracking with PMAT

Tracks and manages technical debt using PMAT (Pragmatic AI Labs MCP Agent Toolkit). Use this skill when: User asks about technical debt, TODO comments, or code quality issues Planning sprint work and need to prioritize debt repayment Conducting code audits or technical debt assessments Tracking debt accumulation…

paiml/paiml-mcp-agent-toolkit · 123 tokens

predict

Pre-implementation multi-persona adversarial analysis for gflow-cli proposals. Five expert personas independently evaluate a proposed change before a single line of code is written, then converge on a GO / CAUTION / STOP verdict. Invoke before any high-stakes decision: new transport, auth change, selector redesign…

ffroliva/gflow-cli · 78 tokens