askit-build-docs
Skill4 starsChanged 37 days agoApache-2.0View on GitHub
Creates and improves a plugin's documentation across modes (readme, quickstart, tutorial, how-to, reference, glossary, faq, troubleshooting, architecture, folder-readme, and an Astro Starlight docs site) to the Advanced Skill Library Standard. Use when authoring or refreshing docs, scaffolding a folder README, standing up a docs site, or aligning documentation with the component index.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- askit-backlogSkill
- askit-build-agents-mdSkill
- askit-build-chain-contractSkill
- askit-build-commandSkill
- askit-build-hookSkill
- askit-build-mcpSkill
- askit-build-output-styleSkill
- askit-build-samplesSkill
- askit-build-settingsSkill
- askit-build-skillSkill
- askit-build-statuslineSkill
- askit-build-subagentSkill
- askit-build-workflowSkill
- askit-capability-advisorSkill
- askit-capability-gap-analysisSkill
- askit-capability-whats-newSkill
- askit-decisionSkill
- askit-deprecateSkill
- askit-evaluateSkill
- askit-init-marketplaceSkill
- askit-init-pluginSkill
- askit-migrateSkill
- askit-onboardSkill
- askit-releaseSkill
- askit-standards-watchSkill
- askit-template-managerSkill
- REPLACE-with-kebab-case-name-matching-this-directorySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When authoring or refreshing a plugin's docs, standing up a docs site, or aligning documentation with the component index after a change.
- Very specific: line 19
Read library.json + component frontmatter (the index) and the target doc type.
- Very specific: line 24
Run npx agent-skills-toolkit evaluate .
- Very specific: line 43
A reference ID always carries a handle and a route: Never a bare E14; write what it is and link where it lives.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
askit-build-docs
Purpose
Author and improve a plugin's human-and-agent-facing documentation, following the builder pattern (../../docs/reference/builder-pattern.md). create scaffolds a doc from the component index and the Standard; improve reads askit-evaluate findings and the docs and fixes gaps. Doc modes follow the Diataxis split: readme, quickstart, tutorial (learning), how-to (task), reference, glossary, faq, troubleshooting (information), and architecture (an overview that links to a detailed companion, the summary-plus-detailed convention). The folder-readme mode scaffolds or refreshes a meaningful folder's README.md so its inventory matches the folder's actual children (the G8 anti-rot guard). The site mode stands up an Astro Starlight documentation site from the pinned recipe in references/docs-site-recipe.md. Mermaid is a validated convention, not a skill.
When to use
When authoring or refreshing a plugin's docs, standing up a docs site, or aligning documentation with the component index after a change.
create mode
- Read
library.json+ component frontmatter (the index) and the target doc type. - Scaffold the doc from the matching Diataxis shape (one purpose per page). README and architecture lead with a summary and link to detail.
- Cross-link: every relative link must resolve (the U6 reference-link rule is the discipline to mirror).
improve mode
- Run
npx agent-skills-toolkit evaluate . --jsonand read the docs for drift against the component index (a renamed or removed component leaves a dangling reference). - Fix each gap; keep prose tight (the ETH-Zurich finding: verbose context files lower agent task success).
site mode
- Follow references/docs-site-recipe.md: copy the pinned
../pm-skillsstack (Astro 6 +@astrojs/starlight~0.39 +astro-mermaid~2.0, ordered mermaid-before-starlight), the GitHub Pagessite+base, and the generated Pattern S content collection (ADR 0024 D2): the stockdocsLoader()oversrc/content/docs/, agen-docs-site.mjsgenerator that emits the publicdocs/**tree there (gitignored, rebuilt via agenerate()call at the top ofastro.config.mjs, link-rewritten so the clause-14.11 guard stays green), and curated landing pages on top. Not an in-place glob over./docs. - Wire the deploy workflow (
.github/workflows/deploy-pages.yml, triggered onsite/**anddocs/**) and verifynpm run buildplus the link/route/untracked guards are green before publishing (standing up a live site is a separate, build-verified slice; the recipe is the contract).
folder-readme mode
Scaffold or refresh a folder README.md whose inventory set-equals the folder's immediate children, so the folder-readme (G8) check stays green as the folder evolves.
- List the folder's immediate children with
fs.readdirSync, droppingREADME.md, gitignored/scratch/tool dirs (node_modules,.git,dist,.astro,_local, ...), lockfiles, and.gitkeep. - Emit a README with a frontmatter
title, a one-to-two-sentence purpose, and an## Inventorysection listing each remaining child as- ``name`` - what it is(a trailing slash marks a subdirectory). For a folder underdocs/, also carry the full frontmatter taxonomy (description,audience,level) so it passesG7. - Refresh rather than overwrite: when a README exists, keep its purpose paragraph and existing per-child descriptions, and only add or remove inventory lines so the set matches the current children.
The meaningful-folder allowlist (ADR 0024 D1) is the repo's source and component folders; the repo-root README (the project hero) and
templates/seed-plugin/(a seed payload, not a folder guide) are excluded.
Writing rules (all modes)
Five rules, each from a defect found in this repository's own public docs on 2026-08-23 and 2026-08-24. The per-quadrant page anatomy, the measurable floor, and the worked exemplar are in references/style-contract.md; measure a page before and after any rewrite rather than judging your own prose.
- Every command must run from the reader's position. A page written for a plugin author must not name
node scripts/*.mjs: that path exists only in a clone, while the install docs send people to npm or the marketplace. Use the published bin (npx agent-skills-toolkit [subcommand]). Where a tool ships with the plugin but NOT the npm package, say which install route provides it rather than dropping the command. Seventy commands across 34 pages had this defect. - No internal planning vocabulary. Project phases, wave numbers and packet names mean nothing outside this repo, and they rot: one page told readers to wait for a phase that had shipped three months earlier.
- Define a coined word in the sentence that first uses it, and link the glossary. Product terms (Bronze, Silver, Gold, tier) do not need this; invented ones (burndown, spine, emission, declared-tier ceiling) do.
- A reference ID always carries a handle and a route. Never a bare
E14; write what it is and link where it lives. A reader cannot look up a number they have no index for. - Orientation before mechanism, on every explanation and tutorial section. Say what the thing is, then what breaks without it, then the specification. A section opening with "X is an ES module with exactly two exports" has told a reader who already knew. A sweep aimed only at sentence length missed this entirely: the corpus measured plain at a 12-word median sentence and still read as hard.
Scope
Documentation is Universal (markdown is portable on both agents). The site is the v1 docs surface (ADR 0021/0023); README/CHANGELOG/RELEASE-NOTES discipline is gated by askit-release and the release-readiness gate (ADR 0022). Sample sets and eval coverage are authored by askit-build-samples, not here.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

