document-generate
Skill48 starsChanged 18 days agoMITView on GitHub
Use when a feature, module, or whole project needs missing documentation created from scratch - read the codebase, map the public surface with Diataxis (tutorial/how-to/reference/explanation), and generate the missing docs with cross-links.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- timurgaleev/vibestacktheir own version, first seen Nov 8, 2026
- trungtm78/ClaudeSkillstheir own version, first seen Oct 25, 2026
- ignavm1/claude-skillstheir own version, first seen Oct 13, 2026
- leishifu666/skillstheir own version, first seen Oct 9, 2026
- IyedBecheikh/bstacktheir own version, first seen Oct 9, 2026
- garrytan/gstacktheir own version, first seen Oct 7, 2026
Used with
Projects with it also use ios-clean, ios-fix and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
Saqlain-811Skillios-fix
Autonomous iOS bug fixer. (gstack)
Also in 5 projects that use this
bastosSkillios-design-review
Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".
Also in 5 projects that use this
ShreyRaviSkillsetup-gbrain
Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (gstack)
Also in 5 projects that use this
ShreyRaviSkillsync-gbrain
Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. Re-runnable, idempotent. Use when: "sync gbrain", "refresh gbrain", "re-index this repo", "gbrain search isn't finding things". (gstack)
Also in 5 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 4 projects that use this
- +2 more from Saqlain-811
- +1 more from ShreyRavi
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- garrytan/gstack★ 141ksame name
- timurgaleev/vibestack★ 8same name
- chloropine/cgstack★ 1same name
- IyedBecheikh/bstack★ 1same name
- leishifu666/skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- Biznomad/claude-skills★ 0same name
- greenharborlabs/claude-skills★ 0same name
- ignavm1/claude-skills★ 0same name
- Nankov-ai/anthropics-skills★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Document Generate creates missing documentation for a codebase from the implementation up.
- Distinctive: line 59
If the scope is large, recommend starting with one feature or module first.
- Distinctive: line 63
Read enough source to understand reality:
- Distinctive: line 75
Not every entity needs all four document types.
- Distinctive: line 77
Use this rule of thumb:
- Distinctive: line 86
Write down the coverage plan before generating files.
- Distinctive: line 98
Keep it factual. If you want to explain why something exists, that belongs in the explanation doc.
- Distinctive: line 132
keep the step count low
- Distinctive: line 150
no duplicate docs saying the same thing
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Document Generate
Document Generate creates missing documentation for a codebase from the implementation up. It is for greenfield documentation coverage, not small doc touch-ups.
The organizing frame is Diataxis:
- Tutorial - get to a first successful result
- How-to - complete a specific task
- Reference - factual interface details
- Explanation - why the design works this way
When to Use
- A shipped feature has little or no documentation
- A module or subsystem needs first-pass docs from the source code
- A project needs documentation coverage beyond one README paragraph
- You need to decide which entities deserve tutorial, how-to, reference, and explanation docs
When NOT to Use
| Instead of document-generate | Use |
| Updating docs after a code change | doc-update |
| Generating only deep API or interface reference docs, with no tutorial/how-to/explanation coverage | api-documentation |
| Creating VS Code CodeTour onboarding files | code-tour |
Workflow
1. Define the scope and output mode
Choose one:
- one feature
- one module
- one subsystem
- the whole project
Then choose where the docs should land:
- inline updates to existing docs
- standalone docs in
docs/ - both
If the scope is large, recommend starting with one feature or module first.
2. Do codebase archaeology before writing
Read enough source to understand reality:
- entry points and exported surface
- implementation files
- tests
- README, architecture docs, and contribution docs
- comments that explain design intent
The point is to document the code that exists, not the code you assume exists.
3. Partition the surface with Diataxis
Not every entity needs all four document types.
Use this rule of thumb:
| Entity type | Tutorial | How-to | Reference | Explanation |
| End-user feature | Maybe | Yes | Maybe | Yes |
| CLI flag or config option | No | Yes | Yes | No |
| Public API or interface | No | Maybe | Yes | Maybe |
| Internal design concept | No | No | Maybe | Yes |
Write down the coverage plan before generating files.
4. Write reference first
Reference documentation sets the vocabulary for the rest:
- names
- signatures
- defaults
- allowed values
- examples
Keep it factual. If you want to explain why something exists, that belongs in the explanation doc.
5. Write explanation second
Capture:
- the problem being solved
- the chosen design
- tradeoffs
- rejected alternatives
- operational or maintenance implications
Explanation tells future readers why the current shape is reasonable.
6. Write how-to guides for concrete tasks
A how-to guide should include:
- prerequisites
- exact steps
- expected result
- verification
- troubleshooting
It should help an experienced user accomplish one specific job.
7. Write tutorials for the first successful outcome
Tutorials are for first success, not exhaustive coverage.
Good tutorial rules:
- target one happy-path outcome
- keep the step count low
- end with "what you built" or equivalent payoff
- link out to reference docs for deeper detail
8. Cross-link for discoverability
Make the docs navigable:
- tutorial -> how-to/reference
- how-to -> reference
- explanation -> reference and related concepts
- README or index -> newly created docs
9. Run a quality review before stopping
Check:
- no broken links
- no duplicate docs saying the same thing
- the docs reflect current behavior
- each document has one clear job
Output Template
## Documentation Plan
| Entity | Tutorial | How-to | Reference | Explanation |
|--------|----------|--------|-----------|-------------|
| ... | ... | ... | ... | ... |
## Generated Files
- path - quadrant - purpose
## Coverage Gaps
- ...Common Rationalizations
| Rationalization | Reality |
| "README is enough." | A README cannot carry tutorial, task guide, reference, and design rationale all at once. |
| "I'll just write the API docs." | Users also need onboarding and task-level guidance. |
| "Docs can be added later." | The source context is clearest while the feature is still fresh. |
Red Flags
- Writing docs from filenames without reading implementation
- Repeating the same content in tutorial, how-to, and explanation
- Treating reference docs like narrative essays
- Ending without updating discoverability links
Verification
- The source code and tests were read before drafting
- Each generated doc has a clear Diataxis role
document-generateis not being used for a small incremental doc syncdocument-generateis not being used for API-only reference work that belongs inapi-documentation- Cross-links and index or README discoverability were updated
See Also
doc-update- sync existing docs after code changesapi-documentation- write API and interface reference docs from sourcearchitecture-decisions- capture hard-to-reverse design choices as ADRs
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.

