[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXSE1YN6TX80WNG39XFN4S":3,"skill-same:01M6BXSE1YN6TX80WNG39XFN4S":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":14,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6BXSE1YN6TX80WNG39XFN4S","cratis-documentation-writing","Cratis 技术文档编写","Plan, write, and improve user-centered Cratis documentation with a clear reader journey and one primary Diátaxis purpose per page. Use for product docs, tutorials, how-to guides, reference, explanations, and documentation reviews. For executable examples use cratis-technical-examples; for release notes use cratis-release-notes. Do not invent APIs or publish content.","规划、编写和改进以用户为中心的 Cratis 文档，确保清晰的读者旅程，且每页只有一个主要的 Diátaxis 目的。适用于产品文档、教程、操作指南、参考文档、解释性文档和文档评审。可执行示例请使用 cratis-technical-examples；发布说明请使用 cratis-release-notes。不要凭空编造 API 或发布内容。","Cratis\u002FSpecifications","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M6BXRH6YXJMJ3140T8TVBSB4",1,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-documentation-writing\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-documentation-writing\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"cratis documentation writing","documentation","cratis","writing","content","page","plan","improve","how","publish","examples","product","release-notes","release","release notes","notes","docs","2026-11-10 10:12:30",false,"---\nname: cratis-documentation-writing\ndescription: Plan, write, and improve user-centered Cratis documentation with a clear reader journey and one primary Diátaxis purpose per page. Use for product docs, tutorials, how-to guides, reference, explanations, and documentation reviews. For executable examples use cratis-technical-examples; for release notes use cratis-release-notes. Do not invent APIs or publish content.\nlicense: MIT\nmetadata:\n  cratis-hint-paths: \"**\u002FDocumentation\u002F**\u002F*.{md,mdx}\"\n---\n\u003C!-- cratis-ai-managed: skills\u002Fcratis-documentation-writing\u002FSKILL.md -->\n\n# Documentation writing\n\nA developer arrives with a job to do, not with an interest in our repository\nstructure. Start from that job: what did they try, what stopped them, and what\nwould let them know they succeeded? Use [Diátaxis](https:\u002F\u002Fdiataxis.fr\u002F)\nas a compass for each page's primary purpose, not a purity test. This skill\ngoverns content and reader journeys; the owning repository governs page\nplacement, navigation, and rendering.\n\n## Classify before writing\n\nDetermine which quadrant the page belongs to before drafting:\n\n| Type | Orientation | Analogy | When to use |\n| --- | --- | --- | --- |\n| **Tutorial** | Learning | A lesson | Guide a newcomer step-by-step to a successful first outcome |\n| **How-to guide** | Problem-solving | A recipe | Show an experienced user how to accomplish a specific task |\n| **Reference** | Information | A dictionary | Describe the technical machinery — APIs, attributes, configuration |\n| **Explanation** | Understanding | A discussion | Clarify *why* something works the way it does, trade-offs, architecture |\n\nRules per type:\n\n- **Tutorial** — lead a newcomer through one realistic, threaded outcome.\n  Each step has a visible result. Briefly explain the invisible effect of a\n  step, then link to an explanation for deeper theory; do not interrupt the\n  lesson with a reference dump. Show the smallest *safe* configuration that\n  runs before presenting options: bind local services to loopback, label\n  development credentials as such, and put host and configuration\n  alternatives in linked how-to guides. Make the first snippet the convention\n  path, with no registration or wiring a convention already does, then name\n  what the framework did that the reader cannot see.\n- **How-to guide** — assume competence. State the goal, list prerequisites,\n  give the steps, done. No teaching.\n- **Reference** — exhaustive within its declared scope and terse. For each\n  public option or API, cover type, required\u002Foptional status, default, valid\n  values, return behavior, errors and compatibility where applicable. State\n  scope and link to a working usage example; do not turn it into a lesson.\n- **Explanation** — no steps. Discuss concepts, trade-offs, and design\n  decisions. Diagrams are welcome here.\n\nA brief prerequisite or explanation may serve the main journey. If a reader\nalso needs an exhaustive lookup, link a reference page rather than burying it\nin the lesson. Resolve routine audience or type choices from the request\nand neighboring pages; ask only when the alternatives change the outcome.\n\n## Work from the reader outward\n\n1. Find the authored source, neighboring pages, existing user entry points,\n   and current product behavior. Do not edit generated site copies. Identify\n   whether the reader is new, migrating, troubleshooting, or looking up an API.\n2. Write the question they came with and the success signal in one sentence.\n   Draft a title and first paragraph that make the problem and payoff clear;\n   avoid opening with an abstract product definition or an internal type name.\n3. Trace a short route from that page to one clear 'start here' entry,\n   targeted recipes, and exact reference. Give different languages or hosts\n   their own procedures when a shared path cannot be run as written. A\n   'coming from X' bridge should map familiar concepts to the new workflow,\n   not replace it. When a page shows several backends, state how they differ\n   once, in a \"how the backends differ\" table near the start: identity\n   source, id and response wire types, default authorization, live versus\n   snapshot queries, and unsupported features with their tracking issue.\n   Inside a step, write only what the current tab's reader needs. Across a\n   series, keep backend limitations in one table on the series index and link\n   it; don't repeat an issue-tracked limitation on every page.\n4. Link required tools to their canonical installation procedures before the\n   first command. For cross-product prerequisites, use a verified public route;\n   a named Markdown reference is defined on this same page, not in another\n   repository. Do not revive DocFX `xref:` symbols or duplicate another\n   product's setup recipe. See the documentation formatting rule for syntax.\n5. Draft in workflow order. For a tutorial, use one working domain throughout,\n   show what to run and what appears, and recap before adding another concept.\n   For a how-to, keep only what the specific task needs. Link out for details.\n   Many Cratis readers are adopting a paradigm (event sourcing, event\n   modeling, vertical slices), not only a tool: link the explanation from the\n   start route, but let the reader reach a first success before the theory.\n6. Read the rendered page as a newcomer: could they find it, begin without\n   hidden prerequisites, recover from a common mistake, and recognize success?\n   Then check claims, examples, accessibility, links, and the owning gates.\n\nUse support questions and user feedback as evidence: ask what they searched\nfor, where they looked, and which step failed. Repair the entry link, wording,\nor example as appropriate; adding another FAQ entry alone may not fix discovery.\nThe docs are also the answer surface for Prompter and Chronicle MCP, so treat\na repeated question as a signal to investigate the page, its entry route, or\nthe product behavior behind it. Reduce a report to the page and the\nsentence-level change the reader expected. Make an in-scope fix when the\nevidence supports one; otherwise report the gap and suggest an issue, opening\none only when asked.\n[Cratis site specifics](references\u002Fcratis-site.md) lists the signals Prompter\nactually records.\n\n## Writing style\n\nThe voice is **direct, practical, and opinionated** — an experienced colleague\nexplaining something to a capable developer, confident but never condescending.\n\n- **Active voice, present tense.** \"Chronicle appends the event\", not \"The\n  event is appended by Chronicle.\"\n- **Second person.** \"You configure…\", not \"One configures…\" or \"It is\n  possible to configure…\".\n- **Lead with the reader's problem and payoff.** Explain why a capability\n  matters before its configuration, except in a terse how-to or reference.\n- Use headings, lists, and code blocks to organize content; dense paragraphs\n  lose readers.\n- Focus on public behavior. Explain what happens behind an example when the\n  reader needs it to understand the result, without turning the page into an\n  internal implementation manual.\n- Teach the intended idioms: show the conventional shape of a solution and\n  explain why a tempting non-idiomatic approach causes trouble. Distinguish a\n  framework requirement from a house convention; avoid making a workaround the\n  first example a newcomer copies.\n- State limitations, maturity, compatibility, and when the simpler approach\n  is preferable. Link to third-party docs instead of retelling them. Say that\n  an experimental or preview surface is experimental on its own first screen;\n  a sidebar link or published guide does not tell the reader.\n- Use a [Mermaid](https:\u002F\u002Fmermaid-js.github.io\u002Fmermaid\u002F#\u002F) diagram where\n  architecture, a sequence, or state transitions are clearer drawn than\n  told. A diagram replaces topology prose; it does not decorate a page.\n- Vary sentence and paragraph rhythm; avoid templated openings and filler.\n  A voice edit must never weaken a technical caveat or invent experience.\n- **American English only**: `color` not `colour`, `behavior` not `behaviour`,\n  `organize` not `organise`, `initialize` not `initialise`.\n\n## AI-assisted drafting\n\nUse AI to find gaps, compare terminology and review a draft, but do not let\nplausible generated prose decide what problem the product solves. Ground the\nreader journey in observed use cases and have the owning maintainer review\nstructural changes. A style pass cannot establish technical correctness.\nDo not rewrite an entire corpus into one repeated template.\n\nAn AI-drafted narrative is a first draft, not a finished page. Give the model\nthe reader, the scenario, the terminology and the source evidence up front;\nthen revise the result against that evidence and the\n**cratis-writing-voice-and-cadence** constructions before it ships. Tell the\nreviewer the narrative was AI-drafted (in the review request, a PR comment or\nthe commit message, never in the PR description, which is published as the\nrelease note) so they read it as prose, not only as a diff.\n\nFor machine-readable delivery and retrieval checks, use\n**cratis-llm-friendly-documentation**; publishing `llms-full.txt` alone does\nnot prove that an assistant can find the right page or cite it accurately.\n\n## Examples and maintenance\n\nUse **cratis-technical-examples** to choose between a short verified\nillustration and a snippet extracted from compiling, tested sample source.\nNever transcribe an API from memory, hand-translate an unsupported client, or\nclaim a pasted block is runnable when it requires unstated setup. Show the\ncommand and observable output for a substantial walkthrough.\n\nAdding a backend or client to a product also changes pages the product's own\nchecks don't scan, such as cross-product and site-level pages. Search them for\nsingle-language claims (\"in C#\", C#-only APIs presented as universal) and for\nseries indexes whose description, reading order or production claims no longer\nhold.\n\nEdit the *authored* file, never a synced copy. The Cratis site derives each\nproduct page's edit link from that source path, so don't hand-author\n`editUrl` in product frontmatter. Recheck examples against the supported\nversion when that version changes. A review of docs is not complete just\nbecause the site builds: syntax and behavior are different checks.\n\nA page is done for this change, not finished forever. Expect to revisit its\nwording, structure and examples as readers hit them.\n\n## Cratis platform specifics\n\nRead [Cratis site specifics](references\u002Fcratis-site.md) before writing a\nCratis product page. It covers the teaching components (`YouWillLearn`,\n`Recap`, client tabs, including on site-owned pages), the variant-docs audit,\nmaturity and preview labeling, cross-product compatibility, the Prompter\nfeedback signal, and who decides page structure.\n\n## Contextual awareness\n\n- Read the existing documentation around the page you are writing first, and\n  match its tone, style, and terminology. If it is \"event source\" there, it is\n  \"event source\" everywhere.\n- Do not copy content from existing pages unless explicitly asked; link\n  instead.\n- Do not fabricate URLs or version numbers — link only to resources you can\n  verify exist.\n\n## Inspiration, not a template\n\nJeremy Miller describes user-centered journeys, tutorial-to-reference links,\nsource-checked snippets, and a quick edit\u002Fpublish loop in his\n[OSS-community account](https:\u002F\u002Fjeremydmiller.com\u002F2026\u002F07\u002F08\u002Fthings-that-have-worked-for-our-oss-community\u002F)\nand [documentation essay](https:\u002F\u002Fwww.linkedin.com\u002Fpulse\u002Feffective-oss-documentation-jeremy-miller-bh1ac\u002F).\nHis account is experience, not evidence that a site generator or AI model\ncauses better documentation: borrow the habits, not Wolverine's structure.\n\n## Completion checklist\n\nA page is done when:\n\n- The page has a deliberate primary purpose; short supporting context helps\n  the reader proceed, while substantial digressions link to their own pages.\n- The audience and their goal were identified before writing, and the first\n  screen serves that goal. The first working path needs no unexplained setup\n  or up-front choice among configuration alternatives, and it is safe to run\n  on a developer machine as written.\n- Examples teach intended idioms and identify relevant traps without turning\n  a tutorial into an exhaustive list of alternatives.\n- Examples are source-verified, complete at their stated scope, and show a\n  checkable result; longer examples come from compiling sample or spec source.\n  Explanations of what happened match the backend the reader built.\n- The entry point, terminology, and next-step links fit the surrounding docs.\n- All internal links resolve; all external links are real.\n- Mermaid blocks are syntactically valid.\n- The file ends with a single trailing newline.\n","\u003C!-- cratis-ai-managed: skills\u002Fcratis-documentation-writing\u002FSKILL.md -->\n\n# Documentation writing\n\nA developer arrives with a job to do, not with an interest in our repository\nstructure. Start from that job: what did they try, what stopped them, and what\nwould let them know they succeeded? Use [Diátaxis](https:\u002F\u002Fdiataxis.fr\u002F)\nas a compass for each page's primary purpose, not a purity test. This skill\ngoverns content and reader journeys; the owning repository governs page\nplacement, navigation, and rendering.\n\n## Classify before writing\n\nDetermine which quadrant the page belongs to before drafting:\n\n| Type | Orientation | Analogy | When to use |\n| --- | --- | --- | --- |\n| **Tutorial** | Learning | A lesson | Guide a newcomer step-by-step to a successful first outcome |\n| **How-to guide** | Problem-solving | A recipe | Show an experienced user how to accomplish a specific task |\n| **Reference** | Information | A dictionary | Describe the technical machinery — APIs, attributes, configuration |\n| **Explanation** | Understanding | A discussion | Clarify *why* something works the way it does, trade-offs, architecture |\n\nRules per type:\n\n- **Tutorial** — lead a newcomer through one realistic, threaded outcome.\n  Each step has a visible result. Briefly explain the invisible effect of a\n  step, then link to an explanation for deeper theory; do not interrupt the\n  lesson with a reference dump. Show the smallest *safe* configuration that\n  runs before presenting options: bind local services to loopback, label\n  development credentials as such, and put host and configuration\n  alternatives in linked how-to guides. Make the first snippet the convention\n  path, with no registration or wiring a convention already does, then name\n  what the framework did that the reader cannot see.\n- **How-to guide** — assume competence. State the goal, list prerequisites,\n  give the steps, done. No teaching.\n- **Reference** — exhaustive within its declared scope and terse. For each\n  public option or API, cover type, required\u002Foptional status, default, valid\n  values, return behavior, errors and compatibility where applicable. State\n  scope and link to a working usage example; do not turn it into a lesson.\n- **Explanation** — no steps. Discuss concepts, trade-offs, and design\n  decisions. Diagrams are welcome here.\n\nA brief prerequisite or explanation may serve the main journey. If a reader\nalso needs an exhaustive lookup, link a reference page rather than burying it\nin the lesson. Resolve routine audience or type choices from the request\nand neighboring pages; ask only when the alternatives change the outcome.\n\n## Work from the reader outward\n\n1. Find the authored source, neighboring pages, existing user entry points,\n   and current product behavior. Do not edit generated site copies. Identify\n   whether the reader is new, migrating, troubleshooting, or looking up an API.\n2. Write the question they came with and the success signal in one sentence.\n   Draft a title and first paragraph that make the problem and payoff clear;\n   avoid opening with an abstract product definition or an internal type name.\n3. Trace a short route from that page to one clear 'start here' entry,\n   targeted recipes, and exact reference. Give different languages or hosts\n   their own procedures when a shared path cannot be run as written. A\n   'coming from X' bridge should map familiar concepts to the new workflow,\n   not replace it. When a page shows several backends, state how they differ\n   once, in a \"how the backends differ\" table near the start: identity\n   source, id and response wire types, default authorization, live versus\n   snapshot queries, and unsupported features with their tracking issue.\n   Inside a step, write only what the current tab's reader needs. Across a\n   series, keep backend limitations in one table on the series index and link\n   it; don't repeat an issue-tracked limitation on every page.\n4. Link required tools to their canonical installation procedures before the\n   first command. For cross-product prerequisites, use a verified public route;\n   a named Markdown reference is defined on this same page, not in another\n   repository. Do not revive DocFX `xref:` symbols or duplicate another\n   product's setup recipe. See the documentation formatting rule for syntax.\n5. Draft in workflow order. For a tutorial, use one working domain throughout,\n   show what to run and what appears, and recap before adding another concept.\n   For a how-to, keep only what the specific task needs. Link out for details.\n   Many Cratis readers are adopting a paradigm (event sourcing, event\n   modeling, vertical slices), not only a tool: link the explanation from the\n   start route, but let the reader reach a first success before the theory.\n6. Read the rendered page as a newcomer: could they find it, begin without\n   hidden prerequisites, recover from a common mistake, and recognize success?\n   Then check claims, examples, accessibility, links, and the owning gates.\n\nUse support questions and user feedback as evidence: ask what they searched\nfor, where they looked, and which step failed. Repair the entry link, wording,\nor example as appropriate; adding another FAQ entry alone may not fix discovery.\nThe docs are also the answer surface for Prompter and Chronicle MCP, so treat\na repeated question as a signal to investigate the page, its entry route, or\nthe product behavior behind it. Reduce a report to the page and the\nsentence-level change the reader expected. Make an in-scope fix when the\nevidence supports one; otherwise report the gap and suggest an issue, opening\none only when asked.\n[Cratis site specifics](references\u002Fcratis-site.md) lists the signals Prompter\nactually records.\n\n## Writing style\n\nThe voice is **direct, practical, and opinionated** — an experienced colleague\nexplaining something to a capable developer, confident but never condescending.\n\n- **Active voice, present tense.** \"Chronicle appends the event\", not \"The\n  event is appended by Chronicle.\"\n- **Second person.** \"You configure…\", not \"One configures…\" or \"It is\n  possible to configure…\".\n- **Lead with the reader's problem and payoff.** Explain why a capability\n  matters before its configuration, except in a terse how-to or reference.\n- Use headings, lists, and code blocks to organize content; dense paragraphs\n  lose readers.\n- Focus on public behavior. Explain what happens behind an example when the\n  reader needs it to understand the result, without turning the page into an\n  internal implementation manual.\n- Teach the intended idioms: show the conventional shape of a solution and\n  explain why a tempting non-idiomatic approach causes trouble. Distinguish a\n  framework requirement from a house convention; avoid making a workaround the\n  first example a newcomer copies.\n- State limitations, maturity, compatibility, and when the simpler approach\n  is preferable. Link to third-party docs instead of retelling them. Say that\n  an experimental or preview surface is experimental on its own first screen;\n  a sidebar link or published guide does not tell the reader.\n- Use a [Mermaid](https:\u002F\u002Fmermaid-js.github.io\u002Fmermaid\u002F#\u002F) diagram where\n  architecture, a sequence, or state transitions are clearer drawn than\n  told. A diagram replaces topology prose; it does not decorate a page.\n- Vary sentence and paragraph rhythm; avoid templated openings and filler.\n  A voice edit must never weaken a technical caveat or invent experience.\n- **American English only**: `color` not `colour`, `behavior` not `behaviour`,\n  `organize` not `organise`, `initialize` not `initialise`.\n\n## AI-assisted drafting\n\nUse AI to find gaps, compare terminology and review a draft, but do not let\nplausible generated prose decide what problem the product solves. Ground the\nreader journey in observed use cases and have the owning maintainer review\nstructural changes. A style pass cannot establish technical correctness.\nDo not rewrite an entire corpus into one repeated template.\n\nAn AI-drafted narrative is a first draft, not a finished page. Give the model\nthe reader, the scenario, the terminology and the source evidence up front;\nthen revise the result against that evidence and the\n**cratis-writing-voice-and-cadence** constructions before it ships. Tell the\nreviewer the narrative was AI-drafted (in the review request, a PR comment or\nthe commit message, never in the PR description, which is published as the\nrelease note) so they read it as prose, not only as a diff.\n\nFor machine-readable delivery and retrieval checks, use\n**cratis-llm-friendly-documentation**; publishing `llms-full.txt` alone does\nnot prove that an assistant can find the right page or cite it accurately.\n\n## Examples and maintenance\n\nUse **cratis-technical-examples** to choose between a short verified\nillustration and a snippet extracted from compiling, tested sample source.\nNever transcribe an API from memory, hand-translate an unsupported client, or\nclaim a pasted block is runnable when it requires unstated setup. Show the\ncommand and observable output for a substantial walkthrough.\n\nAdding a backend or client to a product also changes pages the product's own\nchecks don't scan, such as cross-product and site-level pages. Search them for\nsingle-language claims (\"in C#\", C#-only APIs presented as universal) and for\nseries indexes whose description, reading order or production claims no longer\nhold.\n\nEdit the *authored* file, never a synced copy. The Cratis site derives each\nproduct page's edit link from that source path, so don't hand-author\n`editUrl` in product frontmatter. Recheck examples against the supported\nversion when that version changes. A review of docs is not complete just\nbecause the site builds: syntax and behavior are different checks.\n\nA page is done for this change, not finished forever. Expect to revisit its\nwording, structure and examples as readers hit them.\n\n## Cratis platform specifics\n\nRead [Cratis site specifics](references\u002Fcratis-site.md) before writing a\nCratis product page. It covers the teaching components (`YouWillLearn`,\n`Recap`, client tabs, including on site-owned pages), the variant-docs audit,\nmaturity and preview labeling, cross-product compatibility, the Prompter\nfeedback signal, and who decides page structure.\n\n## Contextual awareness\n\n- Read the existing documentation around the page you are writing first, and\n  match its tone, style, and terminology. If it is \"event source\" there, it is\n  \"event source\" everywhere.\n- Do not copy content from existing pages unless explicitly asked; link\n  instead.\n- Do not fabricate URLs or version numbers — link only to resources you can\n  verify exist.\n\n## Inspiration, not a template\n\nJeremy Miller describes user-centered journeys, tutorial-to-reference links,\nsource-checked snippets, and a quick edit\u002Fpublish loop in his\n[OSS-community account](https:\u002F\u002Fjeremydmiller.com\u002F2026\u002F07\u002F08\u002Fthings-that-have-worked-for-our-oss-community\u002F)\nand [documentation essay](https:\u002F\u002Fwww.linkedin.com\u002Fpulse\u002Feffective-oss-documentation-jeremy-miller-bh1ac\u002F).\nHis account is experience, not evidence that a site generator or AI model\ncauses better documentation: borrow the habits, not Wolverine's structure.\n\n## Completion checklist\n\nA page is done when:\n\n- The page has a deliberate primary purpose; short supporting context helps\n  the reader proceed, while substantial digressions link to their own pages.\n- The audience and their goal were identified before writing, and the first\n  screen serves that goal. The first working path needs no unexplained setup\n  or up-front choice among configuration alternatives, and it is safe to run\n  on a developer machine as written.\n- Examples teach intended idioms and identify relevant traps without turning\n  a tutorial into an exhaustive list of alternatives.\n- Examples are source-verified, complete at their stated scope, and show a\n  checkable result; longer examples come from compiling sample or spec source.\n  Explanations of what happened match the backend the reader built.\n- The entry point, terminology, and next-step links fit the surrounding docs.\n- All internal links resolve; all external links are real.\n- Mermaid blocks are syntactically valid.\n- The file ends with a single trailing newline.\n",{"name":5,"license":15,"metadata":52,"description":7},{"cratis-hint-paths":53},"**\u002FDocumentation\u002F**\u002F*.{md,mdx}","main","c392076c8b3fae3b8b31e7d5684d71f9be75e8bb",".cratis\u002Fai\u002Fskills\u002Fcratis-documentation-writing","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications","https:\u002F\u002Fwww.cratis.io\u002Fspecifications\u002F","https:\u002F\u002Fgithub.com\u002FCratis","https:\u002F\u002Fwww.cratis.io","Open-source (MIT) event sourcing and CQRS for .NET and beyond: Chronicle, Arc, Components and Screenplay.","2026-11-14 15:53:54",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add Cratis\u002FSpecifications --skill cratis-documentation-writing",{"tool":69,"command":70},"bunx","bunx skills add Cratis\u002FSpecifications --skill cratis-documentation-writing",{"tool":72,"command":73},"pnpm","pnpm dlx skills add Cratis\u002FSpecifications --skill cratis-documentation-writing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-documentation-writing\u002FSKILL.md",true,[77,81],{"path":78,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":16},"LICENSE","许可证",207,{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fcratis-site.md","REFERENCE","参考文档",5574,"https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-documentation-writing\u002Freferences\u002Fcratis-site.md",[88,112,133,165,189,206],{"skillNo":89,"name":90,"nameZh":91,"description":92,"descriptionZh":93,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":47},"01M6BXWPJZ1W4FTAZ7N0B718XQ","vectorization",".NET SIMD 向量化代码","Designs, implements, optimizes, and reviews SIMD code in .NET: vectorizing scalar loops with TensorPrimitives, Vector64, Vector128, Vector256, Vector512, or hardware intrinsics, and reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. Use when a .NET loop or SIMD routine is being written or reviewed. Not for performance work unrelated to SIMD.","设计、实现、优化和审查 .NET 中的 SIMD 代码：使用 TensorPrimitives、Vector64、Vector128、Vector256、Vector512 或硬件内部函数将标量循环向量化，并审查现有 SIMD 代码（包括泛型 Vector 类型）的契约等价性、尾部处理、内存安全性、可移植性、回退方案和实测性能。当正在编写或审查 .NET 循环或 SIMD 例程时使用。不用于与 SIMD 无关的性能工作。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":101,"categoryName":102,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化",[90,104,105,106,107,108,109,110,111],"loop","Safety","simd","vector","code","performance","memory safety","memory",{"skillNo":113,"name":114,"nameZh":115,"description":116,"descriptionZh":117,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":125,"publishedAt":47},"01M6BXWKDP8VKEXE9WN5R8R1E0","target-authoring","MSBuild自定义目标编写","Canonical patterns for writing custom MSBuild targets: DependsOnTargets versus BeforeTargets and AfterTargets, the Build-to-CoreBuild three-level pattern, and the XxxDependsOn chain-extension pattern. Use when diagnosing or fixing custom-target anti-patterns: Directory.Build.targets redefining SDK targets, targets that replace CompileDependsOn instead of extending it, Outputs versus Returns misuse that returns stale results, missing Inputs\u002FOutputs causing needless rebuilds, or missing FileWrites registration. Not for incremental build tuning or general anti-pattern review (use the msbuild skill), or non-MSBuild build systems.","编写自定义 MSBuild target 的规范模式：DependsOnTargets 与 BeforeTargets、AfterTargets 的区别，Build-to-CoreBuild 三级模式，以及 XxxDependsOn 链式扩展模式。用于诊断或修复自定义 target 的反模式：Directory.Build.targets 重新定义 SDK target、target 替换而非扩展 CompileDependsOn、Outputs 与 Returns 误用导致返回过期结果、缺少 Inputs\u002FOutputs 导致不必要的重新构建，或缺少 FileWrites 注册。不适用于增量构建调优或一般反模式审查（使用 msbuild 技能），也不适用于非 MSBuild 构建系统。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FSKILL.md",[121,122],{"categoryNo":98,"categoryName":99,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":123,"categoryName":124,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[126,127,128,129,130,131,132,33],"target authoring","msbuild","tuning","incremental build","sdk","review","directory",{"skillNo":134,"name":135,"nameZh":136,"description":137,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":148,"publishedAt":47},"01M6BXWG0724RVJDEE4SQBEF8P","run-tests",".NET测试命令执行","Chooses and runs the repository-compatible .NET test command: classic, VSTest, bridged MTP, or native MTP syntax for MSTest, xUnit, NUnit, and TUnit. Use before running .NET tests or answering with a test command or flags: run the tests, one test, class, category, trait or target framework, combined filters, --filter-query, --no-build, --diag, TRX, coverage collection, crash or hang dumps, filter errors, or unrecognized options. Not for platform identification alone (use platform-detection), writing or debugging test code, interpreting a coverage report (use coverage-analysis), CI investigation, migration, or a persistent hot-reload loop.","选择并运行与仓库兼容的 .NET 测试命令：针对 MSTest、xUnit、NUnit 和 TUnit 的 classic、VSTest、bridged MTP 或 native MTP 语法。在运行 .NET 测试或需要给出测试命令\u002F标志时使用：运行全部测试、单个测试、测试类、类别、trait 或目标框架、组合筛选器、--filter-query、--no-build、--diag、TRX、覆盖率收集、崩溃或挂起转储、筛选错误或无法识别的选项。不适用于仅做平台识别（使用 platform-detection）、编写或调试测试代码、解读覆盖率报告（使用 coverage-analysis）、CI 调查、迁移或持续的热重载循环。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FSKILL.md",[142,145],{"categoryNo":143,"categoryName":144,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":146,"categoryName":147,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[149,150,151,152,153,154,155,156,108,157,158,159,160,33,161,162,163,104,164],"run tests","run","collection","detection","ci","repository","framework","report","debugging","mtp","mstest","test","analysis","xunit","nunit","investigation",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":171,"sourceHtmlUrl":172,"categories":173,"keywords":176,"publishedAt":47},"01M6BXWCTS8TECDKSYFJT9C445","profiling",".NET 性能剖析","Uses the free official .NET diagnostics CLI tools for profiling and runtime investigation in a repository: CPU, GC pressure, allocation growth, exception storms, lock contention, and slow code. Use when a .NET application needs performance or runtime profiling. Not for replacing realistic performance or load tests with ad-hoc tracing, production heap collection without a pause-risk plan, crash dumps (use dump-collect), or benchmark design (use microbenchmarking).","使用免费的官方 .NET 诊断 CLI 工具在代码仓库中进行性能剖析和运行时调查：CPU、GC 压力、分配增长、异常风暴、锁竞争和慢代码。当 .NET 应用程序需要性能或运行时剖析时使用。不适用于用临时跟踪替代真实的性能或负载测试、无暂停风险计划的生产堆内存采集、崩溃转储（使用 dump-collect），或基准测试设计（使用 microbenchmarking）。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FSKILL.md",[174,175],{"categoryNo":98,"categoryName":99,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":101,"categoryName":102,"taxonomyType":27,"taxonomyTypeDesc":28},[167,151,177,36,164,178,109,179,180,154,181,182,183,108,184,185,186,187,188],"microbenchmarking","Tools","risk","Production","collect","tracing","benchmark","diagnostics","official","first","cli","design",{"skillNo":190,"name":191,"nameZh":192,"description":193,"descriptionZh":194,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":195,"sourceHtmlUrl":196,"categories":197,"keywords":200,"publishedAt":47},"01M6BXW9N4G1NTMKNVBECTM2GM","platform-detection",".NET 测试平台识别","Identifies a .NET project's test platform, framework, command mode, and SDK-style versus classic project system, resolving global.json, project, packages.config, Directory.Build.props, and Directory.Packages.props precedence for MSTest, xUnit, NUnit, and TUnit. Use when asking \"which test platform or framework?\", \"VSTest or MTP?\", or \"what runner does this project use?\", including bridge settings, UseVSTest opt-outs, and conflicting VSTest\u002FMTP configuration. Not for running or filtering tests, commands, flags, TRX, dumps, or test-command errors (use run-tests), or for hot-reload or migration requests.","识别 .NET 项目的测试平台、框架、命令模式，以及 SDK 样式与经典项目系统，并解析 global.json、项目文件、packages.config、Directory.Build.props 和 Directory.Packages.props 对 MSTest、xUnit、NUnit 和 TUnit 的优先级。当询问“使用哪种测试平台或框架”“VSTest 还是 MTP”或“该项目使用什么测试运行器”时使用，包括桥接设置、UseVSTest 退出选项，以及 VSTest\u002FMTP 配置冲突。不适用于运行或筛选测试、命令、标志、TRX、转储或测试命令错误（使用 run-tests），也不适用于热重载或迁移请求。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FSKILL.md",[198,199],{"categoryNo":143,"categoryName":144,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":146,"categoryName":147,"taxonomyType":27,"taxonomyTypeDesc":28},[201,152,158,159,160,130,132,202,162,163,203,204,155,150,205],"platform detection","config","json","system","packages",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":212,"sourceHtmlUrl":213,"categories":214,"keywords":221,"publishedAt":47},"01M6BXW4VVFJH0WDPATWMFE9TY","orleans","Orleans 分布式系统设计","Designs Microsoft Orleans systems from each primitive's purpose and failure model: grains, digital twins, state versus databases, transactions, messaging, streams, timers, reminders, Durable Jobs, stateless workers, grain services, startup, and hosting. Use when a task needs an Orleans design decision: inspect version and topology, choose the primitive, implement, and validate. Not for other actor stacks, batch processing, relational-only CRUD, or advice without an Orleans decision.","从每种原语的用途和失效模型出发设计 Microsoft Orleans 系统：grain、数字孪生、状态与数据库、事务、消息传递、流（streams）、计时器（timers）、提醒（reminders）、Durable Jobs（持久作业）、无状态工作进程、grain 服务、启动与托管。当任务需要做出 Orleans 设计决策时使用：检查版本与拓扑、选择原语、实现并验证。不适用于其他 actor 技术栈、批处理、纯关系型 CRUD，或不涉及 Orleans 决策的建议。","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FSKILL.md",[215,218],{"categoryNo":216,"categoryName":217,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",{"categoryNo":219,"categoryName":220,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C535MHXGXDSGN98VJTMCSK","系统架构设计模式",[208,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,188],"startup","decision","choose","model","crud","transactions","services","topology","messaging","batch","state","reminders","validate","microsoft","implement"]