update-docs
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
02 资源文件 3
- 参考文档references/language.md4.7 KB
- 脚本scripts/convert.py2.9 KB
- 脚本scripts/doccheck.py28.8 KB
03 SKILL.md 正文
Update the docs
This skill checks the whole doc set of a project and brings it up to date. First it makes a plan: which documents the project needs, of which type, in which file, and which skill writes each one. The human approves the plan. Then the doc- skills write or fix each document.
Modes
Select the mode from the repository. Do not ask.
- Plan: the project has few or no docs (no page other than a README). Make a plan for a new doc set.
- Audit: the project has a doc set. Classify each page as one type. Find the pages that mix types, the pages that do not agree with the code, the missing types, and the duplicate content. Grade each page (step 4).
Steps
-
Read the language rules. Read
references/language.mdin this skill folder. Ask the format question one time for all documents, in the same message as the other questions. Done when you know the format, the language of the docs, and (Dutch) "je" or "u", or you asked. -
Make an inventory. Read the repo: the existing docs and their folders, the public API, the CLI, and the configuration. Also read the build and deploy files, and find the readers (users, developers, operators). With
$ARGUMENTS, limit the inventory to that folder or doc set. Done when you can name each reader and each main task. -
Classify. For each need, select one type with two questions: Does the reader act or learn the facts? Is the reader learning or working?
Acting Knowing Learning tutorial ( doc-tutorial)explanation ( doc-explanation)Working how-to guide ( doc-howto)reference ( doc-reference)Other types:
doc-readme(entry page),doc-adr(one decision),doc-changelog(versions),doc-code-comments(comments in code),doc-ui-text(product text). More page types go to these skills: a troubleshooting page and a migration guide todoc-howto, a glossary todoc-reference. ListCONTRIBUTING.mdandAGENTS.mdwhen they are missing, but do not write them. They are out of scope. In audit mode, give each page one type, and mark each page that has content of more than one type. -
Make the plan. Give a table with one row for each document. The columns are: file path, type, skill, purpose, source of the facts, format, and status (new, rewrite, update, keep). The format is the answer to the format question. A row for
doc-code-comments,CHANGELOG.md, orREADME.mdalways has Markdown or the source file. Use the folder layout of the repo. If there is none, usedocs/tutorials/,docs/how-to/,docs/reference/,docs/explanation/, anddocs/decisions/. In audit mode, add four columns:- Audience: the reader of the page.
- ROT: redundant (another page has the same content), outdated (it does not agree with the code), trivial (no reader needs it), or none.
- Grade: A, C, or F. Ask four questions: Does the page have one type? Do the facts agree with the code? Do the links work? Does it follow the template of its type? A has four yes answers, C has one or two no answers, F has more.
- Last change: the date of the last commit of the page.
An outdated page gets the status update, with the facts that changed. Propose to delete or merge each redundant or trivial page. A small set of correct pages is better than a large set with errors. Done when each reader task has a document and each document has one type.
-
Get approval. Show the plan and stop. Write nothing until the human approves it, or changes it.
-
Run the plan. After approval, give each skill the format of its row. Use the skills in this order: reference, how-to, tutorial, explanation, ADR, README last (it links to the others). Done when each row has its file and the checker shows 0 errors for each file.
-
Report. Give the files that changed, the checker result of each file, and the rows that wait. End with one line:
Next: review the changed docs and commit them.Done when the human has the report.
04 同仓库更多 Skills
web-accessibility
Web accessibility to WCAG 2.2 AA - a checklist for the design, the tool checks (axe-core, the Tab walk, reduced motion), and the manual checks that no tool does (screen reader, zoom, status messages) - with the EAA and EN 301 549 status. Use when a design, mockup, or built feature must be checked for accessibility, when a review must cover keyboard and screen reader use, when the user asks about focus, a focus trap, contrast, or a screen reader on a page, or when the user asks which accessibility rules apply.
ux-states
State inventory for each screen - default, empty, loading, partial, error, success, disabled, overflow, offline, and the business states (no permission, stale data, locked by another user, waiting on an external system, bulk result with failures, read only) - with what the user sees, can do, and how the user recovers. Use when a screen or flow needs its states designed or checked, or when a design shows only the happy path.
ux-setup
Set up a project for UX work - finds the design tools, the design-system source, the brand files, the languages, and the run command, asks the human one round of questions, and writes the "## Design" section of .claude/rules/delivery.md that the ux-design commands and the ux-designer agent read. Moves an older "## Design" section out of CLAUDE.md. Use when /setup, /ux-design, or /ux-review needs the design facts, when the ux-designer agent returns NEEDS_HUMAN because the "## Design" section is missing, or when the user wants to set up or change the design tools of a project.
ux-review
UX review of a built feature against its approved design - Playwright walks each flow and state at 390, 820, and 1440 px, axe-core and the tell checks run on each state, and each heuristic gets a verdict - with findings by owner, severity, and origin, and a verdict in ux-review.md in the work folder of the item. Use when a built feature or screen must be checked against its design, mockups, or prototype, in each state or at each screen size, when built screens need findings by severity, when the build of an item with a UX design is done, or when existing screens need a UX audit.
ux-prototype
Clickable prototype of a designed story in the proto-shell standard, with variants for an A/B test, all states in scope, three sizes, and a test plan with tasks. Use when a design or mockups exist and the team must test the flow or compare variants with users before the build.
ux-practice
The method of the ux-designer agent for the UX design of a story, a feature, or a screen - Double Diamond phases, a design spec with a source for each decision, the UX decision log, evidence tags, severity, and the modes light, full, and new-direction. Preloaded by the ux-designer agent. Use when the ux-designer agent or another UX skill names this method. For the design of an item, a person starts ux-design:ux-design.