Skip to content
FunCoding

octocode-documentation

Load this skill first when asked to write, shorten or review a README, guide, runbook, docstring or comment. Organize it around the reader’s task and verify claims, commands and links.

Star
972
License
MIT
Last commit
Dec 2, 2026

skills/octocode-documentation/SKILL.md

View on GitHub

Octocode Documentation

Read the requested page and nearby conventions; identify the reader, their next action and the destination. A named document authorizes editing there; a review returns findings (location, issue, correction, severity, verified). Resolve missing information only when it changes the content or destination.

Writing rules

Follow user instructions, project style, local convention, then this skill. Preserve meaning in wording-only edits.

WhenAction
A fact, API or command changesCheck its owning source, contract or test. For cross-file claims or ADRs, use writing and verification; for agent-readable pages or agent instruction files, agent docs.
Drafting stepsPut prerequisites first and give the result the reader sees after each consequential step.
Reviewing, or editing wording or repetitionUse the style guide for the review procedure, review comments and disputed wording, structure and formatting for layout, punctuation, UI terms and diagrams, and code, claims and links. Give each rule one home and link to it where readers need it.
Comparing choices or explaining a branchUse the format chooser.
Before deliveryRun the doc check and the project's own docs lint, if it has one. Verify changed examples and commands where safe and authorized, otherwise inspect their source.

Before removing text, check whether the reader can still choose the next action, find each rule and recognize success. Test a consequential line literally: what can fail if followed? Verify that risk against its source.

Check before delivery

Run doc-check.mjs from any folder on the changed Markdown files. It reads the files and writes nothing unless you pass --write:

node <skill-folder>/scripts/doc-check.mjs <changed.md>...

After renaming a heading or file, scan the folder that holds the inbound links and name each rename; --write rewrites each stale link whose replacement resolves:

node <skill-folder>/scripts/doc-check.mjs <docs-root> --renamed '<file.md>#<old heading>=<new heading>' --write
ResultAction
Exit 0, ok: trueNo mechanical finding.
brokenLinks, missingAnchorsFix each entry; suggestion names the anchor a fragment was probably meant to be.
missingCommandsFix the path or script name, unless the command runs the reader's own file (such as app.mjs) or a folder the text names. counts.commands: 0 means no command was checked.
staleInboundAnchorsAn entry without written: true still needs its link replaced by replacement; replacementOk: false means the renamed heading or file does not exist yet.
headingIssues, wordListHits, styleIssuesJudge each in context with wordGuidance and styleGuidance; keep names and quoted examples as written.
Exit 2Fix the arguments the error names; --help lists the options.

Deliver the document or findings. Cite stable source anchors; name the checks run and unverified items. Save reports per output.md; render them with render-report.mjs. Use octocode-research for unresolved code claims, octocode-rfc-generator for open decisions and octocode-skills for skill instructions and packaging.

Similar Skills

perfect-docs

MAmattpocock/skills337k4,978 new stars in the last 7 days

Featured

domain-modeling

Write a glossary, record ADRs, and clarify vague terms.

MAmattpocock/skills337k4,978 new stars in the last 7 days

writing-beats

MAmattpocock/skills337k4,978 new stars in the last 7 days

writing-shape

MAmattpocock/skills337k4,978 new stars in the last 7 days

writing-fragments

MAmattpocock/skills337k4,978 new stars in the last 7 days

writing-plans

OBobra/superpowers331k4,772 new stars in the last 7 days