Documentation Gap Finder
Skill9 starsChanged 8 months agoMITView on GitHub
Audits a codebase or docs folder and lists everything that is undocumented, outdated, or unclear.
- Reads credentials
In this repository61 other files it gives its agents.
- Accessibility Audit HelperSkill
- Agent Context File WriterSkill
- Agent Evaluation Framework BuilderSkill
- AI Feature Spec WriterSkill
- API Documentation GeneratorSkill
- REST API Endpoint DesignerSkill
- Architecture ExplainerSkill
- Article RepurposerSkill
- Auth Flow PlannerSkill
- Blog Outline GeneratorSkill
- Breaking Change DetectorSkill
- Bug Root Cause AnalyzerSkill
- Caching Strategy AdvisorSkill
- Changelog CuratorSkill
- Code Review ChecklistSkill
- Database Schema ReviewerSkill
- Docker Compose GeneratorSkill
- Edge Case DiscoverySkill
- Error Log SummarizerSkill
- FAQ GeneratorSkill
- Flaky Test AnalyzerSkill
- Form UX OptimizerSkill
- Git Commit WriterSkill
- Hallucination Risk ReviewerSkill
- Hybrid Search ArchitectSkill
- Incident Postmortem WriterSkill
- Issue to PR PlannerSkill
- Landing Page Copy ImproverSkill
- LangGraph State Machine DesignerSkill
- LLM Cost OptimizerSkill
- LLM Tracing and Observability SetupSkill
- MCP Integration AssistantSkill
- MCP Server BuilderSkill
- Migration Guide WriterSkill
- Newsletter Summary WriterSkill
- Observability ChecklistSkill
- Playwright Test BuilderSkill
- PR Description WriterSkill
- Prompt Injection Defense AuditorSkill
- Prompt RefinerSkill
- Prompt Version Control WorkflowSkill
- RAG Chunking Strategy AdvisorSkill
- RAG Workflow PlannerSkill
- React Component ReviewerSkill
- README WriterSkill
- Refactor PlannerSkill
- Release Notes GeneratorSkill
- Responsive Layout ReviewerSkill
- SDK Quickstart WriterSkill
- SEO Content OptimizerSkill
- SEO Metadata GeneratorSkill
- Social Post Thread WriterSkill
- Sprint Summary GeneratorSkill
- SQL Query OptimizerSkill
- Stack Trace AnalyzerSkill
- Technical Blog Post WriterSkill
- Tech Debt AuditorSkill
- Troubleshooting Guide BuilderSkill
- Unit Test ImproverSkill
- Unit Test WriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use this when preparing for a new developer joining the team, before an open-source launch, when onboarding is taking too long, or as part …
- Very specific: line 34
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane before asking for the audit.
- Distinctive: line 42
When asked to audit documentation, follow these steps:
- Distinctive: line 47
If given a specific directory, focus there
- Very specific: line 48
If given the whole repo, check: root-level docs, docs/ or wiki/ folder, README.md, all public API surfaces, and configuration files
- Distinctive: line 177
If you find outdated documentation, flag it as a gap even if documentation exists — wrong documentation is often worse than no …
- Distinctive: line 178
Use this skill together with the README Writer skill to produce the missing documents after identifying them.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Documentation Gap Finder
What this skill does
This skill directs the agent to audit a codebase or documentation directory and produce a comprehensive list of documentation gaps. It checks for missing docstrings, undocumented exports, README files that don't match the current code, stale setup instructions, and any public API surface that lacks documentation. The output is a prioritized gap list that tells you exactly what to write and in what order.
Use this when preparing for a new developer joining the team, before an open-source launch, when onboarding is taking too long, or as part of a quarterly documentation review.
How to use
Claude Code / Cline
Copy this file to .agents/skills/documentation-gap-finder/SKILL.md in your project root.
Then ask:
- "Use the Documentation Gap Finder skill on the entire repo."
- "Audit the documentation for
src/api/using the Documentation Gap Finder skill." - "Use the Documentation Gap Finder skill — I want to know what a new developer would struggle to find."
Cursor
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane before asking for the audit.
Codex
Provide the directory tree and key files. Ask Codex to follow the instructions below to produce the gap report.
The Prompt / Instructions for the Agent
When asked to audit documentation, follow these steps:
Step 1 — Establish scope
Determine what to audit:
- If given a specific directory, focus there
- If given the whole repo, check: root-level docs,
docs/orwiki/folder,README.md, all public API surfaces, and configuration files - Identify the audience: internal developers, external API consumers, end users, or all three
Step 2 — Audit each documentation type
README / Project-level docs
- Does a
README.mdexist at the project root? - Does it cover: what the project does, how to set it up, how to run it locally, how to run tests, how to deploy, how to contribute?
- Are the setup instructions still accurate? Check against
package.json,Dockerfile, or equivalent. - Are any listed commands or URLs broken or outdated?
Code-level documentation
- For every exported function, class, type, and constant: is there a docstring or JSDoc comment?
- Are complex algorithms or non-obvious logic blocks explained with inline comments?
- Are there any TODO/FIXME comments that have been sitting for a long time without resolution?
API documentation
- For REST APIs: is every endpoint documented? (method, path, request body, response shape, error codes)
- For library/SDK APIs: is every public export documented with parameters, return type, and an example?
- Is there an OpenAPI/Swagger spec? If so, is it up to date?
Architecture documentation
- Is there any document explaining the high-level system design?
- Are major design decisions documented (ADRs — Architecture Decision Records)?
- Are non-obvious dependencies or integrations explained?
Operational documentation
- How is the application deployed?
- Are environment variables documented (what each one does, whether it's required)?
- Is there a runbook for common operational tasks?
Onboarding documentation
- Is there a "getting started for new developers" guide?
- Are there contribution guidelines?
Step 3 — Flag outdated content
For documentation that exists, check for staleness signals:
- Setup instructions that reference packages/tools no longer in the project
- API docs that describe endpoints that have been removed or changed
- Screenshots or examples that no longer match the current UI or output
- Version numbers or dates that suggest the doc hasn't been updated recently
Step 4 — Prioritize the gaps
Score each gap:
- Critical — Without this, a new developer cannot set up or use the project
- High — A developer can get started but will waste significant time without this
- Medium — Useful documentation that reduces friction but isn't blocking
- Low — Nice to have; minor polish
Step 5 — Format the output
## Documentation Gap Report — [Project / Directory]
### Summary
- Critical gaps: N
- High-priority gaps: N
- Medium-priority gaps: N
- Low-priority gaps: N
---
### Critical Gaps
#### 1. [Gap title]
- **Type**: [Missing / Outdated / Unclear]
- **Location**: [Where it should live, e.g., `README.md` setup section]
- **Impact**: [Who is affected and how]
- **What to write**: [Specific description of what the documentation should say]
### High-Priority Gaps
[Same format]
### Medium-Priority Gaps
[Same format]
### Low-Priority Gaps
[Same format]
---
### What's Already Well-Documented
[Briefly note what's good so the team knows what not to change]
### Recommended First 3 Actions
1. [Most important thing to write first]
2. [Second]
3. [Third]Example
Input to Agent:
"Use the Documentation Gap Finder skill on this repo. Here's the directory tree and the current README content: [paste tree and README]"
Output from Agent:
Documentation Gap Report — MyAPI
Summary
- Critical gaps: 2
- High-priority gaps: 4
- Medium-priority gaps: 6
- Low-priority gaps: 3
Critical Gaps
1. No environment variable documentation
- Type: Missing
- Location:
README.mdor newdocs/environment.md- Impact: New developers cannot run the project locally — they don't know what
.envkeys to set- What to write: A table with every env var, whether it's required, what it does, and an example value. Found 14 undocumented env vars in
server/config.ts.2. No local setup instructions in README
- Type: Missing
- Location:
README.md- Impact: First thing a new developer needs; currently only shows badges
- What to write: Step-by-step: clone,
npm install, copy.env.example,npm run db:push,npm run devRecommended First 3 Actions
- Add a local setup section to README.md
- Document all environment variables (they're blocking the most people)
- Add JSDoc to the 8 exported functions in
src/api/auth.ts— most heavily used file with no docs
Notes
- Focus on documentation that helps a developer who has never seen the codebase. Everything that seems "obvious" to the current team is a documentation gap for a newcomer.
- If you find outdated documentation, flag it as a gap even if documentation exists — wrong documentation is often worse than no documentation.
- Use this skill together with the README Writer skill to produce the missing documents after identifying them.
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.

