document

document is a skill for Claude Code from bitcraft-apps/spec-first. It costs 8 tokens per session (644 once invoked), scanned A, original, MIT.

A command for creating a small set of project documents from requirements and implementation files, using multiple helper agents. It writes summaries, a documentation inventory, and developer and user documentation when the required inputs exist.

In plain words
What is it for?
Use it to document a change from .sf/spec.md, .sf/implementation-summary.md, or paths you provide. It also checks the analysis before writing the documents.
Why use it?
It reduces the manual work of turning project specifications and code changes into proportional documentation.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the sf plugin — 2 skills, 1 agent, 1 hook shipped together

Good fit Use it to document a change from .sf/spec.md, .sf/implementation-summary.md, or paths you provide. It also checks the analysis before writing the documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bitcraft-apps/spec-first/document
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.

Any agent
npx skills add bitcraft-apps/spec-first --skill document
Clone the repo
git clone --depth 1 https://github.com/bitcraft-apps/spec-first

Made for: Claude Code.

Or install sf, the plugin that ships this one along with the rest of its 2 skills, 1 agent, 1 hook.

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 document

README.md
[![agentmods](https://agentmods.dev/badge/skills/bitcraft-apps/spec-first/document/github.svg)](https://agentmods.dev/skills/bitcraft-apps/spec-first/document)
Your own site
<a href="https://agentmods.dev/skills/bitcraft-apps/spec-first/document"><img src="https://agentmods.dev/badge/skills/bitcraft-apps/spec-first/document/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 document

Your own site · 80×15
<a href="https://agentmods.dev/skills/bitcraft-apps/spec-first/document"><img src="https://agentmods.dev/badge/skills/bitcraft-apps/spec-first/document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 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.
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.00008 $0.00644
Opus 5.5 $0.00003 $0.00258
Sonnet 5.5 $0.00002 $0.00129
Haiku 4.5 $0.00001 $0.00064

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

Security

Grade A, and why

document 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/doc-gates.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/document/SKILL.md · 66 lines

How it starts

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

Document Command

Creates minimal, proportional documentation. Match doc weight to change weight. One agent does the steps in order.

Usage

/sf:document [SPECIFICATION_AND_IMPLEMENTATION_PATHS]

Context

Read .sf/implementation-summary.md if it exists.

Input Resolution

  1. If $ARGUMENTS is non-empty: use it as the artifact and implementation paths
  2. Else if .sf/spec.md and .sf/implementation-summary.md exist: use them
  3. Else: ask the user where the artifacts are. Wait for the answer.

Execution

Write each file in turn. All paths are under $SF_DIR/research/.

  1. artifacts-summary.md — the requirements and outcomes in the artifacts. Read only what exists.
  2. implementation-summary.md — the real code structure: the main files, the changed interfaces.
  3. docs-inventory.md — every existing doc as filepath | primary topic, from the headings only.

Gate 1 — Post-Analysis: run scripts/doc-gates.sh analysis, in this skill directory. If doc-gates.sh fails (non-zero exit), halt immediately — do not write the documents.

  1. technical-docs.md — what a developer needs to use or extend the change. Skip any section that does not apply.
  2. user-docs.md — only what the user must do differently. Skip it if the change is invisible.

An empty file is a valid result. It means the change does not need that document.

Gate 2 — Post-Generation: run scripts/doc-gates.sh generation. If doc-gates.sh fails (non-zero exit), halt immediately — do not integrate.

  1. Integrate: for each topic in docs-inventory.md that matches, edit that file. Create a file only when none fits. Cut duplicate content. Then delete the research files.

Output: Documentation updates (if any) + terminal summary

Gate Failure Behavior

On a non-zero gate exit: halt, report which gate failed and the reason it printed, and keep the output for inspection.

On Claude Code

Claude Code runs the steps as the sf-document workflow — schema-checked, and with no shared file between the analysis agents. The workflow applies both gates itself.

Read the full file on GitHub · 66 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 66 lines · 8 tokens per session scan A e4adb11630ef

Subscribe to this mod's changes

document is a skill published in the GitHub repository bitcraft-apps/spec-first (4 stars, last pushed yesterday), licensed MIT. It adds 8 tokens to every session and 644 once invoked, about $0.0000 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.

Related

Other skills, from other repositories

espalier-migrate

Migrate an existing harness/espalier install to the current Espalier version — auto-detects which of v0.1→v0.2, v0.3→v0.4, v0.4→v0.5, the v0.5.3 coder-agent patch, v0.5→v0.6 (Stage 1 grill), v0.6→v0.7 (read-only /espalier-ask lane), v0.7→v0.8 (requirements approval gate), the v0.8.1 impact-analysis agent patch, the…

Junhanliu-dev/espalier-engineering · 0 tokens

triage

Work a repo's needs-triage backlog, and outside contributors' issues and pull requests, in batches the decider approves in one pass: each item gets a cheap check and one proposed move with a plain-words reason, and only approved moves are applied. Use when asked to triage or work through a needs-triage pile, or to…

timharris707/skills · 83 tokens

retro

Read a sample of one repo's past agent sessions, Claude Code and Codex, find the friction the agents hit, and return a short ranked list of fixes in plain words, each labeled and routed to whoever owns the fix. Use when the user asks for a retro or retrospective on agent work, asks what keeps going wrong in a repo's…

timharris707/skills · 83 tokens

show-me-your-work

For autonomous multi-phase or unattended work, a reviewer needing an evidence trail, or an explicit decision-log/show-your-work request, keep an append-only decision log with why, evidence, and result. Record decisions and corrections, not hidden reasoning transcripts.

timharris707/skills · 54 tokens

review

Reviews code changes for concrete bugs with P0-P2 prioritized findings. Uses parallel architectural and implementation reviewers, then validates findings to remove false positives. Use when reviewing a caller-supplied diff, branch, staged changes, file set, or pull request, and use fix mode with caller-supplied…

brsbl/ottonomous · 83 tokens

setup

For a new TeamWorkflow installation, binding refresh, or drift audit after a pack release, inspect and bind the project workflow. Reuse explicit recorded decisions with their sources; ask about missing, conflicting, or changed authority and bindings.

timharris707/skills · 48 tokens