Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kwcantrellv0.4.0MITIn 1 marketplace
Keeps the software-factory repository's docs in sync with its code: a checked-in map from each doc to the code it describes, which docs cover a file, which docs a change left stale, a lint for the map and for CLI command coverage, and the gate CI runs.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeps the software-factory repository's docs in sync with its code. A checked-in map,
docs/docs-map.json, says which code each doc describes (README.md, CLAUDE.md,
CONTRIBUTING.md, CHANGELOG.md, each plugin's README, and each skill and agent prompt as a doc of
its plugin's CLI). Its TypeScript CLI answers "which docs cover this file" (which), "which docs did
this change leave stale" (stale), checks the map and each CLI's command coverage (lint), and runs
both checks as one gate (gate). factory-dev check and CI run the gate. Its factory-docs skill
tells an agent changing the repo to run stale, update the docs it lists, and run gate before
finishing.
Install it from the marketplace (it needs Node.js 22.18+ and git):
/plugin install factory-docs --marketplace kwcantrell/software-factory
The CLI works on the git checkout containing the current directory (its top level), or on --repo <path>; the checkout must have docs/docs-map.json, otherwise it exits 2. The skill calls it as
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-docs <command> [args]
From a checkout, run it directly: node plugins/factory-docs/src/cli.ts <command>.
Exit codes: 0 success, 1 stale docs, lint problems or a command that could not run (a git failure,
an unreadable map), 2 a usage error (including a --base that is not a commit) or not inside a git
checkout with a map. On a non-zero exit stdout is empty and the reason is on stderr. Every command
takes --json (one JSON value on stdout), --repo <path>, --help and --version.
docs/docs-map.json{
"$comment": "optional, ignored",
"docs": {
"README.md": ["plugins/factory/src/**", ".claude-plugin/marketplace.json"],
"CHANGELOG.md": ["plugins/*/src/**", "plugins/*/skills/**"],
"plugins/factory/skills/run/SKILL.md": ["plugins/factory/src/run.ts"]
},
"changelog": "CHANGELOG.md",
"ignore": [".github/ISSUE_TEMPLATE/*.md", "plugins/factory/test/fixtures/**"],
"cli_docs": { "factory": "README.md" }
}
| Key | Meaning |
|---|---|
docs | Required. Each doc (a repo-relative path) and a non-empty list of the globs of the code it describes |
changelog | Optional. The doc for which changed docs also count (see stale); must be a key of docs |
ignore | Optional. Globs of *.md files that are not docs (templates, test fixtures), so lint does not ask for them to be mapped |
cli_docs | Optional. Plugin name -> the doc that documents its CLI's commands, for a plugin whose CLI is not documented in plugins/<name>/README.md (factory is documented in the root README.md) |
Any other key is refused (exit 1), as is a doc path that is absolute or has ... Globs are
git-style and match whole repo-relative paths: **/ spans any number of directories (or none), **
anything, * and ? stay within one path segment, everything else is literal. When a doc's code
moves, or a new doc or plugin is added, update the map in the same change; lint says what is
missing. In this repo each plugin's README covers its src/**, package.json and
.claude-plugin/plugin.json, plus its hooks/** when it has hooks (factory-plugin-advisor; the
factory plugin's hooks are covered by the root README.md), and each SKILL.md covers the CLI
code it calls. The factory station templates (plugins/factory/templates/agents/*.md) are docs
too: each covers src/agents.ts, which checks agents against it, and the shipped agent that must
keep its fixed sections. This repo's own station agents (.claude/agents/factory-*.md, made with
/factory:agents) are docs as well: each covers the station templates it was made from, whose
fixed sections it must keep, and the root package.json, whose scripts it names.
which <path>...Prints, for each path (relative to the current directory; it need not exist), its repo-relative form
and the docs whose globs cover it, in map order. --json prints {"<path>": ["<doc>", ...]}.
$ node plugins/factory-docs/src/cli.ts which plugins/factory-dev/src/check.ts LICENSE
plugins/factory-dev/src/check.ts: CONTRIBUTING.md, CHANGELOG.md, plugins/factory-dev/README.md, plugins/factory-dev/skills/factory-dev/SKILL.md
LICENSE: (no docs)
stale [--base <ref>]The changed files are those that differ between the working tree (or index) and the merge-base of
HEAD with the base, plus untracked files git does not ignore: committed, staged, unstaged and new
files alike. The base is --base <ref>, or else the first of origin/main and main that
resolves; with neither, only the uncommitted changes against HEAD count. A --base that is not a
commit exits 2.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kwcantrell/software-factory --plugin factory-docsPlugins from other owners that cover similar ground