/fsh:docs-auditfrom fsh
Audit a repository's documentation and agent instructions against the house conventions, fix what is mechanical, and leave the rest as a ranked proposal — measured, not eyeballed: instruction-budget overflow (the rules an agent never receives), CLAUDE.md/AGENTS.md drift, stale commands, dead links, unindexed docs, spec-convention breaks, and state docs narrating their own history. Optionally installs the CI gate so the rules hold without re-running it. Use when onboarding a repo, when agents keep ignoring documented rules, when someone asks "is our documentation any good / bring this repo up to standard", or before handing a repo to a new contributor. Args: a repo path (default: the current repo), plus `--audit-only` to write nothing.
Ships in fsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are running the docs-audit skill. Goal: make a repository's documentation work on the reader it actually has — half of whom are agents that read a fixed number of bytes and then stop.
The failure this exists to catch is silent. A rule at the bottom of a 33 KB AGENTS.md is not low-priority, it is absent: the agent's context ends before it. Nobody notices, because the symptom is an agent that "ignores the conventions" and a human who writes the rule a third time, further down.
Scope: structure, wiring, indexes and enforcement. Never the claims. You may move a paragraph, split a file, add an index row, fix a link, install a gate. Correcting what a doc asserts is a different job with a different review — report it, don't fold it in.
The rubric is references/conventions.md. Read it before Phase 3; it carries the reasoning each rule was bought with, and you will need that to argue for an edit.
git rev-parse --show-toplevel).--audit-only writes nothing at all.git remote -v plus the repo's own docs:
AGENTS.md in a drive-by PR is how a contribution gets closed unread. Report, and offer to open one narrow PR for the single highest-value fix.AGENTS.md/CLAUDE.md, a docs/README.md, a spec-directory README.md, CONTRIBUTING.md. A repo that has deliberately chosen differently is not in violation.Facts first — the byte arithmetic and the link graph are not things to eyeball.
"${CLAUDE_SKILL_DIR}/scripts/doc-audit.sh" [repo-path] | tee /tmp/doc-audit.txt
Read-only, a couple of seconds on a large repo. It reports ten sections: instruction-budget chains, CLAUDE.md/AGENTS.md wiring, the ## Skill profile, commands that no longer resolve, dead relative links, unindexed docs, spec convention, state-vs-record candidates, size outliers, and whether anything is CI-enforced.
Two of its sections are heuristics, not findings — §8 (state-vs-record) matches prose patterns and will flag a doc that merely discusses revision history, and §6 (orphans) flags raw corpora (sources/, _archive/, imported material) that are legitimately unlinked. Judge each; never paste them through as verdicts.
The other eight are arithmetic. Trust them.
Read the root doc and every nested agent doc in full. Skim the doc tree. Then name the shapes — these recur:
AGENTS.md and CLAUDE.md both carrying content. They have already drifted or will; the drift shows up as an agent that behaves differently depending on which tool ran it.AGENTS.md anywhere. Every non-Claude agent — Codex, Cursor, most CI review bots — starts this repo with no instructions at all, and nothing in the repo says so.Never list and the validation commands, because they sit at the bottom.## Skill profile. Every repo-agnostic skill then interrogates the user for the base branch, the check commands, the tracker, the reviewers.yarn typecheck that no longer exists sends an agent into a diagnostic detour before it can begin.Draft — a status field nobody moves is a status field nobody reads.Rank by what it costs: rules that never arrive > instructions that mislead (stale commands, drifted forks) > friction (missing profile, no router) > hygiene (dead links, orphans, naming).
Apply these directly — they have one correct answer and a reviewable diff:
CLAUDE.md with the one-line pointer; where only CLAUDE.md exists, git mv it to AGENTS.md and leave the pointer behind. Content unchanged, so the diff is pure wiring.README.md when missing, from the rubric's section list. Backfill the index table from the specs already there.## Skill profile — write the skeleton and fill only what the repo can prove: default branch from git, check commands from package.json and the CI workflow, reviewers (plural, people) from recent PRs. Leave the rest as explicit TODO: lines rather than plausible guesses; a wrong tracker id is worse than a missing one — and derive each value from the whole tree, not the file you expect it in. A board is as likely to be named in README.md or a docs/ index as in the agent doc, so grep before concluding a repo has no tracker: writing none where one exists is the one failure mode worse than a blank, because a skill that would have asked now acts. Never fill reviewer (singular). It is a bot login whose mere presence switches deliver into requesting an on-record bot review, so a human login written there costs a ten-minute poll per round for a review that will never arrive — and it is an opt-in the repo's owner should make deliberately, not one an audit infers from history.Run whatever the repo uses to validate docs (link checkers, markdown lint) after editing.
These change meaning or lose information. Show the plan, apply after agreement — and for a large one, do the first instance and let the user react before the rest.
{ok:true}, a health badge that is red on a working service, a fix the next deploy overwrites, is met while debugging something else, so a router row never reaches it. One line each (what you see, what is true, where the detail is) buys the move; see the rubric's §2.2./spec-polish. A ticket → /ticket-polish. A stale PR description → /pr-polish. Say so; don't do their job here.If the repo is over budget, or within ~15% of it, offer the gate — it is the difference between a rule and a preference:
mkdir -p scripts && cp "${CLAUDE_SKILL_DIR}/templates/check-agents-md-budget.mjs" scripts/
node scripts/check-agents-md-budget.mjs # see where it stands
node scripts/check-agents-md-budget.mjs --update-baseline # only if debt exists already
Then wire it in: a package.json script ("agents:check-budget"), and a step in the CI job that already runs lint/typecheck — never a new workflow for one check.
The baseline is a ratchet: chains inside the budget grow freely; a chain already over it may only shrink, and a new over-budget chain fails outright. That freezes existing debt visibly instead of hiding it. Record the baseline only when the repo starts out over — a clean repo needs no baseline file.
To ship it: /deliver (or /deliver --no-merge where a human should read the doc changes first).
AGENTS.md: no client name, repo, path, ticket id, name-carrying identifier or infrastructure of theirs unless already public in their own material. A leak inherited from the old text becomes yours once you re-save the file.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fullstackhouse/skills --plugin fsh35 skills in this plugin
/blacksmithMigrate a repository's GitHub Actions workflows to Blacksmith runners — inventory every job, move the ones that build, run or test the app (image builds get the sticky-disk Docker actions, a size-capped cache and a Dockerfile audit for cache killers), leave glue, deploy and credential-bound jobs on GitHub, capture a per-step timing baseline, hand off to `deliver --no-merge` with the decision table in the PR, and measure real rebuilds on that PR when the existing runs can't settle it. Use when asked to "move CI to Blacksmith", "cut GitHub Actions spend", "make the image build faster", or right after the Blacksmith app was installed on an org. Args: a repo path (default: the current repo), plus `--audit-only` to print the decision table and write nothing./brainstormDivergent conversation before any artifact exists — question the idea, weigh alternatives including building nothing, then converge on one routed next step (drop it, park it as a ticket, kick off implementation, or bug-hunt) with a handoff brief. Use when the user says "should we build this", "I have an idea", "let's think this through", or "is this worth doing". Read-only until the routing is confirmed./broRestate the last message in plain human language, with no jargon./bug-huntReproduce, diagnose, and fix a reported bug via a triage → reproduce → diagnose → failing-test → fix → verify loop. Forbids speculative fixes that paper over symptoms. Files a tracker task on give-up./claude-desktop-handoffHand one GUI-only step to Claude Desktop running on the same machine, over a shared temp directory, so this session can keep working autonomously instead of stopping. Use when the step needs the user's own logged-in browser (a vendor console with no API, an OAuth app registration, an SSO-gated admin page, anything behind a password manager or passkey), this session is non-interactive (Conductor, `-p`, cloud) or has only a headless browser, and Claude Desktop is installed on this machine — that last fact is what picks this skill over its sibling. Prints one prompt for the user to paste into Claude Desktop; the two sessions then talk through files, so Desktop can ask a question mid-task and get an answer without the user relaying it. Use `desktop-handoff` instead when the hand might be a different runtime, a different OS, or not Claude at all./decideWork through the decisions a session has left open — one at a time, each briefed on its own (what's at stake first, then the detail), facts looked up instead of asked, 1-2 alternatives plus the status quo as the last lettered option, one recommendation — then stop and wait for the answer before raising the next. Records each answer where the project keeps decisions before moving on. Use when the user asks "what's still open / what's left to decide", "co do decyzji", "present each one separately and ask me", "walk me through them one by one", or when a long session is ending with deferred choices nobody ever answered. `grill-me` interrogates a plan the user brought; this one empties a queue the work produced.