[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72331NQHP2TKJCHDB1QE5M7":3,"skill-same:01M72331NQHP2TKJCHDB1QE5M7":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M72331NQHP2TKJCHDB1QE5M7","askit-build-docs",null,"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.","product-on-purpose\u002Fagent-skills-toolkit","product-on-purpose","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F253892650?v=4","01M7230Q4442AHBADCVFJCS277","Product on Purpose","01M7230Q4SFDBKY7586D5M7EFX",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: askit-build-docs\ndescription: 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.\nmetadata:\n  version: 0.2.1\n  tier: universal\n  audience: intermediate\n---\n\n# askit-build-docs\n\n## Purpose\nAuthor and improve a plugin's human-and-agent-facing documentation, following the builder pattern ([..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md](..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-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\u002Fdocs-site-recipe.md](references\u002Fdocs-site-recipe.md). Mermaid is a validated convention, not a skill.\n\n## When to use\nWhen authoring or refreshing a plugin's docs, standing up a docs site, or aligning documentation with the component index after a change.\n\n## create mode\n1. Read `library.json` + component frontmatter (the index) and the target doc type.\n2. Scaffold the doc from the matching Diataxis shape (one purpose per page). README and architecture lead with a summary and link to detail.\n3. Cross-link: every relative link must resolve (the U6 reference-link rule is the discipline to mirror).\n\n## improve mode\n1. Run `npx agent-skills-toolkit evaluate . --json` and read the docs for drift against the component index (a renamed or removed component leaves a dangling reference).\n2. Fix each gap; keep prose tight (the ETH-Zurich finding: verbose context files lower agent task success).\n\n## site mode\n1. Follow [references\u002Fdocs-site-recipe.md](references\u002Fdocs-site-recipe.md): copy the pinned `..\u002Fpm-skills` stack (Astro 6 + `@astrojs\u002Fstarlight` ~0.39 + `astro-mermaid` ~2.0, ordered mermaid-before-starlight), the GitHub Pages `site` + `base`, and the **generated Pattern S** content collection (ADR 0024 D2): the stock `docsLoader()` over `src\u002Fcontent\u002Fdocs\u002F`, a `gen-docs-site.mjs` generator that emits the public `docs\u002F**` tree there (gitignored, rebuilt via a `generate()` call at the top of `astro.config.mjs`, link-rewritten so the clause-14.11 guard stays green), and curated landing pages on top. Not an in-place glob over `.\u002Fdocs`.\n2. Wire the deploy workflow (`.github\u002Fworkflows\u002Fdeploy-pages.yml`, triggered on `site\u002F**` and `docs\u002F**`) and verify `npm run build` plus the link\u002Froute\u002Funtracked guards are green before publishing (standing up a live site is a separate, build-verified slice; the recipe is the contract).\n\n## folder-readme mode\nScaffold 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.\n1. List the folder's immediate children with `fs.readdirSync`, dropping `README.md`, gitignored\u002Fscratch\u002Ftool dirs (`node_modules`, `.git`, `dist`, `.astro`, `_local`, ...), lockfiles, and `.gitkeep`.\n2. Emit a README with a frontmatter `title`, a one-to-two-sentence purpose, and an `## Inventory` section listing each remaining child as `- ``name`` - what it is` (a trailing slash marks a subdirectory). For a folder under `docs\u002F`, also carry the full frontmatter taxonomy (`description`, `audience`, `level`) so it passes `G7`.\n3. 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.\nThe meaningful-folder allowlist (ADR 0024 D1) is the repo's source and component folders; the repo-root README (the project hero) and `templates\u002Fseed-plugin\u002F` (a seed payload, not a folder guide) are excluded.\n\n## Writing rules (all modes)\nFive 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\u002Fstyle-contract.md](references\u002Fstyle-contract.md); measure a page before and after any rewrite rather than judging your own prose.\n1. **Every command must run from the reader's position.** A page written for a plugin author must not name `node scripts\u002F*.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.\n2. **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.\n3. **Define a coined word in the sentence that first uses it**, and link [the glossary](..\u002F..\u002Fdocs\u002Fexplanation\u002Fglossary.md). Product terms (Bronze, Silver, Gold, tier) do not need this; invented ones (burndown, spine, emission, declared-tier ceiling) do.\n4. **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.\n5. **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.\n## Scope\nDocumentation is Universal (markdown is portable on both agents). The site is the v1 docs surface (ADR 0021\u002F0023); README\u002FCHANGELOG\u002FRELEASE-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.\n","# askit-build-docs\n\n## Purpose\nAuthor and improve a plugin's human-and-agent-facing documentation, following the builder pattern ([..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md](..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-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\u002Fdocs-site-recipe.md](references\u002Fdocs-site-recipe.md). Mermaid is a validated convention, not a skill.\n\n## When to use\nWhen authoring or refreshing a plugin's docs, standing up a docs site, or aligning documentation with the component index after a change.\n\n## create mode\n1. Read `library.json` + component frontmatter (the index) and the target doc type.\n2. Scaffold the doc from the matching Diataxis shape (one purpose per page). README and architecture lead with a summary and link to detail.\n3. Cross-link: every relative link must resolve (the U6 reference-link rule is the discipline to mirror).\n\n## improve mode\n1. Run `npx agent-skills-toolkit evaluate . --json` and read the docs for drift against the component index (a renamed or removed component leaves a dangling reference).\n2. Fix each gap; keep prose tight (the ETH-Zurich finding: verbose context files lower agent task success).\n\n## site mode\n1. Follow [references\u002Fdocs-site-recipe.md](references\u002Fdocs-site-recipe.md): copy the pinned `..\u002Fpm-skills` stack (Astro 6 + `@astrojs\u002Fstarlight` ~0.39 + `astro-mermaid` ~2.0, ordered mermaid-before-starlight), the GitHub Pages `site` + `base`, and the **generated Pattern S** content collection (ADR 0024 D2): the stock `docsLoader()` over `src\u002Fcontent\u002Fdocs\u002F`, a `gen-docs-site.mjs` generator that emits the public `docs\u002F**` tree there (gitignored, rebuilt via a `generate()` call at the top of `astro.config.mjs`, link-rewritten so the clause-14.11 guard stays green), and curated landing pages on top. Not an in-place glob over `.\u002Fdocs`.\n2. Wire the deploy workflow (`.github\u002Fworkflows\u002Fdeploy-pages.yml`, triggered on `site\u002F**` and `docs\u002F**`) and verify `npm run build` plus the link\u002Froute\u002Funtracked guards are green before publishing (standing up a live site is a separate, build-verified slice; the recipe is the contract).\n\n## folder-readme mode\nScaffold 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.\n1. List the folder's immediate children with `fs.readdirSync`, dropping `README.md`, gitignored\u002Fscratch\u002Ftool dirs (`node_modules`, `.git`, `dist`, `.astro`, `_local`, ...), lockfiles, and `.gitkeep`.\n2. Emit a README with a frontmatter `title`, a one-to-two-sentence purpose, and an `## Inventory` section listing each remaining child as `- ``name`` - what it is` (a trailing slash marks a subdirectory). For a folder under `docs\u002F`, also carry the full frontmatter taxonomy (`description`, `audience`, `level`) so it passes `G7`.\n3. 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.\nThe meaningful-folder allowlist (ADR 0024 D1) is the repo's source and component folders; the repo-root README (the project hero) and `templates\u002Fseed-plugin\u002F` (a seed payload, not a folder guide) are excluded.\n\n## Writing rules (all modes)\nFive 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\u002Fstyle-contract.md](references\u002Fstyle-contract.md); measure a page before and after any rewrite rather than judging your own prose.\n1. **Every command must run from the reader's position.** A page written for a plugin author must not name `node scripts\u002F*.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.\n2. **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.\n3. **Define a coined word in the sentence that first uses it**, and link [the glossary](..\u002F..\u002Fdocs\u002Fexplanation\u002Fglossary.md). Product terms (Bronze, Silver, Gold, tier) do not need this; invented ones (burndown, spine, emission, declared-tier ceiling) do.\n4. **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.\n5. **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.\n## Scope\nDocumentation is Universal (markdown is portable on both agents). The site is the v1 docs surface (ADR 0021\u002F0023); README\u002FCHANGELOG\u002FRELEASE-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.\n",{"name":5,"metadata":24,"description":7},{"tier":25,"version":26,"audience":27},"universal","0.2.1","intermediate","main","b0a696723b1155d08503a8441c981998f9d13c34","skills\u002Faskit-build-docs",0,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit","https:\u002F\u002Fproduct-on-purpose.github.io\u002Fagent-skills-toolkit","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose","2026-11-14 15:02:57",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-docs",{"tool":42,"command":43},"bunx","bunx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-docs",{"tool":45,"command":46},"pnpm","pnpm dlx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002FSKILL.md",true,[50,56,60,64],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fgolden-1-how-to-diataxis.md","REFERENCE","参考文档",8224,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002Fexamples\u002Fgolden-1-how-to-diataxis.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"README.md",690,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002FREADME.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fdocs-site-recipe.md",4920,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002Freferences\u002Fdocs-site-recipe.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fstyle-contract.md",11172,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-docs\u002Freferences\u002Fstyle-contract.md",[69,76,81,86,93,100],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M723BRSVFQ2KRQ8KKY42R6XB","fx-demo","A fixture skill that exists so the re-derived manifest has a component list to compare. Use only from tests\u002Funit\u002Fself-consistency.test.mjs.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Frepaired\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":77,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M723BPZ1NQDZSEF21D3YP2VF","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Fpre-fix\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":82,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M723BNCZXT3BM577HJYESV08","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Fbody-drift\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M723BKWKX9JG10YQ6NK79ZB6","sf-caller","Calls the worker subagent to do a thing. Use when delegating work to sf-worker.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fsubagent-fixture\u002Fskills\u002Fsf-caller\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M723BJNDZHEJTNBJP6ZJA8WM","sf-do-thing","Converts CSV input into a formatted summary. Use when the user asks to summarize or tabulate spreadsheet data.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fsilver-fixture\u002Fskills\u002Fsf-do-thing\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M723BH7BYXT0A05PG6QH6B98","root-skill-plugin","Summarizes a changelog section into one release-note sentence. Use when the user asks to condense a list of changelog bullets into a single announcement line.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Froot-skill-plugin\u002FSKILL.md",[],[]]