auto-doc
Skill15 starsChanged 4 months agoMITView on GitHub
Use when the user asks for /auto-doc, /autodoc, $auto-doc, complete project docs, project technical docs, public/private docs, source-grounded docs, docs extraction, docs for training an assistant, docs audit, source map, deep dives, evidence-backed documentation, or converting private technical truth into public-facing behavior docs for any project. Always builds a complete project corpus with private technical docs, public behavior docs, safety audits, coverage audits, and assistant ingest JSONL; incomplete or single-batch runs are invalid.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-copySkill
- auto-manageSkill
- auto-pilotSkill
- auto-planSkill
- auto-qaSkill
- auto-reflectSkill
- auto-researchSkill
- master-docsSkill
- master-optimizeSkill
- master-qaSkill
- master-refactorSkill
- master-release-reviewSkill
- master-sanitizeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 11 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a complete, source-grounded documentation corpus for any project.
- Very specific: line 16
Every meaningful behavioral claim must be supported by repo-relative evidence (path:line-line) or marked Needs verification in private …
- Distinctive: line 20
Do this when executing, in this order:
- Distinctive: line 22
Read project instructions and dirty state.
- Very specific: line 24
Run whole-project discovery from the project root using rg --files, focused keyword searches, tests search, manifests, entrypoints, routes, …
- Distinctive: line 29
After all batches, produce a cross-batch coverage audit and final readiness report.
- Distinctive: line 33
Read these references at the stated times:
- Very specific: line 39
Use scripts/validate-auto-doc-artifacts.mjs to validate generated artifacts.
- Distinctive: line 43
Before writing docs, establish a project profile.
- Distinctive: line 60
Do not inherit names, frameworks, providers, assistant labels, or batch orders from previous projects unless they are present in the …
- Distinctive: line 64
Keep outputs physically separated:
- Very specific: line 70
Default artifact layout is described in references/schemas.md.
- Distinctive: line 74
Never print, paste, or store secrets or secret values.
- Distinctive: line 75
Do not expose private local paths, private hostnames, private IPs, account identifiers, auth tokens, cookies, signed URLs, or …
- Distinctive: line 79
No third-party provider calls, external search, dependency downloads, or network execution unless the user explicitly approves that stage.
- Very specific: line 97
Every public page must include YAML frontmatter, stable section IDs, summary, detailed behavior explanation, common workflows, examples …
- Very specific: line 105
When comparing generated docs to existing docs, first compare scope.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Auto Doc
Create a complete, source-grounded documentation corpus for any project. Build private technical docs first, then public-facing behavior docs from verified source truth. Do not summarize from memory, do not invent behavior, and do not collapse the work into a single shallow overview.
Core Rule
/auto-doc means corpus mode only.
A completed run must cover the whole project scope established in the source map. Do not run partial, proof-of-concept, or single-feature passes. If the whole project scope cannot be completed, mark the corpus blocked instead of producing a smaller run.
Every meaningful behavioral claim must be supported by repo-relative evidence (path:line-line) or marked Needs verification in private gap/audit artifacts. Do not allow Needs verification into public docs or answerable ingest chunks.
Corpus Contract
Do this when executing, in this order:
- Read project instructions and dirty state. Preserve unrelated user work.
- Establish project profile and artifact root.
- Run whole-project discovery from the project root using
rg --files, focused keyword searches, tests search, manifests, entrypoints, routes, storage, provider/adapters, UI entrypoints, scripts, existing docs, CI/security/release scripts, and any project-specific categories discovered. - Produce a whole-project source map that assigns every top-level source/docs/config/test area to a batch or explicitly marks it out of scope with a reason.
- Produce a page inventory before drafting public docs: every major public/user/operator feature must map to a public page, a private-only page, or a gap. Existing docs are coverage evidence, not a substitute for source review.
- Work through every batch in the batch order. For each batch, produce batch source map, private deep dives, public docs, public-safety audit, gaps, coverage audit, ingest JSONL, cache prompts JSONL, negative-search audit, validator result, and reviewer pass.
- Fix P0/P1 reviewer findings before moving on. If a P0/P1 cannot be fixed, mark the corpus blocked instead of calling it complete.
- After all batches, produce a cross-batch coverage audit and final readiness report.
Required References
Read these references at the stated times:
references/workflow.md: before source extraction, docs generation, or audit.references/schemas.md: before creating artifact files, public docs, private docs, or ingest JSONL.references/quality-gates.md: before reviewer pass, public-safety audit, negative-search audit, final report, or validation.
Use scripts/validate-auto-doc-artifacts.mjs to validate generated artifacts. A passing completed corpus must include CORPUS_MODE=PASS and CORPUS_SCOPE=FULL_PROJECT in run-report.md.
Project Profile
Before writing docs, establish a project profile. If the user does not provide one, infer conservatively from the repo and record assumptions.
Required profile fields:
project_name: human-readable project name.project_slug: lowercase slug for artifact ids.repo_root: actual project root.artifact_root: defaultdocs/auto-docunless the user requests a temp or external folder.public_audience: who can read public docs.private_audience: who can read private technical docs.assistant_name: assistant/training consumer name, or genericassistant.assistant_intent: optional intent label for cache prompts.public_safe_topics: what public docs may explain.private_only_topics: what public docs must not expose.batch_order: complete project-specific batch order.ingest_enabled: defaults to true when docs are for assistant training.
Do not inherit names, frameworks, providers, assistant labels, or batch orders from previous projects unless they are present in the project profile or source evidence.
Artifact Split
Keep outputs physically separated:
- Private technical docs: source maps, deep dives, architecture internals, command logs, evidence maps, gaps, coverage audits, reviewer findings, private runbook notes.
- Public behavior docs: user-facing behavior, workflows, limitations, troubleshooting, public-safe architecture summaries, stripped or footer-based evidence.
- Ingest outputs: machine-readable public-safe verified chunks and cache prompt candidates only.
Default artifact layout is described in references/schemas.md. Use existing repo conventions if they are already cleaner, but record the chosen paths before writing.
Safety Rules
- Never print, paste, or store secrets or secret values.
- Do not expose private local paths, private hostnames, private IPs, account identifiers, auth tokens, cookies, signed URLs, or exploit-enabling details in any artifact.
- Command logs must use repo-relative paths and safe summaries only.
- Public docs must not include private implementation-only details unless the project explicitly treats those details as public-safe.
- Private docs may mention that sensitive material exists only by role or variable name, never by value or concrete private topology.
- No third-party provider calls, external search, dependency downloads, or network execution unless the user explicitly approves that stage.
Evidence Rules
Private deep dives require close evidence tags:
Source: path/to/file.ext:line-lineTest: path/to/test.ext:line-lineConfig: path/to/config.ext:line-lineDoc: path/to/doc.md:line-lineNeeds verification: <specific unknown>
Public docs may place evidence in section maps or footers, but every public section must map to source evidence. Page-level evidence alone is not enough.
Public Docs Rules
Public docs explain externally safe behavior. They must be detailed enough for a technically curious reader or assistant to answer questions without guessing.
Every public page must include YAML frontmatter, stable section IDs, summary, detailed behavior explanation, common workflows, examples where useful, limitations near relevant behavior, troubleshooting, related pages, section evidence, Assistant should know bullets, and Assistant should not claim bullets.
Completion Criteria
A corpus is complete only when all required artifacts exist, all source-map batches are complete, every major feature has a public doc/private-only rationale/gap, public/private/ingest outputs are physically separated, reviewer P0/P1 findings are closed, and validation passes.
Do not claim completion if a major feature lacks a public page or documented private-only/gap decision, public docs contain Needs verification, source references lack path:line-line evidence or an allowed private Needs line verification, ingest chunks contain unresolved gaps, public safety fails, negative-search audit has unresolved unsafe findings, coverage audit omits source-map features, or reviewer has open P0/P1 findings.
When comparing generated docs to existing docs, first compare scope. If scopes differ, say scope-mismatch and do not call one better than the other.
Final Report
Report artifact root, generated files, private/public split, batches completed/skipped, validation command/result, reviewer findings/fixes, quality comparison against existing docs if requested, what the assistant can now answer, and what remains unsafe, private, missing, or Needs verification.
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.

