Documentation phase for PowerRustCOBOL. Keep the docs in sync with the code using the code↔document registry, so a code change updates only the documents/sections that describe it. Use when the user runs /docsync, after /implement, or whenever code changed and docs may be stale. (Not a document-format tool — see anthropic-skills:docx/pdf for those.)
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Docsync?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cloudlandbeta-docsync-powerrustcobol)
---
name: docsync
description: Documentation phase for PowerRustCOBOL. Keep the docs in sync with the code using the code↔document registry, so a code change updates only the documents/sections that describe it. Use when the user runs /docsync, after /implement, or whenever code changed and docs may be stale. (Not a document-format tool — see anthropic-skills:docx/pdf for those.)
---
# /docsync — keep documentation in sync with the code
The documentation phase of the spec-driven workflow (see `specs/README.md`).
Drives English-canonical doc updates from the **code↔document registry** in
`specs/steering/docs.md`, and hands screenshots to `/doc-shots` and translations
to `/doc-localize`.
## Steps
1. **Read** `specs/steering/docs.md` (the registry + policy) and the other
`specs/steering/*.md`.
2. **Determine scope:**
- Default: the code changed since docs were last synced — `git diff --name-only`
for the relevant range (ask the user for the range/commit if unclear), or
- a feature folder's `plan.md` "Affected crates/files", or
- "audit everything" if the user asks for a full pass.
3. **Map changes → docs.** For each changed path, find registry rows whose "Code
areas" globs match. Collect the affected documents/sections. If a change has
**no** matching row, that's a registry gap — add a row (and tell the user).
4. **Update only those English docs/sections** so they match current behaviour:
features, caveats, and **sample code/CLI examples**. Do not rewrite accurate
prose. Verify samples against the code (verify-first). Write to the conventions
in `specs/steering/doc-style.md` (voice, paragraph/bullet/heading rules, when
to add a diagram, colour/emphasis).
5. **Screenshots:** if a change invalidates an image (UI/layout), or a section is
missing one, list it and invoke **`/doc-shots`** (or note it for the operator).
6. **Translations (GOLDEN RULE #8 — DELETE, do not patch):** you have just
changed the English canonical, so its five translations are now stale.
**Physically delete `<doc>-{es,pt,fr,jp,cn}.md` for every document you
touched.** Do **not** carry the delta into them, and do **not** regenerate
them: the full regeneration cycle runs **only on a major/minor bump**, which
only the operator raises. **Never delete an English file.**
7. **Audit what you touched.** `/docsync` only updates documents some code
change pointed at. It cannot see a claim that was **never** true, or a gap
that closed without a doc trigger. Before reporting, run **`/doc-audit`** over
the sections you changed and their immediate neighbours: trace each ✅ to a
**runtime** path, re-check each ❌ against what has since landed, and run the
samples. Report findings; do not silently rewrite them.
8. **Report** a concise summary: which docs/sections changed in which languages,
registry rows added, and screenshots flagged.
## Rules
- **English only; stale translations are deleted, never patched.** Write/patch
the English canonical and delete the five translations of every document you
touched. Regenerating them is a **major/minor-only** cycle — see GOLDEN RULE #8
in `CLAUDE.md` and "Localization policy" in `specs/steering/docs.md` for the
32 KB / ToC-split / `temp-*` procedure. (This supersedes the 2026-08-20
"every language, same change" rule.)
- Keep the registry in `specs/steering/docs.md` current — a new doc/section needs
a row in the same change.
- New `README.md` files are hidden by the global gitignore — `git add -f` them.
- **Do not commit or push** unless the user asks; when asked, docs-only changes
are a `docs:`/`chore:` commit (no version bump), per the operator's rules.