update-docs
Skill191 starsChanged 2 months agoMITView on GitHub
Research current code state then update corresponding docs, ensuring docs stay in sync with code.
45 other projects use a version of this.
Adopted by
Most recently taken up by
- jakubsuplicki/codumenttheir own version, first seen Oct 4, 2026
- broneq/bdktheir own version, first seen Sep 25, 2026
- FooJiaYin/dev-skillstheir own version, first seen Sep 24, 2026
- iuliandita/skillstheir own version, first seen Sep 24, 2026
- caipe-io/ai-platform-engineeringtheir own version, first seen Sep 22, 2026
- parameshjava/anthropic-claude-codetheir own version, first seen Sep 20, 2026
Used with
Projects with it also use instinct-export, instinct-import 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.
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
GoogleSkillpr-creator
Also in 5 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
mm-mazharSkillcache-components
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).
Also in 3 projects that use this
DauQuangThanhSkillfrontend-code-review
Conducts comprehensive frontend code reviews including React/Vue/Angular component analysis, TypeScript/JavaScript quality assessment, CSS/styling review, performance optimization, accessibility compliance, security vulnerabilities, and best practices validation. Produces detailed review reports with specific issues, severity ratings, and actionable recommendations. Use when reviewing frontend code, analyzing React/Vue/Angular components, checking JavaScript/TypeScript quality, validating CSS/SCSS, assessing web performance, or when users mention "review frontend code", "check React components", "analyze JavaScript", "review TypeScript", "validate accessibility", or "frontend code quality".
Also in 4 projects that use this
- +1 more from TheKREATORS
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- vercel/next.js★ 144ksame name
- huggingface/OpenEnv★ 2.6ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- cashew-labs/libretto★ 904same name
- caipe-io/ai-platform-engineering★ 422same name
- getnao/sylph★ 209same name
- aws-samples/sample-apex-skills★ 82same name
- DasDigitaleMomentum/opencode-processing-skills★ 59same name
- jakubsuplicki/codument★ 48same name
35 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 repository101 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- askSkill
- best-practicesSkill
- bug-fixSkill
- bump-versionSkill
- check-coverageSkill
- claude-healthSkill
- code-exploreSkill
- code-investigateSkill
- codex-architectSkill
- codex-brainstormSkill
- codex-cli-reviewSkill
- codex-code-reviewSkill
- codex-explainSkill
- codex-implementSkill
- codex-review-branchSkill
- codex-review-docSkill
- codex-review-fastSkill
- codex-reviewSkill
- codex-securitySkill
- codex-setupSkill
- codex-test-genSkill
- codex-test-reviewSkill
- contract-decodeSkill
- create-prSkill
- create-requestSkill
- de-ai-flavorSkill
- debugSkill
- deep-analyzeSkill
- deep-exploreSkill
- deep-researchSkill
- dep-auditSkill
- deploy-flowSkill
- dev-security-auditSkill
- doc-refactorSkill
- doc-reviewSkill
- epic-mergeSkill
- feasibility-studySkill
- feature-devSkill
- feature-verifySkill
- fp-briefSkill
- generate-runnerSkill
- gh-stackSkill
- git-investigateSkill
- git-profileSkill
- install-hooksSkill
- install-rulesSkill
- install-scriptsSkill
- issue-analyzeSkill
- jiraSkill
- load-pr-reviewSkill
- merge-prepSkill
- necessity-auditSkill
- next-stepSkill
- obsidian-cliSkill
- op-sessionSkill
- orchestrateSkill
- plan-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Document review (use /codex-review-doc)
- Very specific: line 17
Document refactoring (use /doc-refactor)
- Very specific: line 29
Use the shared feature context resolution algorithm (see @skills/create-request/references/feature-context-resolution.md):
- Distinctive: line 113
Update document content based on differences:
- Distinctive: line 123
Verify all new modules are documented
- Distinctive: line 124
Verify all removed modules are cleaned up
- Distinctive: line 128
After doc sync, compare code diff against pre-sync baseline.
“Common” is measured: kept by at least 6 in 10 of the 43 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
Trigger
- Keywords: update docs, sync docs, docs out of date, update-docs
When NOT to Use
- Document review (use
/codex-review-doc) - Creating new docs (use
/tech-specor/create-request) - Document refactoring (use
/doc-refactor)
Auto-Trigger
Auto-triggered after precommit Pass, only when the change maps to a feature under docs/features/ (see @rules/auto-loop.md § Tiers, gate sequence). Can also be invoked manually.
Task
Step 1: Locate Docs and Related Code (5-Level Cascade)
Key principle: can't find target → ## Gate: ⚠️ Need Human — don't guess or create new docs.
Use the shared feature context resolution algorithm (see @skills/create-request/references/feature-context-resolution.md):
scan_error gate. scan_error !== false ⇒ the source sets are unknown, not empty —
report it and take the ⚠️ Need Human exit rather than syncing against a corpus you could not enumerate — an unreadable
corpus and a feature with no documents both return empty, and the first one silently becomes
"nothing to sync". Gate on !== false, not
=== true: a {} payload from a shell fallback carries no such field at all, and a non-null key
is not evidence the sets are complete — scan_error rides alongside a resolved key.
| Confidence | Action |
| high/medium | Proceed with detected feature |
| low | Proceed with warning |
| null (not found) | Output ## Gate: ⚠️ Need Human — do not guess |
Step 1.5: Classify Each Target — Sync Authority, Freeze Records
This skill rewrites current-authority docs. It does not rewrite records.
resolveDocRole(path, source, taxonomy) in scripts/lib/doc-metadata.js answers which a file is,
and owesCodeAlignment(path, source, taxonomy) is the same answer as a boolean — a doc owes code
alignment exactly when its role is the fallback (current-authority) one.
Both take a repository path as the first argument — never a role label. Spelling it
owesCodeAlignment() invites the call that has already been made here once: passing the string
"Design record" where the path goes. That string matches no rule, so it falls through to
FALLBACK_ROLE and the function returns true — a fail-closed default reads exactly like an
affirmative answer, and the wrong reading was an instruction to rewrite a frozen record
(docs/features/push-gate-optin/review-log-push-gate-optin.md, round 43).
The four roles below are BUILTIN_ROLE_CONFIG.closed_set in that file, and the Examples column
states what its path_defaults patterns actually match — read it there, not from the phase number.
docs-numbering.md numbers documents by lifecycle phase; doc-metadata.js assigns authority
role. They are different axes, and reading the first as the second is what put 2-tech-spec.md in
the Current-authority row of this table until 2026-08-21 — an instruction to rewrite a frozen design
record, and the exact failure the paragraph below this table warns about.
| Role | Matches (path_defaults) | What this skill does |
| Current authority — owes code alignment | 4-implementation*; anything whose first segment is skills/rules/agents/commands; and the fallback, which is what README.md resolves through | Rewrite the sections the code changed |
| Design record — states a decision | Conventionally 0-feasibility-study*, 1-requirements*, 2-tech-spec*, 3-architecture* — but the pattern is ^[0-3]-(feasibility|requirements|tech-spec|architecture), a cross-product: any of those four prefixes with any of those four stems, sixteen names, not four (see below). Also intent-<feature>.md (the intent-records rule) — planner-written constraints the implementer checks work against | Do not rewrite. Append a dated > **Update(…)** note recording what later changed — except intent-*: touch it not at all, appends included. Amending intent is a human re-decision, never a sync; this skill only reports a tension between the code and an invariant or Non-goal, and the human edits the file or does not |
| Work record — states what was asked | anything under a requests/ segment | Do not rewrite — this skill does not touch it at all. /create-request --update may overwrite exactly four fields (Status, the Progress table, AC checkboxes, Progress.Note); everything else in the ticket is frozen, and a closed ticket is frozen entirely. That is the whole mutable set for an ordinary update. The single exception is a reported factual correction — a non-lifecycle recorded fact such as a path or a date, or an unfilled template placeholder that was never a statement about the ticket — which may also apply to a closed ticket, authorizes only that correction, and never unrelated trimming or cleanup; it must be stated in Progress.Note. It must never change Status, a Progress phase status, or AC checkbox state: those lifecycle fields stay governed by the freeze and the ordinary transition rules, or "the erroneous fact" becomes a label an agent can put on a lifecycle edit to walk past them. Both halves are defined once in skills/create-request/SKILL.md § Phase 4.5 |
| History record | review-log-*, adr-* | Do not rewrite. Append only |
owesCodeAlignment(path, source, taxonomy) is resolveDocRole(path, source, taxonomy) ===
FALLBACK_ROLE — the Current authority role and nothing else, so the three record rows are one
decision, not three. Named by role, not by position: "the first row" was true only until somebody
reordered or inserted one, and a reordered table would then have silently redirected this
instruction at a record.
The four canonical pairings — 0-feasibility-study, 1-requirements, 2-tech-spec,
3-architecture — are a naming convention (@rules/docs-numbering.md), not what the classifier
tests. Measured 2026-08-21: 1-tech-spec.md, 3-requirements.md, 0-architecture.md and
2-feasibility-study.md all resolve to Design record, because the prefix and the stem are
matched independently. Listing only the four pairings invites the opposite reading — that an
off-convention name is a gap the classifier cannot see — and it is the reverse: the classifier is
wider than the convention, deliberately, so a mis-numbered spec is still protected from rewriting.
Where it does stop is the prefix: 4-tech-spec.md falls past [0-3] into the fallback and
resolves to Current authority, i.e. rewritable. A spec numbered outside the range loses the
protection its name suggests, so fix the number rather than relying on the stem.
A record that disagrees with today's code is not stale — that disagreement is the record. Editing
it to agree destroys the only copy of what was decided, and buys nothing: the reviewer reads records
under the record-diff profile, which carries no code-alignment obligation
(skills/doc-review/SKILL.md § Review Profiles).
Report a record you were pointed at rather than silently skipping it — "not in scope for rewriting" is a fact the caller needs, and silence reads as "synced".
Step 2: Research Current Code State
Key research items:
- Any new scripts / skills / commands added?
- Any modified logic in existing files?
- Any new configuration or rules added?
- Any API or interface changes?
Step 3: Compare Docs vs Code Differences
| Item | Doc Description | Current Code | Status |
Step 4: Update Docs
Update document content based on differences:
- Architecture diagrams (Mermaid sequenceDiagram / flowchart)
- Core service table
- API description
- Data model
Step 5: Verification
After update:
- Re-read updated document sections
- Verify all new modules are documented
- Verify all removed modules are cleaned up
Safety Valve
After doc sync, compare code diff against pre-sync baseline. If new code changes exist (e.g., lint:fix modified code), return to review loop.
Output
## Doc Update Report
| Document | Sections Updated | Status |
|----------|-----------------|--------|
## Changes Made
- <summary of each update>
## Verification
- [ ] New modules documented
- [ ] Removed modules cleaned
- [ ] Diagrams updatedDoes 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.

