/tcw:documentation-syncfrom tcw
Checks whether code changes require documentation updates (README, changelog, guides). Evaluates project documentation entries and their triggers after completing development work.
Ships in tcw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Version check. Under Claude Code, skip this: the session-start hook already ran it. Under any other harness, once per session before your first tcw command, run bash "<plugin>/scripts/check_versions.sh", where <plugin> is two folders above the folder holding this SKILL.md, and pass on anything it prints to the user.
After completing code changes, get the project's documentation entries and evaluate each one's trigger before reporting the task complete.
Ask tcw work docs --json first. It returns {"schema", "source", "entries"}, and source tells you which world you are in without guessing:
"config" — the entries are declared in .tcw/tcw-config.yaml under work.documentation, validated by tcw validate, and the entries array is authoritative. Use it and read no Markdown."agent-guide" — the project has declared nothing, so fall back to the legacy convention: a ## Documentation Sync section in the project's CLAUDE.md / AGENTS.md, holding a bullet list of - path [Trigger] — description.Outside a TCW project tcw work docs does not apply; use the legacy convention directly. If neither is present, ask the user whether to add entries — the configure skill's reference on documentation entries walks them through it.
This is a cross-cutting process skill: it does not drive a tcw axis, it governs when docs must move with code. In a TCW project the stage prompts invoke it at two points:
| Lifecycle point | What this skill does | Reference |
|---|---|---|
plan | Predict which triggers will fire and name a doc task for each — scheduled as one block at the end of the plan. | tcw work stage prompt plan |
End of implement | The documentation gate. Once every plan task is done and the suite is green, make one pass over the finished change and answer every fired trigger, before writing the implement round. | tcw work stage prompt implement |
One pass at the end, not per-task: docs written mid-implementation describe a shape the change has abandoned by the time it lands. Review then checks code and docs together instead of accepting a change whose docs are still pending.
This is the fallback, not the recommended form. In a TCW project, declare the entries in .tcw/tcw-config.yaml under work.documentation instead: tcw validate checks their shape, tcw work docs prints them, and tcw work stage prompt plan / implement put them in front of the agent directly, so the gate does not depend on anyone remembering to open a file and parse prose. The configure skill's reference on documentation entries walks through both forms.
Use the section below when the project is not a TCW project, or when the user prefers Markdown. Project owners add it to their CLAUDE.md:
## Documentation Sync
Before reporting any code change complete, invoke the `documentation-sync` skill to evaluate the entries below. When writing an implementation plan, include explicit documentation-update tasks for every entry whose trigger is expected to fire.
- `README.md` [Public-API] — Public consumption, high-level, written for maximum human readability
- `docs/changelogs/upcoming/<name>.md` [Any-Code-Change] — Developer changelog; technical, grouped by category; one file per work item, named by its folder name
- `CLI_GUIDE.md` [Public-CLI-API] — Updated when CLI behavior changes
- `docs/api.md` [Only-Breaking] — Only updated for breaking changes
The opening directive is a hint: it tells the agent to invoke this skill before reporting code-change work complete. It is not a hard guarantee — sessions that don't touch code can ignore it. But for any session that does change code, the directive is what surfaces the trigger-evaluation step instead of letting it slip.
Each entry has three parts:
!tcw work procedure documentation-sync || true
The commands below are automatically executed by the Claude Code harness, and their output is the rest of this procedure: evaluating triggers, adding documentation tasks to a plan, and running a version cut when the user asks for one.
# Get the procedure, composed with this project's text
# (outside a TCW project it prints TCW's own text)
tcw work procedure documentation-sync
If the tcw CLI is not installed at all, read TCW's own text from
<plugin>/tcw/work/procedures/documentation-sync.md instead, where <plugin> is
the plugin's root folder, two levels above the folder this SKILL.md is in. If the
command is installed but fails, report the failure rather than reading that file:
it would silently skip this project's own procedure.
If your harness did not run them, run them yourself and follow the output in
place of the line above. references/ in that output means this skill's
references/ folder. Where the entries come from, and the lifecycle points
above, still apply whatever that output says.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub brocef/tcw --plugin tcw14 skills in this plugin
/capabilitiesDrives `tcw capabilities` — the Capabilities axis of TCW (what a user can do). Use when a tcw work item has a product (user-facing) delta, or when coordinating capability wording across repos. The taxonomy axis is the `taxonomy` skill, the work axis the `work` skill./commands-drive-work-to-completionDrive a TCW work item from wherever it is through implement, review and qa, to completed where the agent may record the qa verdict, or to qa for a person where it may not./commands-pause-workStop the work in hand gracefully, write down what resuming needs, and wait for the user./commands-plan-workPlan a TCW work item from an existing item or the user's chat request, writing its request, spec and plan./commands-process-inboxDecide on every arrival in a TCW project's work inbox, then write the request for each one accepted./configureChanges how a project that already uses TCW is configured. Use when a user wants to set up or change the stages a project uses, the text or commands bound to a stage, hook limits, procedures, the Jira backend, documentation entries that track which documents a change must update, where a store lives, a project's parents and children, where related projects are on this machine, what a project inherits from its parents, or their own personal configuration. Getting TCW working in the first place is the `setup` skill.Other plugins' skills for the same job