update-docs
Skill1 starsChanged 48 days agoMITView on GitHub
Use when existing architecture documentation needs refreshing after code changes, when running periodic doc maintenance, or when user asks to "update docs", "refresh documentation", or "sync docs with code".
87 other projects use a version of this.
Adopted by
Most recently taken up by
- rmichak/claude-skillstheir own version, first seen Nov 8, 2026
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- rvdbreemen/OTGW-firmwaretheir own version, first seen Nov 8, 2026
- jmusick/skillstheir own version, first seen Nov 8, 2026
- protokol11/skillstheir own version, first seen Nov 8, 2026
- OldemarJesus/connectlife-mcp-servertheir own version, first seen Nov 8, 2026
Used with
Projects with it also use get-pr-reviews, push-everything and 10 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.
saffron-healthSkillget-pr-reviews
Get nicely formatted output of the last review comments on a PR. Used internally by other skills.
Also in 3 projects that use this
saffron-healthSkillpush-everything
Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.
Also in 3 projects that use this
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
NVIDIASkillgenerate-spec
Produce a feature specification covering API changes, backward compatibility, cross-language impact, performance, and a file-level change plan. Use when designing a new feature, planning a significant change, or the user asks to spec something out.
Also in 3 projects that use this
belokonmSkillfullstack-developer
End-to-end feature expert specializing in frontend-backend integration, system architecture, and complete application development
Also in 4 projects that use this
- +1 more from saffron-health
- +1 more from TheKREATORS
Other versions87 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 87
- vercel/next.js★ 143ksame name
- pipecat-ai/pipecat★ 17ksame name
- anyproto/anytype-ts★ 9.1ksame name
- vladmandic/sdnext★ 7.4ksame name
- ArcReel/ArcReel★ 6.3ksame name
- dotnet/sdk★ 3.2ksame name
- meta-pytorch/OpenEnv★ 2.8ksame name
- huggingface/OpenEnv★ 2.8ksame name
- man-group/ArcticDB★ 2.6ksame name
- fabro-sh/fabro★ 1.8ksame name
77 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 repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-lintSkill
- skill-lintSkill
- add-ruleSkill
- bdk-implementer-return-contractSkill
- bdk-lint-toolsSkill
- bdk-rules-architectureSkill
- bdk-rules-code-qualitySkill
- bdk-rules-design-patternsSkill
- bdk-rules-languagesSkill
- bdk-rules-securitySkill
- bdk-test-toolsSkill
- commitSkill
- create-adrSkill
- create-planSkill
- crSkill
- debugSkill
- designSkill
- explain-complex-codeSkill
- mermaid-drawerSkill
- pr-reviewSkill
- refine-rulesSkill
- setupSkill
- subagent-execute-planSkill
- test-driven-developmentSkill
- verify-planSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 81 edited versions we read keep these.
12
Distinctive
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
- Very specific: line 26
Read the documentation file at $ARGUMENTS and extract:
- Distinctive: line 34
Do this in main context — no subagent needed.
- Distinctive: line 36
Fallback: If the doc lacks a clear file tree or module root, ask the user which code path the doc covers.
- Distinctive: line 51
Compare diagram content against current code: Do the nodes, edges, labels, and relationships in the diagram still match the actual classes, …
- Distinctive: line 52
Flag stale diagrams: If a diagram references renamed/removed symbols, missing components, or outdated relationships, mark it as OUTDATED
- Distinctive: line 53
Flag missing diagrams: If new subsystems or major flows were added that have no diagram, mark as MISSING
- Distinctive: line 121
After subagents return, classify each section by content matching — no hardcoded section mapping.
- Distinctive: line 130
No discrepancies found in section → ACCURATE (keep as-is)
- Very specific: line 134
Use AskUserQuestion with a single question.
- Distinctive: line 150
Only proceed to step 4 after user approves: If "Approve with changes", incorporate user feedback.
- Distinctive: line 162
Add new diagrams for undocumented subsystems
- Distinctive: line 163
Keep accurate diagrams unchanged.
- Very specific: line 168
Use placeholder names: process(), transform(), calculate()
- Distinctive: line 170
Keep under 20 lines per example
- Distinctive: line 171
Never copy actual implementation
- Very specific: line 181
Use /bdk:explain-complex-code references for section structure when rewriting outdated sections.
“Common” is measured: kept by at least 6 in 10 of the 81 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
Update Docs
Relies on BDK foundation (STARTUP_INSTRUCTIONS.md) for project context.
Refresh existing architecture documentation by comparing it against current code, merging updates while preserving accurate manual prose. The result is uniform text — no changelog, no diff markers, no "updated on" annotations.
Workflow
1. Parse Existing Doc
Read the documentation file at $ARGUMENTS and extract:
- Sections: Split by
##headers into top-level sections - Module root: From the file tree code block (e.g.,
src/data_migrator/processors/loaders/xml/) - Code references: Class/function names from
### Class:patterns and code blocks - File list: Parse file tree to get documented files
- Diagram references: Collect all embedded
```mermaidfenced blocks and their preceding headers
Do this in main context — no subagent needed. Use regex and string matching.
Fallback: If the doc lacks a clear file tree or module root, ask the user which code path the doc covers.
2. Explore Current Code
Step 2.1 — Discover Current State
List the files under the module root and the definitions in its key files.
Compare actual file list against the doc's file tree. Note added/removed/renamed files immediately.
Step 2.2 — Check Diagram References
For each diagram reference found in step 1:
- Read the embedded Mermaid block content directly from the doc
- Compare diagram content against current code: Do the nodes, edges, labels, and relationships in the diagram still match the actual classes, modules, and data flows?
- Flag stale diagrams: If a diagram references renamed/removed symbols, missing components, or outdated relationships, mark it as OUTDATED
- Flag missing diagrams: If new subsystems or major flows were added that have no diagram, mark as MISSING
Include diagram findings alongside code findings for subagents.
Step 2.3 — Partition into Logical Blocks
Same rules as /bdk:explain-complex-code:
| Files Count | Subagent Count |
| 1-2 files | 1 subagent |
| 3-5 files | 1-2 subagents |
| 6-10 files | 2-3 subagents |
| 10+ files | 3-4 subagents |
Step 2.4 — Launch Comparison-Aware Subagents
CRITICAL: Launch all subagents in a SINGLE message with multiple Task tool calls.
Each subagent receives existing doc claims alongside files to explore:
Subagent Instructions Template:
Explore these files: [FILE_LIST]
The existing documentation claims:
[EXTRACTED_CLAIMS_PER_FILE]
The following diagrams reference these files:
[DIAGRAM_REFERENCES_FOR_THIS_BLOCK]
For EACH file, report:
1. What's ACCURATE in the existing docs
2. What's OUTDATED (changed signatures, renamed classes, different logic)
3. What's NEW (undocumented classes, methods, rules)
4. What's GONE (documented things that no longer exist)
For EACH referenced diagram, report:
1. Which nodes/edges still match the code
2. Which nodes/edges are stale (renamed, removed, restructured)
3. What new components should be added to the diagram
Also report: purpose, components, dependencies, key algorithms,
data structures, edge cases.
Format as:
## Block: [block name]
### Comparison Results:
- ACCURATE: [list]
- OUTDATED: [list with details of what changed]
- NEW: [list with details]
- GONE: [list]
### Diagram Results:
- [diagram name]: ACCURATE / OUTDATED (details) / MISSING new diagram needed
### Current State:
For each file:
#### File: [name]
- Purpose: [brief]
- Components: [list with descriptions]
- Dependencies: [list]
- Key Rules: [list]
- Special Cases: [list]3. Confirm Update Plan
After subagents return, classify each section by content matching — no hardcoded section mapping.
Classification logic (generic, works with any template):
- Section mentions symbol X → subagent says X changed → OUTDATED
- Section has file tree → actual files differ → OUTDATED
- Subagent reports new symbol not mentioned anywhere → MISSING
- Section references symbol Y → subagent says Y no longer exists → OUTDATED
- Diagram references stale symbols or missing components → DIAGRAM OUTDATED
- New subsystem has no diagram → DIAGRAM MISSING
- No discrepancies found in section → ACCURATE (keep as-is)
Present the update plan and ask for confirmation in a single AskUserQuestion call:
Use AskUserQuestion with a single question. Put the full update plan in the question text:
Update plan for [doc_path]:
KEEP: [list of accurate sections]
UPDATE: [list of outdated sections with brief reason]
ADD: [new content to add]
REMOVE: [orphaned references to clean up]
DIAGRAMS: [list of diagrams to update/add/keep with brief reason]
Approve this update plan?Options: "Approve" / "Approve with changes" / "Cancel"
Only proceed to step 4 after user approves. If "Approve with changes", incorporate user feedback.
4. Write Updates
Reconstruct the document:
- Copy unchanged sections verbatim (preserves manual prose, formatting, wording)
- Rewrite outdated sections using patterns from
/bdk:explain-complex-codereferences - Insert new content where it fits logically within existing structure
- Remove orphaned references cleanly — no "removed" comments, just omit
- Update diagrams - per
/bdk:mermaid-drawer:- Rewrite outdated
```mermaidblocks to reflect current code structure - Add new diagrams for undocumented subsystems
- Keep accurate diagrams unchanged. A diagram that is still correct but predates the standard is not "outdated" - leave it alone unless the code it describes moved, so updates stay reviewable as content changes rather than churn.
- Rewrite outdated
The final file reads as one uniform document. No markers indicating which parts were updated.
Prototype code rules (same as /bdk:explain-complex-code):
- Use placeholder names:
process(),transform(),calculate() - Show control flow clearly, include comments for key steps
- Keep under 20 lines per example
- Never copy actual implementation
5. Save
Save to the same path as the input $ARGUMENTS.
Resources
Documentation Template
Use /bdk:explain-complex-code references for section structure when rewriting outdated sections. Do not load unless rewriting sections.
Quick Reference
Update Classification
| Signal | Classification |
| Symbol changed/renamed | Section OUTDATED |
| File added/removed | File tree OUTDATED |
| New undocumented symbol | Content MISSING |
| Referenced symbol gone | Section OUTDATED |
| Diagram references stale symbols | Diagram OUTDATED |
| New subsystem without diagram | Diagram MISSING |
| No discrepancies | Section ACCURATE |
Checklist
- Parsed existing doc, extracted module root and diagram references
- Explored current code with comparison-aware subagents (including diagram checks)
- Classified each section and diagram (accurate/outdated/missing)
- Presented update plan and got user confirmation via single AskUserQuestion
- Wrote updates preserving accurate sections verbatim
- Updated/added/kept diagrams as approved
- Final document reads as uniform text (no update markers)
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.

