[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DNAWRT869GBSA925B9B510":3,"skill-same:01M7DNAWRT869GBSA925B9B510":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DNAWRT869GBSA925B9B510","cratis-specification-by-example",null,"Structure and name executable specifications the Cratis way — one behavior per specification, a for_\u002Fwhen_\u002Fand_ path that reads as an English sentence, layered given\u002F contexts, and an explicit decision about what is not worth specifying. Use when deciding how to organize, name, or scope specifications in any language. Do not use for language mechanics; route to the C# or TypeScript specification skill for those.","Cratis\u002FFundamentals.Go","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M7DN6YCMASAFGKYBBH3C1Z6E",0,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-specification-by-example\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-specification-by-example\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cratis-specification-by-example\ndescription: Structure and name executable specifications the Cratis way — one behavior per specification, a for_\u002Fwhen_\u002Fand_ path that reads as an English sentence, layered given\u002F contexts, and an explicit decision about what is not worth specifying. Use when deciding how to organize, name, or scope specifications in any language. Do not use for language mechanics; route to the C# or TypeScript specification skill for those.\nlicense: MIT\n---\n\u003C!-- cratis-ai-managed: skills\u002Fcratis-specification-by-example\u002FSKILL.md -->\n\n# Cratis specification by example\n\nCratis calls automated tests **specifications**. That is not a vocabulary\npreference — it changes what you write. A test asks \"does this code still do\nwhat it did yesterday?\". A specification states what the software promises, in\nthe language of the domain, in a form a machine can check. The folder tree is\nthe table of contents; the file names are the sentences; the assertions are the\npromises.\n\nThis skill is the language-agnostic layer. It settles the questions that are the\nsame in C#, TypeScript, and anything else: what to specify, how to name it,\nwhere to put it, and when to stop.\n\n## Verified product sources\n\n| Source | Version | What it grounds |\n| --- | --- | --- |\n| `Cratis.Specifications` analyzers | `CRSPEC0001`–`CRSPEC0007` | The naming and structure rules below are machine-enforced in C#, not taste |\n\nThe seven diagnostics are declared in `Cratis.Specifications.CodeAnalysis.DiagnosticIds`:\n\n| Id | Rule |\n| --- | --- |\n| `CRSPEC0001` | A test method inside a specification must be named `should_*` |\n| `CRSPEC0002` | A file declares at most one specification |\n| `CRSPEC0003` | A test method must not sit on a reusable `given\u002F` context |\n| `CRSPEC0004` | A `should_*` method without a test attribute never runs |\n| `CRSPEC0005` | A lifecycle method must not call its base implementation |\n| `CRSPEC0006` | A specification declaring test methods must be public so the runner finds it |\n| `CRSPEC0007` | The action under test must not sit on a reusable `given\u002F` context |\n\nIn a language without those analyzers the same rules hold; the reviewer enforces\nthem instead of the compiler. Reverify against the owning product repository\nbefore claiming behavior for another version.\n\nThe `Cratis.Synopsis.Tool` dotnet tool (verified) reads these\nnames statically, never running code, and writes one HTML or JSON behavior\ndocument from C#, TypeScript, Gherkin and Screenplay specifications:\n`dotnet tool install --global Cratis.Synopsis.Tool`, then `synopsis . --open`\n(or `synopsis . --format both --output Artifacts\u002Fsynopsis.html`). Good names are\nthe documentation it produces.\n\n## Route near misses\n\n- Writing the C# mechanics — the `Specification` base, `Establish`\u002F`Because`,\n  substitutes, assertions: use `cratis-specifications-csharp`.\n- Writing the TypeScript mechanics — `describe`\u002F`it`, Sinon, the Chai `should`\n  interface: use `cratis-specifications-typescript`.\n- Specifying an event-sourced application slice with the in-process scenario\n  family: use `cratis-application-slice-specifications`.\n- Deciding what a command, projection, reducer, or reactor *should do*: that is\n  a modeling question. Settle the behavior first; a specification records a\n  decision, it does not make one.\n- The scope is model-first (the behavior lives in `specification` blocks of the\n  model). Decide this with the decision rule in\n  `cratis-screenplay-modeling-lifecycle`: model-first only when an accepted\n  model under the model root covers this scope, or the repository is opted in\n  (opted in per `general.md` \"Model first\"; where `cratis-screenplay-modeling-lifecycle` is installed, run its `scripts\u002Fmodel-first-status.mjs`); framework, infrastructure, client, adapter and not-opted-in\n  brownfield work stays code-first. Opted in but no model for this scope: model\n  it first (`cratis-screenplay-discovery`, then `cratis-screenplay-slice-design`)\n  before writing specifications. If those Screenplay skills are not installed,\n  say so and stop; never author `.play` from memory. Never edit Stage-managed\n  output, and never change a model specification to match existing code. Write model specifications with\n  `cratis-screenplay-specifications`, decide coverage with\n  `cratis-screenplay-scenario-coverage`, and treat code specifications as\n  realizations of them (`cratis-application-slice-specifications`;\n  `cratis-application-slice-conformance` checks the two against each other).\n\n## Step 1 — State the behavior as a sentence\n\nBefore creating a file, say the specification out loud as one English sentence:\n\n> **for** the changeset, **when** adding changes, **and** there are differences,\n> it **should** record them.\n\nEvery clause becomes one level of the path. If the sentence does not survive\nbeing spoken, the specification is not focused enough yet — that is the signal\nto split it, not to write a longer name.\n\n## Step 2 — Build the path from the sentence\n\n```\nfor_\u003CSubjectUnderTest>\u002F\n├── given\u002F\n│   ├── all_dependencies            ← substitutes every collaborator\n│   └── a_\u003Csubject>                 ← builds the subject, layered on the above\n├── when_\u003Cbehavior>\u002F                ← a behavior with several outcomes\n│   ├── and_\u003Ccondition>\n│   ├── with_\u003Cstate>\n│   └── without_\u003Crequirement>\n└── when_\u003Csimple_behavior>          ← a single outcome is a single file\n```\n\n- **`for_\u003CSubject>`** names the thing being specified.\n- **`when_\u003Cbehavior>`** names the action. This is the only place the word\n  **`when`** may appear.\n- **Outcome names** use one of five prepositions: `and_`, `with_`, `without_`,\n  `having_`, `given_`.\n\n**Two `when`s in one path is always wrong.** A file named\n`with_a_registered_migration_when_appending_a_generation_1_event` is two\nsentences pretending to be one. Fold the context into the `when_` folder and let\nthe outcomes be flat files:\n\n```\n# Wrong\nwhen_appending_event_with_migrations\u002F\n└── with_a_registered_migration_when_appending_a_generation_1_event\n\n# Also wrong — a folder level that holds a single file\nwhen_appending_event_with_migrations\u002F\n└── and_event_is_generation_1\u002F\n    └── with_a_registered_migration\n\n# Correct\nwhen_appending_event_with_registered_migration\u002F\n├── and_event_is_generation_1\n├── and_event_is_generation_2\n└── and_event_has_default_value\n```\n\nAdd a sub-folder under `when_` only when that condition has its own several\noutcomes. One outcome is one flat file.\n\n## Step 3 — One behavior, one specification\n\nEach distinct outcome is its own file. When a specification fails you should\nknow from its name alone which promise broke, without reading the diff.\n\n- A file that specifies a whole class is not a specification; it is a test suite\n  wearing the name.\n- Assertions inside one file all describe the *same* outcome from different\n  angles. A second setup means a second file.\n- Optimize for readability over removing duplication. Repeating three lines of\n  setup so a specification is self-contained is a good trade; a shared helper\n  the reader must go and open is not.\n\n## Step 4 — Put the world in `given\u002F`, the action in the specification\n\nA context captures the world *before* the action. Layer them:\n`all_dependencies` substitutes the collaborators, `a_\u003Csubject>` builds the\nsubject on top of it, and the concrete specification adds only what is unique to\nits case.\n\n- Name a context `a_` or `an_` so it reads as \"given an observer, when\n  handling\".\n- **The action under test never appears in a context** (`CRSPEC0007`) and\n  **assertions never appear in a context** (`CRSPEC0003`). A context that acts is\n  a specification that several files silently share, and the failure it produces\n  names the wrong subject.\n- Contexts build in layers: `all_dependencies` → `a_reactor_handler` →\n  `when_handling`.\n\n## Step 5 — Decide what not to specify\n\nSpecify decisions, transformations, branching rules, and coordination between\ncollaborators — the places defects live. Leave alone:\n\n- Auto-properties and properties that return a constructor parameter.\n- Simple delegation that forwards to a collaborator and adds nothing.\n- Logging. It is fragile to specify and worth nothing when it passes.\n- Trivial null checks the type system already enforces.\n\nA name beginning `when_getting_` or `when_returning_` is the tell: that is a\ngetter, not a behavior. Delete it rather than maintaining it.\n\n## Step 6 — Make the outcome observable\n\nA specification is only as good as the signal it reads.\n\n- **Assert on the outcome by default.** A presentation string is copy;\n  it changes for reasons that have nothing to do with the behavior. Assert on\n  the identity of what failed — an error code, a constraint name, a typed\n  result — rather than the sentence shown to a user, unless exact wording is\n  the specified behavior.\n  - **In code (C#, TypeScript):** do not assert message strings by default;\n    assert exact text only when that wording is the specified behavior, and\n    name that behavior in the fact.\n  - **In a `.play` model:** a rejection specification pins the message, or\n    its localization key, with `then error \"\u003Cmessage>\"` or\n    `then error \"$strings.\u003Ckey>\"`, because the model has no reason codes. Bare\n    `then error` leaves the reason to the specification's name. The code\n    specification pins the kind by default; assert the model's exact message\n    too only when its wording is\n    the specified behavior, and name that behavior in the fact.\n\n```screenplay\nconcept InvoiceId : Uuid\nconcept InvoiceNumber : String\nmodule Invoicing\n  feature Registration\n    slice StateChange RegisterInvoice\n      command RegisterInvoice\n        invoiceId     InvoiceId identifier\n        invoiceNumber InvoiceNumber\n        validate\n          invoiceNumber not empty message \"Invoice number is required\"\n        produces event InvoiceRegistered\n          invoiceNumber InvoiceNumber = invoiceNumber\n      specification RejectingAnEmptyInvoiceNumber\n        when RegisterInvoice\n          invoiceId     = \"9c858901-8a57-4791-81fe-4c455b099bc9\"\n          invoiceNumber = \"\"\n        then error \"Invoice number is required\"\n```\n- **Never wait on the clock.** A sleep before an assertion passes because the\n  machine happened to be fast, and writes today's latency into the suite. Await\n  a completion signal, under a deadline. A timeout turns a hang into a named\n  failure; a sleep turns a race into a coin flip.\n- **Nothing ambient.** The real clock, a random value, the network, shared\n  storage, or an ambient culture makes the outcome depend on something the\n  specification never stated. Inject it.\n- **A specification that cannot fail proves nothing.** If you cannot describe\n  the change that would make it red, it is not specifying anything yet.\n\n## Step 7 — Say what the specification did not cover\n\nFinishing a behavior means naming its unspecified edges, not claiming the\nbehavior is proven. A suite that lists only what passed reads as if everything\nwas checked. Record the cases you deliberately left out and why — an untested\nedge someone chose is a different thing from one nobody saw.\n\n## Verify\n\n- Every path reads as one English sentence, and `when` appears only in a\n  `when_\u003Cbehavior>` folder name.\n- Every outcome file name starts with `and_`, `with_`, `without_`, `having_`, or\n  `given_`.\n- One specification per file; one outcome per specification.\n- No action and no assertion sits on a `given\u002F` context.\n- Nothing trivial, delegated, or compiler-verified is specified.\n- Code assertions do not pin presentation messages by default. Exact wording\n  is asserted only when it is the specified behavior, named in the fact; a\n  `.play` rejection pins its message or key deliberately.\n- No sleep, bare delay, or poll loop stands in for a completion signal.\n- The suite runs green, and the report names what was not covered.\n","\u003C!-- cratis-ai-managed: skills\u002Fcratis-specification-by-example\u002FSKILL.md -->\n\n# Cratis specification by example\n\nCratis calls automated tests **specifications**. That is not a vocabulary\npreference — it changes what you write. A test asks \"does this code still do\nwhat it did yesterday?\". A specification states what the software promises, in\nthe language of the domain, in a form a machine can check. The folder tree is\nthe table of contents; the file names are the sentences; the assertions are the\npromises.\n\nThis skill is the language-agnostic layer. It settles the questions that are the\nsame in C#, TypeScript, and anything else: what to specify, how to name it,\nwhere to put it, and when to stop.\n\n## Verified product sources\n\n| Source | Version | What it grounds |\n| --- | --- | --- |\n| `Cratis.Specifications` analyzers | `CRSPEC0001`–`CRSPEC0007` | The naming and structure rules below are machine-enforced in C#, not taste |\n\nThe seven diagnostics are declared in `Cratis.Specifications.CodeAnalysis.DiagnosticIds`:\n\n| Id | Rule |\n| --- | --- |\n| `CRSPEC0001` | A test method inside a specification must be named `should_*` |\n| `CRSPEC0002` | A file declares at most one specification |\n| `CRSPEC0003` | A test method must not sit on a reusable `given\u002F` context |\n| `CRSPEC0004` | A `should_*` method without a test attribute never runs |\n| `CRSPEC0005` | A lifecycle method must not call its base implementation |\n| `CRSPEC0006` | A specification declaring test methods must be public so the runner finds it |\n| `CRSPEC0007` | The action under test must not sit on a reusable `given\u002F` context |\n\nIn a language without those analyzers the same rules hold; the reviewer enforces\nthem instead of the compiler. Reverify against the owning product repository\nbefore claiming behavior for another version.\n\nThe `Cratis.Synopsis.Tool` dotnet tool (verified) reads these\nnames statically, never running code, and writes one HTML or JSON behavior\ndocument from C#, TypeScript, Gherkin and Screenplay specifications:\n`dotnet tool install --global Cratis.Synopsis.Tool`, then `synopsis . --open`\n(or `synopsis . --format both --output Artifacts\u002Fsynopsis.html`). Good names are\nthe documentation it produces.\n\n## Route near misses\n\n- Writing the C# mechanics — the `Specification` base, `Establish`\u002F`Because`,\n  substitutes, assertions: use `cratis-specifications-csharp`.\n- Writing the TypeScript mechanics — `describe`\u002F`it`, Sinon, the Chai `should`\n  interface: use `cratis-specifications-typescript`.\n- Specifying an event-sourced application slice with the in-process scenario\n  family: use `cratis-application-slice-specifications`.\n- Deciding what a command, projection, reducer, or reactor *should do*: that is\n  a modeling question. Settle the behavior first; a specification records a\n  decision, it does not make one.\n- The scope is model-first (the behavior lives in `specification` blocks of the\n  model). Decide this with the decision rule in\n  `cratis-screenplay-modeling-lifecycle`: model-first only when an accepted\n  model under the model root covers this scope, or the repository is opted in\n  (opted in per `general.md` \"Model first\"; where `cratis-screenplay-modeling-lifecycle` is installed, run its `scripts\u002Fmodel-first-status.mjs`); framework, infrastructure, client, adapter and not-opted-in\n  brownfield work stays code-first. Opted in but no model for this scope: model\n  it first (`cratis-screenplay-discovery`, then `cratis-screenplay-slice-design`)\n  before writing specifications. If those Screenplay skills are not installed,\n  say so and stop; never author `.play` from memory. Never edit Stage-managed\n  output, and never change a model specification to match existing code. Write model specifications with\n  `cratis-screenplay-specifications`, decide coverage with\n  `cratis-screenplay-scenario-coverage`, and treat code specifications as\n  realizations of them (`cratis-application-slice-specifications`;\n  `cratis-application-slice-conformance` checks the two against each other).\n\n## Step 1 — State the behavior as a sentence\n\nBefore creating a file, say the specification out loud as one English sentence:\n\n> **for** the changeset, **when** adding changes, **and** there are differences,\n> it **should** record them.\n\nEvery clause becomes one level of the path. If the sentence does not survive\nbeing spoken, the specification is not focused enough yet — that is the signal\nto split it, not to write a longer name.\n\n## Step 2 — Build the path from the sentence\n\n```\nfor_\u003CSubjectUnderTest>\u002F\n├── given\u002F\n│   ├── all_dependencies            ← substitutes every collaborator\n│   └── a_\u003Csubject>                 ← builds the subject, layered on the above\n├── when_\u003Cbehavior>\u002F                ← a behavior with several outcomes\n│   ├── and_\u003Ccondition>\n│   ├── with_\u003Cstate>\n│   └── without_\u003Crequirement>\n└── when_\u003Csimple_behavior>          ← a single outcome is a single file\n```\n\n- **`for_\u003CSubject>`** names the thing being specified.\n- **`when_\u003Cbehavior>`** names the action. This is the only place the word\n  **`when`** may appear.\n- **Outcome names** use one of five prepositions: `and_`, `with_`, `without_`,\n  `having_`, `given_`.\n\n**Two `when`s in one path is always wrong.** A file named\n`with_a_registered_migration_when_appending_a_generation_1_event` is two\nsentences pretending to be one. Fold the context into the `when_` folder and let\nthe outcomes be flat files:\n\n```\n# Wrong\nwhen_appending_event_with_migrations\u002F\n└── with_a_registered_migration_when_appending_a_generation_1_event\n\n# Also wrong — a folder level that holds a single file\nwhen_appending_event_with_migrations\u002F\n└── and_event_is_generation_1\u002F\n    └── with_a_registered_migration\n\n# Correct\nwhen_appending_event_with_registered_migration\u002F\n├── and_event_is_generation_1\n├── and_event_is_generation_2\n└── and_event_has_default_value\n```\n\nAdd a sub-folder under `when_` only when that condition has its own several\noutcomes. One outcome is one flat file.\n\n## Step 3 — One behavior, one specification\n\nEach distinct outcome is its own file. When a specification fails you should\nknow from its name alone which promise broke, without reading the diff.\n\n- A file that specifies a whole class is not a specification; it is a test suite\n  wearing the name.\n- Assertions inside one file all describe the *same* outcome from different\n  angles. A second setup means a second file.\n- Optimize for readability over removing duplication. Repeating three lines of\n  setup so a specification is self-contained is a good trade; a shared helper\n  the reader must go and open is not.\n\n## Step 4 — Put the world in `given\u002F`, the action in the specification\n\nA context captures the world *before* the action. Layer them:\n`all_dependencies` substitutes the collaborators, `a_\u003Csubject>` builds the\nsubject on top of it, and the concrete specification adds only what is unique to\nits case.\n\n- Name a context `a_` or `an_` so it reads as \"given an observer, when\n  handling\".\n- **The action under test never appears in a context** (`CRSPEC0007`) and\n  **assertions never appear in a context** (`CRSPEC0003`). A context that acts is\n  a specification that several files silently share, and the failure it produces\n  names the wrong subject.\n- Contexts build in layers: `all_dependencies` → `a_reactor_handler` →\n  `when_handling`.\n\n## Step 5 — Decide what not to specify\n\nSpecify decisions, transformations, branching rules, and coordination between\ncollaborators — the places defects live. Leave alone:\n\n- Auto-properties and properties that return a constructor parameter.\n- Simple delegation that forwards to a collaborator and adds nothing.\n- Logging. It is fragile to specify and worth nothing when it passes.\n- Trivial null checks the type system already enforces.\n\nA name beginning `when_getting_` or `when_returning_` is the tell: that is a\ngetter, not a behavior. Delete it rather than maintaining it.\n\n## Step 6 — Make the outcome observable\n\nA specification is only as good as the signal it reads.\n\n- **Assert on the outcome by default.** A presentation string is copy;\n  it changes for reasons that have nothing to do with the behavior. Assert on\n  the identity of what failed — an error code, a constraint name, a typed\n  result — rather than the sentence shown to a user, unless exact wording is\n  the specified behavior.\n  - **In code (C#, TypeScript):** do not assert message strings by default;\n    assert exact text only when that wording is the specified behavior, and\n    name that behavior in the fact.\n  - **In a `.play` model:** a rejection specification pins the message, or\n    its localization key, with `then error \"\u003Cmessage>\"` or\n    `then error \"$strings.\u003Ckey>\"`, because the model has no reason codes. Bare\n    `then error` leaves the reason to the specification's name. The code\n    specification pins the kind by default; assert the model's exact message\n    too only when its wording is\n    the specified behavior, and name that behavior in the fact.\n\n```screenplay\nconcept InvoiceId : Uuid\nconcept InvoiceNumber : String\nmodule Invoicing\n  feature Registration\n    slice StateChange RegisterInvoice\n      command RegisterInvoice\n        invoiceId     InvoiceId identifier\n        invoiceNumber InvoiceNumber\n        validate\n          invoiceNumber not empty message \"Invoice number is required\"\n        produces event InvoiceRegistered\n          invoiceNumber InvoiceNumber = invoiceNumber\n      specification RejectingAnEmptyInvoiceNumber\n        when RegisterInvoice\n          invoiceId     = \"9c858901-8a57-4791-81fe-4c455b099bc9\"\n          invoiceNumber = \"\"\n        then error \"Invoice number is required\"\n```\n- **Never wait on the clock.** A sleep before an assertion passes because the\n  machine happened to be fast, and writes today's latency into the suite. Await\n  a completion signal, under a deadline. A timeout turns a hang into a named\n  failure; a sleep turns a race into a coin flip.\n- **Nothing ambient.** The real clock, a random value, the network, shared\n  storage, or an ambient culture makes the outcome depend on something the\n  specification never stated. Inject it.\n- **A specification that cannot fail proves nothing.** If you cannot describe\n  the change that would make it red, it is not specifying anything yet.\n\n## Step 7 — Say what the specification did not cover\n\nFinishing a behavior means naming its unspecified edges, not claiming the\nbehavior is proven. A suite that lists only what passed reads as if everything\nwas checked. Record the cases you deliberately left out and why — an untested\nedge someone chose is a different thing from one nobody saw.\n\n## Verify\n\n- Every path reads as one English sentence, and `when` appears only in a\n  `when_\u003Cbehavior>` folder name.\n- Every outcome file name starts with `and_`, `with_`, `without_`, `having_`, or\n  `given_`.\n- One specification per file; one outcome per specification.\n- No action and no assertion sits on a `given\u002F` context.\n- Nothing trivial, delegated, or compiler-verified is specified.\n- Code assertions do not pin presentation messages by default. Exact wording\n  is asserted only when it is the specified behavior, named in the fact; a\n  `.play` rejection pins its message or key deliberately.\n- No sleep, bare delay, or poll loop stands in for a completion signal.\n- The suite runs green, and the report names what was not covered.\n",{"name":5,"license":14,"description":7},"main","45728854e223fd51b203724ca0e5be9c8f93a5a4",".cratis\u002Fai\u002Fskills\u002Fcratis-specification-by-example","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go","https:\u002F\u002Fwww.cratis.io\u002Ffundamentals\u002Fgo\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:52:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cratis\u002FFundamentals.Go --skill cratis-specification-by-example",{"tool":39,"command":40},"bunx","bunx skills add Cratis\u002FFundamentals.Go --skill cratis-specification-by-example",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cratis\u002FFundamentals.Go --skill cratis-specification-by-example","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-specification-by-example\u002FSKILL.md",true,[47],{"path":48,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":15},"LICENSE","许可证",210,[52,60,68,76,85,92],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":56,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7DNCY3BCGY3MC5BFJ9S59BF","spf13-go","Review Go library APIs, package boundaries, tests, iterators and standard-library choices. Load for broad design or idiom reviews after the repository-owned Go skills.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7DNCSQQH7GQ03ZETFX9XHAS","samber-golang-error-handling","Review Go error creation, wrapping, inspection and logging boundaries. Load when changing caller-visible failures after go-errors-and-context.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-error-handling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-error-handling\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DNCM4ZC15SSDA5FAAHN5S0","samber-golang-context","Design Go context propagation, cancellation, deadlines and request metadata. Load for operation-lifetime changes or context-related leaks after go-errors-and-context.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-context\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DNCGNSMHK640AK1R3J0CPD","jetbrains-go-modern-guidelines","Choose version-compatible modern Go syntax and standard-library APIs. Load when modernizing touched Go code after reading go.mod and build constraints.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fjetbrains-go-modern-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fjetbrains-go-modern-guidelines\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DNCBYSD6FPAPWM6PPSJR96","go-testing","Write and review Go unit, contract, transport, race, fuzz, and deterministic concurrency tests. Use for new behavior, bug fixes, flaky tests, and public API parity evidence.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fgo-testing\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DNC7ES2RD6WGKC94KMMXTD","go-release-modules","Review Go module dependencies, minimum versions, compatibility, semantic labels, release-action tags, and proxy discoverability. Use for release preparation, retractions, and major-version migration planning.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fgo-release-modules\u002FSKILL.md",[],[]]