master-docs
Skill14 starsChanged 5 days agoMITView on GitHub
Refresh repo or feature documentation from source. Use for Master-Docs, customer-support docs, or an incremental documentation refresh. For a whole-project assistant corpus use auto-doc.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-copySkill
- auto-docSkill
- auto-manageSkill
- auto-pilotSkill
- auto-planSkill
- auto-qaSkill
- auto-reflectSkill
- auto-researchSkill
- master-optimizeSkill
- master-qaSkill
- master-refactorSkill
- master-release-reviewSkill
- master-sanitizeSkill
- wow-loopSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Document the repo or requested feature of an authorized local project.
- Very specific: line 13
Keep artifacts outside the source worktree under ~/.auto-master/artifacts/<project-slug>/.
- Distinctive: line 16
Update only what changed: the manifest decides what to regenerate.
- Distinctive: line 17
Never name generated files or doc content after AI models or providers.
- Very specific: line 28
Use the user's slug or the kebab-case repo name.
- Very specific: line 50
Run the bundled scripts/manifest-diff.mjs with Node, passing --manifest <manifest-path> --repo <repo-root> to every command.
- Very specific: line 58
Read references/manifest-commands.md for maintenance, rebuild or lock recovery.
- Distinctive: line 63
Read each source once. Use the cards for later passes.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Master-Docs
Document the repo or requested feature of an authorized local project.
Core Rules
- Force replacement of a valid manifest only for a user-requested full rebuild.
- Keep artifacts outside the source worktree under
~/.auto-master/artifacts/<project-slug>/.scripts/artifact-location.mjsusesscripts/git-run.mjsand allows a home worktree only for an ignored directory with no tracked contents. If home is read-only, keep the suffix privately under<os-temp>/.auto-master/artifacts/outside every repo and tell the user the path. - Produce internal technical docs, then derive customer docs from sanitized internal docs only.
- Public docs never contain source code, file paths, private architecture details, private codenames or identifiers, secrets, certs, tokens, or local identity details.
- Update only what changed: the manifest decides what to regenerate.
- Never name generated files or doc content after AI models or providers.
- Preserve unrelated user work.
Paths
| Output | Path under ~/.auto-master/artifacts/<project-slug>/ |
| Internal docs | docs/internal/ |
| Public docs | docs/public/ |
| Manifest | manifests/master-docs-manifest.json |
Use the user's slug or the kebab-case repo name. Verify worktree identity before writing. For legacy binding read references/manifest-commands.md and verify provenance. Use a fresh root on collision or uncertain ownership.
Run Procedure
- Scope. Resolve the repo root (
git rev-parse --show-toplevel). If no repo is identifiable, ask. Decide repo-wide or feature-scoped and record it in the manifest. - Change set. Run
node scripts/manifest-diff.mjs diff --repo <repo-root> --manifest <manifest-path>; on a feature-scoped run add--scope-dir <dir>for each directory of the feature. For an unverified legacy root, check binding status. Otherwise use the changed-file and pending-output lists. The script is in this skill's folder; call it by its full path. It handles hashes and writes.- Reconcile every in-scope tracked file in
added. Document source behavior. For a reviewed non-document input, add anexpectrow such as{"kind":"exclude","files":["assets/icon.png"],"reason":"asset"}. Allowed reasons are asset, dependency, generated and metadata. Changed exclusions return to the work list. renamedanddeleted: readreferences/manifest-commands.mdfor remapping or retiring the affected entries before regeneration.incremental: regenerate only the sections instaleSectionsand the public docs inpublicDocsToRecheck. Everything else keeps its output and timestamps.rebuild(manifest missing, corrupt, or from another schema): initialize the requested scope and run the full sweep. For a corrupt manifest or forced rebuild, readreferences/manifest-commands.mdfirst.
- Reconcile every in-scope tracked file in
- Analyze at four resolutions. Limit incremental passes to the change set. Read line by line only for tiny repos.
- Inventory - catalog without deep reading: file tree, package manifests, entry points, tests, configs, build/release scripts, routes/pages/commands. Give each top-level area a one-line role. Register internal and public outputs before drafting. Add newly discovered deliverables.
- Graph - imports/exports, dependency edges, module boundaries, feature ownership, data-flow hints, and which tests exercise which modules. Use a graph adapter when one is configured (
references/graph-adapter.md); otherwise use repo-native discovery. Output: a graph document and a list of hot paths. - Module cards - one card per in-scope module. Read every in-scope source file once for its card. A graph alone cannot establish behavior. Record purpose, user-facing behavior, important APIs or commands, dependencies, data flow, invariants, known risks, test coverage, related docs. Cards are the unit of incremental refresh.
- Hot-path deep dives - close reading only for entry points, security- or data-sensitive boundaries, release/build/update code, high-complexity modules, user-critical workflows, and areas changed since the last run. Everything else stays at card resolution.
- Internal docs. Assemble under
docs/internal/: overview, architecture/graph summary, inventory, module cards, deep dives, and an index. Internal docs may use repo-relative paths and code identifiers. - Public docs. Read
references/public-sanitization.md, then derive public docs underdocs/public/from the internal docs and run its mandatory review pass, which starts withnode scripts/check-public-docs.mjs --dir <public-docs-dir>. The script is in this skill's folder; call it by its full path. The checker usesscripts/scan-text.mjs. Unreadable policy or text, linked inputs, or unresolved safety findings block approval. Review redacted excerpts or have the owner inspect sensitive lines privately. Write standalone Markdown. - Manifest. The coordinator alone records completed sections in batches and records public docs after review. Workers write separate cards. Run
stampat the end with the same scope directories used fordiff. - Report what was generated, updated, and skipped as unchanged; the graph source used; any public doc marked blocked or needs-review; and anything that needs a user decision.
Recording and resume
Run the bundled scripts/manifest-diff.mjs with Node, passing --manifest <manifest-path> --repo <repo-root> to every command. Use absolute or relative outputs inside the artifact folder containing manifests/. Outputs must use regular files and directories throughout that root. The tool rejects links and parent traversal.
- Initialize a new inventory with
init --slug <slug> --scope repo-wide|feature. For features pass--scope-dir <dir>for each real feature directory at init and stamp. Register it withexpect --from <outputs.jsonl>. Each internal row hasid, kind, output, files, dependsOn, with repo-relative files and/or internal section IDs. Each public row hasid, kind:"public", output, sections. Include aggregate and shared pages. Refresh changed expectations. - Record each finished batch with
set-section --from <completed.jsonl>using its internal rows. Give aggregates all source sections and any files read directly. Review a stale section even when its text needs no change, then record it. Dependency cycles are invalid. - Record a reviewed page with
set-public --id <id> --section <id> --status passed|blocked|needs-review, repeating the section option for each source. It keeps the planned output path and source revisions. - On resume, confirm identity, rerun scoped
diffand reconcile the inventory wheninventoryNeededis true. Process added sources, changed/deleted roots, stale sections, and public pages. Missing outputs remain pending. Use--limit <n>when lists are truncated. - Finalize with
stamp --scope repo-wide|featureusing the checked directories, then inspectsummary. Report pending outputs, missing inventory and unresolved public reviews.
Read references/manifest-commands.md for maintenance, rebuild or lock recovery. For manual inspection or repair read references/manifest-schema.md. Without Git or Node, report the missing tool. Use the full-build schema with empty hashes in a verified external location. Keep certification blocked.
Cost Rules
- Assign disjoint cards. Batch-record workers’ paths and mappings from separate files. If selectable, use a fast low-cost tier for inventory and routine cards, the strongest for hot paths and public safety.
- Read each source once. Use the cards for later passes.
- Distill cards to the listed fields.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

