update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- update-docs
- description
- Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
- argument-hint
- [<spec-name> | --range <base>..<head>]
03 SKILL.md 正文
Update Docs
Keeps the documentation true after a change ships. /finalize-spec-publish runs it for every spec; run it on its own after any change that altered commands, flags, files, formats or workflow.
Input
$ARGUMENTS: a spec name (the range comes from python3 scripts/harness/finalize.py range --spec <spec>), or --range <base>..<head> for any change on main. With neither, ask for one; in a non-interactive run, stop and return that question.
Invocation contexts
- Slash command: edits the documents in the working tree it runs in and lists what it changed. It commits only inside
/finalize-spec-publish, which names the files. - Model-invoked: the same.
- Non-interactive: the same edits, in the tree it was given; a missing range is an input step that stops with the question. It never commits in the shared checkout.
Where each kind of fact lives
| Document | Update when the change | Never |
|---|---|---|
README.md |
changes what MYTHHELM can do, its status, install or first-run steps | describe internals |
docs/ (user and contributor docs) |
changes a command, flag, exit code, file format, config key or behaviour they describe | edit the current master identified by docs/spec/README.md: the design reference changes only through its own reviewed change; preserved source revisions remain intact |
knowledge/ |
changes a fact a page states: a path, a table row, a mechanism, a failure mode | add instructions; they belong in rules (.claude/rules/knowledge-conventions.md) |
WORKFLOW.md |
changes how maintainers drive the agents | restate skill procedures |
CLAUDE.md |
changes a convention or command every session needs | add anything that fits in a rule, a skill or knowledge/: its bytes count against the always-on budget |
Steps
-
List what changed:
git diff --name-only <base>..<head>andgit diff <base>..<head>for the files that matter. Collect the names a reader would search for: commands, flags, exit codes, file and directory names, config keys, skill and script names, table headings. -
Find every stale statement:
git grep -n -e '<name>' -- README.md docs knowledge WORKFLOW.md CLAUDE.md AGENTS.mdfor each collected name, plus the pages that describe the changed area (knowledge/README.mdindexes them). Read each hit against the code at<head>. Also find the absences: a new command, flag or file that the page listing its siblings does not mention. Enumerate that page's list, never assume from one missed keyword. -
Edit the stale statements to match the code, in the page's existing style and table shapes. Add a new fact only where its siblings already live. Remove text about what the change deleted.
-
Check what you touched:
scripts/ci/lint-agent-harness.sh --only references,rule-budget,abs-paths scripts/ci/check-public-hygiene.shA
rule-budgetfailure meansCLAUDE.mdgrew: move the new text into a rule withpaths:, a skill orknowledge/instead.
Output
One line per changed document: <path>: <what changed>, or Docs: no update needed, followed by the names checked in step 2 so the claim can be audited.
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code
task-completion
Authoritative completion format for a spec task — the gates to record first, the tasks.md completion entry (heading marker, Status with the PR, Implementation, Spec deviations, Files modified), the hand-off section, the claim-to-evidence table and the task-report block that ends the implementer's final message