/dstack-writing:docs-updatefrom DStack Writing
Syncs documentation with recent code changes, delivering fixes as local commits or a reviewable PR after preview approval.
Ships in DStack Writing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bring documentation back in line with a bounded set of code changes, then deliver the result as local commits or as a reviewable PR. To write a single new document, use docs-writing. For a read-only report on how far plans and docs have drifted from code, use drift-detect. ADRs and architectural rationale are out of scope.
The user picks the delivery mode, and it decides every remote effect:
| Mode | Remote effect |
|---|---|
| Local commit | None. Commits stay local; never push, publish, or open or update a PR or MR. |
| Reviewable PR | Push and open a PR only after the user approves a preview. Never merge. |
If the request names neither mode, ask before changing anything. Every write besides the approved push stays local, with version control as the rollback.
Documentation commits always go on a feature branch. In local commit mode on the base branch, stop before any change and name the feature branch to create, even if repo policy would allow a base-branch commit.
local commit or reviewable PR.Resolve the base branch, current branch, and change set. In PR mode, also identify the documentation repo's remote, base branch, and proposed head branch, without creating or pushing anything yet.
Read every commit and its diff. Keep user-facing changes: features, API changes, changed behavior, removals, configuration, commands, flags, endpoints, environment variables, and feature flags. Exclude refactors, test-only changes, typo fixes, and performance or infrastructure work with no user impact. When significance is doubtful, keep the commit. Record why each commit was kept or excluded.
If nothing user-facing remains, report the excluded commits and stop without a commit or PR.
Discover the documentation, skipping dependency, VCS, and build directories. Detect the platform (Mintlify, Docusaurus, GitBook, Fumadocs, or plain Markdown when no signal exists) from config and structure. Read the project style guide and a few representative files to capture voice, terminology, heading structure, frontmatter, components, and code-example conventions.
For each changed public surface in the kept diffs, map where it is covered across the Diataxis types (reference, how-to, tutorial, explanation). Mark surfaces with no coverage or reference-only coverage. Check maintained diagrams (ASCII, Mermaid, others) for renamed, moved, split, or removed entities and edges. Tie each gap or drift item to a specific doc change.
Check each document against the kept diffs: setup, examples, troubleshooting, commands, project structure, workflows, component descriptions, cross-references, and navigation. Sort every needed edit:
| Class | Covers | Handling |
|---|---|---|
| Auto | A bounded factual correction proved by the diff: a path, count, table row, command, flag, structure tree, or stale link | Apply directly |
| Ask | Positioning or narrative, design rationale, security model, removing or adding a section, rewriting more than about ten lines of one section, or any ambiguous claim | Present one recommendation plus a skip option; apply only the approved choice |
Skipped text stays unchanged.
Match the detected platform and style, keep accurate content, and update diagrams together with the claims around them. Keep terminology, examples, navigation, and repeated facts consistent across documents. Write a one-line factual summary for each changed file.
Leave CHANGELOG alone unless the kept changes need an entry. Before editing, read the whole file. Score each affected entry from 0 to 3, one point each for a changed fact, user impact, and a usage command, flag, or link. Reword entries scoring below 2 toward user impact, and split out contributor-only detail when the existing structure allows it.
Keep every existing entry and its order. Use narrow exact-match edits; never regenerate or overwrite the file. If an edit risks clobbering entries, drop that edit. Ask when an entry looks wrong or incomplete.
Scan every modified file for API keys, tokens, passwords, private URLs, internal hostnames, and PII, including email addresses outside legitimate attribution. Remove or mask findings without leaving secret-shaped placeholders. If redaction would distort the doc, leave that file uncommitted and ask.
If no documentation changed, report that the docs are current and stop. Otherwise stage modified documentation files by explicit path and write descriptive commits. In a multi-repo setup, commit only each repo's own files, and link every documentation update to its triggering source commit by URL or repository-qualified hash.
| Condition | Action |
|---|---|
| Delivery mode missing | Ask local commit or reviewable PR; change nothing |
| Local mode on the base branch | Stop before any change and name the feature branch needed |
| Documentation repo missing or mismatched | Report the expected repo or path; do not guess or edit another repo |
| No user-facing change | Report the excluded commits; no commit or PR |
| Ask-class edit without approval | Leave the text unchanged; skipping is valid |
| CHANGELOG clobber risk | Drop that edit; keep existing entries and order |
| Secret or PII remains | Exclude the file from delivery and name the redaction decision needed |
| PR preview not approved | Keep work local; no remote effect |
| Partial result | Deliver only files that passed audit, approval, consistency, changelog protection, and redaction; list every unchanged or blocked file |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/articulateUse when the user knows what they mean but cannot express it completely or clearly. Not for discovery, ideation, or style-only editing: use unslop for style./copywritingUse when asked to write or fix product/marketing copy, landing pages, UI strings, brand voice, AI tells, an end-of-article CTA, or a hook/lede. Not for whole articles./docs-writingUse when asked to write, restructure, or audit documentation with Diataxis types, or to draft a feature docs page or diagram source. Not for ADRs or architectural rationale.npx claudepluginhub gosuda/dstack-skills --plugin dstack-writingOther plugins' skills for the same job