Askit build docs
Skill product-on-purpose/agent-skills-toolkit/skills/askit-build-docs
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.From its SKILL.md
npx -y skills add product-on-purpose/agent-skills-toolkit --skill askit-build-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 2 commands, including `node scripts/evaluate.mjs . --json` and 1 more.
SKILL.md
4.6 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
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
node scripts/evaluate.mjs . --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.
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.
What ships with it: 3 files
13.5 KB alongside SKILL.md
examples/
references/
- docs-site-recipe.md4.8 KB
- README.md690 B