/dstack-writing:docs-writingfrom DStack Writing
Writes, restructures, or audits documentation using Diataxis types. Drafts feature docs pages or diagram sources from evidence, with human approval before writing.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Good documentation lets a reader find the right page, follow it unaided, and trust what it says. This skill produces docs where each page does one job (learning, doing, looking up, or understanding), drafts them from evidence, audits them, and writes nothing until a human approves the draft.
Use it for new docs, a restructure, an audit, a feature docs page, or a diagram source. Content that argues why a decision was made belongs in an ADR or design record, not here. To resync existing docs after code changes, use sync-docs; name docs-update for the user to invoke when the fixes should land as commits or a reviewable PR.
Ask for anything missing and write nothing until you have it.
| Input | Required | Notes |
|---|---|---|
| Target directory or file set | Yes | Defines the write boundary |
| Intent | Yes | New docs, audit, restructure, or feature draft |
| Subject and audience | Yes | Guessing either produces docs for the wrong reader |
| Output format | Yes | Markdown, plain text, or a diagram source |
| Feature spec or PRD, and the implementing code path | For feature docs | The only allowed sources for feature content |
| Diataxis map, scope limit, existing docs, diagram type, length limit, project style guide | Optional | Use when available |
Classify each doc as exactly one Diataxis type:
| Type | Serves | Passes when |
|---|---|---|
| Tutorial | Learning | A beginner completes a guided path with a visible result at each step |
| How-to guide | A goal | An experienced user follows the steps without backtracking |
| Reference | Lookup | A fact is findable in under 30 seconds; each entry gives name, type, default, description, and example |
| Explanation | Understanding | A reader can restate the idea in their own words |
A doc that straddles two types gets split or retitled, never relabeled to dodge a check. If a doc cannot be split cleanly, report it as blocked.
Link the types when you finish. Tutorials point forward to the how-to and reference they prepare for. How-tos point to the reference and the explanation behind them. References and explanations point back to the practical pages.
Write fresh prose or diagram source for the named subject, audience, and format; do not copy upstream wording.
Never invent APIs, flags, defaults, behaviors, or values. Each claim traces to a source you read. If no source exists yet, you may scaffold the section structure from the doc type, but mark every missing value as a gap.
For feature docs, use the sections Overview, Prerequisites, Usage, API reference, Configuration, and Troubleshooting. Fill each one only from the spec and the code, with examples taken from source or tests. Where spec and code disagree, note the mismatch in the draft and flag it for review instead of picking a side. Capture or request a screenshot of the feature with descriptive alt text and a caption naming the UI state shown; if the runtime cannot produce one, leave <!-- screenshot: pending --> and report the gap.
For a diagram that needs rendering, write its source and state the render command. Run it only when asked.
Work through every lens and fix failures inside your scope. A check that cannot run counts as unmet, not passed. If a criterion stays unmet, stop: leave the docs in their last consistent state and report the criterion and the file it blocks. Never claim success while any check is unmet or unverified.
The project's own style guide wins over every default below. Where it says nothing, apply the defaults.
configure over set up, verify over check) and verbs over nominalizations.Present the audited draft in chat and iterate there. Nothing reaches disk until the draft is approved.
After approval, write the file to the target path and confirm it exists. If a write fails partway, delete the partial file and report the rollback.
| Condition | Action |
|---|---|
| Subject, audience, or format missing | Ask; write nothing |
| Target outside the named set or on a protected file | Name the rejected path; write nothing |
| Diataxis type ambiguous and the doc cannot be split | Report blocked; do not guess |
| Doc fails its type check | Fix the failing predicate; never reclassify to pass |
| No link resolver available | Record links as unverified, which counts as unmet |
| Code contradicts the spec | Note the discrepancy in the draft and flag it |
| Empty or invalid draft | Discard, report, write nothing |
| Partial write failure | Delete the partial file and report the rollback |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gosuda/dstack-skills --plugin dstack-writing14 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-updateUse when documentation has drifted from code changes and the user asks to synchronize it. Delivers the fixes as local commits or as a reviewable PR after preview approval. Not for ADRs, architectural rationale, or writing an isolated document (use docs-writing)./good-readmeUse when the user asks to create, rewrite, review, or polish an open-source README. Produces one evidence-backed README.md in a fixed section order and checks it with five gates. Not for remote, credential, publish, deploy, or irreversible changes./humaniseur-frUse when the user supplies French text that reads like AI output and asks to naturalize it. Rewrites hollow formulas, stacked connectors, systematic hedging, heavy nominalization, and unintegrated anglicisms while keeping register and meaning. French only; not for English (use humanizer-plain-english or unslop) or English STE rewriting (use humanizer-simple-english-asd-ste100)./humanizer-korean-plainUse when Korean prose reads as machine-generated (기계 문체), machine-translated (번역투), or bureaucratic (행정 문체) and must be rewritten as plain, natural Korean without changing its meaning. Covers rewriting, drafting from notes, and reviewing notices, emails, READMEs, and explanatory text. Not for controlled procedures or one-action-per-step runbooks: use humanizer-korean-ste. Also use for spelling-only requests: fix notation errors and keep the original style.Other plugins' skills for the same job