[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78C5ADMFA88AMHR081QQ7JY":3,"skill-same:01M78C5ADMFA88AMHR081QQ7JY":117},{"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},"01M78C5ADMFA88AMHR081QQ7JY","cratis-screenplay-command-surface",null,"Write the write side of a Cratis Screenplay `.play` model — the `command` block and its `identifier`, `reads`, `validate`, `authorize`, `produces`, `handler` and `concurrency` clauses, plus `event`, `constraint`, `policy`, `persona`, `concept`, `type` and `seed`. Use when declaring or changing a command, an event shape, a validation or authorization rule, an append-time constraint, or a strongly-typed value in Screenplay. Do not use for projections, queries, screens, captures or reactions.","Cratis\u002FPrologue","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M78C1YXTSPZGP4G1K2ZM6J1N",0,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cratis-screenplay-command-surface\ndescription: Write the write side of a Cratis Screenplay `.play` model — the `command` block and its `identifier`, `reads`, `validate`, `authorize`, `produces`, `handler` and `concurrency` clauses, plus `event`, `constraint`, `policy`, `persona`, `concept`, `type` and `seed`. Use when declaring or changing a command, an event shape, a validation or authorization rule, an append-time constraint, or a strongly-typed value in Screenplay. Do not use for projections, queries, screens, captures or reactions.\nlicense: MIT\n---\n\u003C!-- cratis-ai-managed: skills\u002Fcratis-screenplay-command-surface\u002FSKILL.md -->\n\n# The Screenplay write surface\n\nRead [preferred syntax](..\u002Fcratis-screenplay-toolchain\u002Freferences\u002Fpreferred-syntax.md) when writing or reviewing `.play`.\n\nEverything that changes the system: the `command` that expresses intent, the\n`event` it appends, the rules that can refuse it, and the strongly-typed values\nthey are all built from.\n\n## Locate the model\n\nLook first for the project's existing `.play` files: their folder is the model.\nFor a new model, check `Source\u002F` or `src\u002F`, else use `Screenplay\u002F` at the repository\nroot. Never put a model under `.cratis\u002F` or hand-copy it between repositories.\n`cratis ai install` manages `.cratis\u002Fai\u002F`, never model files. Keep explanatory\nMarkdown in project documentation; `.play` is the single flow model.\n\n## Product sources\n\nTool versions: toolchain `SKILL.md`; sources below. Compilation is not execution.\n\n- Examples and executable boundaries; inline events, repairs, canonical `optional`.\n- `handler`, code attachments, `persona` and compliance binding (`Semantics\u002FSemanticModelBinder*.cs`, `Diagnostics\u002FDiagnosticCodes.cs`).\n- Generated-value and response rules (ESM v7).\n- Identity and compliance syntax (`identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`, `diagnostics.md`); v13 compliance admission: `references\u002Fcompliance.md`.\n- v15 generation strategies, strict fixtures and freshness; Stage realization: `references\u002Fgenerated-values-and-responses.md`; shop: `references\u002Fshop-generation.md`.\n\n\"Parses\" and \"runs\" are different claims. The executable profile, and what\neach construct binds to, is in the `cratis-screenplay-model-authoring` language\nreference.\n\n## `concept` and `type`\n\n```screenplay\nconcept InvoiceId : Uuid\nconcept DiscountPercentage : Decimal\n  validate\n    >= 0    message \"A discount cannot be negative\"\n    \u003C= 100  message \"A discount cannot exceed 100 percent\"\nconcept PersonName : String pii\n  pii reason \"Identifies the billing contact.\"\nconcept InvoiceStatus : Enum\n  draft\n  sent\n  paid\n```\n\nPrimitives: `Uuid`, `String`, `Int`, `Decimal`, `Bool`, `Date`, `DateTime`.\n`Enum` is a separate concept kind; details: `references\u002Fenum-numbers.md`.\nUse bare `pii` (`personal` alias) and `secret` on concepts; **Compliance is inherited**.\nKeep protection even when a compiler or renderer refuses it. Read\n[compliance and purposes](references\u002Fcompliance.md) for ESM v13, binder-only refusals,\nconsumer ceilings, marker repairs, reasons, scopes and provider limits.\n\n**Identifiers cannot be personal data or secrets.** PLAY0515 is a source error\nfor command identifiers, typed `for` destinations, event-source identities,\nscalar\u002Fcomposite stream-id types and nested route mapping sources, including legacy\nmarkers. Keep a surrogate identity and carry protected data in the payload.\nChronicle likewise rejects `[PII]`\u002F`[Encrypted]` identifiers (CHR0034\u002FCHR0052).\n\nRead [enum numbers](references\u002Fenum-numbers.md) for `draft = 1`, unique int32\nall-or-none pins, stored\u002Fpublic identity safety, `enum-pinning`, ESM v12 and the\nCLI\u002FStage gap. Unnumbered enums keep positions; specifications use names.\n\n⚠️ **Enum trap.** A value literally named `validate` is read as an empty validate\nblock. Write `@validate` for the value; the compiler warns when it sees the\nambiguity.\n\nUse `type \u003CName>` for a composite shape (several properties) that events and\ncommands reference; use `concept` for a single wrapped primitive.\n\n## The command block\n\nExcerpt: the concepts, `InvoiceLine`, policy and shared event are declared elsewhere.\nFor a command-owned event, use the complete inline example in [inline events](references\u002Finline-events.md).\n\n```screenplay excerpt\ncommand RegisterInvoice\n  description \"Registers a new invoice with its lines and payment terms\"\n  invoiceId      InvoiceId identifier\n  invoiceNumber  InvoiceNumber\n  lines          InvoiceLine[]\n  note           String optional\n  authorize CanManageInvoice\n  validate\n    invoiceNumber not empty                 message \"Invoice number is required\"\n    invoiceNumber matches \"^INV-[0-9]{6}$\"  severity warning message \"Must look like INV-000000\"\n  produces InvoiceRegistered\n    for invoiceId\n    registeredAt = $context.occurred\n```\n\nType modifiers: `\u003CType>[]` for a collection, `\u003CType> optional` for absence.\n`Type[] optional` makes the whole collection optional, not its items. Legacy\n`Type?` still parses with information `PLAY0479`; use its repair or editor quick\nfix to migrate. `--warnaserror` does not reject information diagnostics.\n`reads X optional` is not supported yet.\n\n⚠️ **The parser enforces no clause order.** The house order is description,\nproperties, `reads`, `authorize`, `validate`, `produces`\u002F`handler`, `concurrency`.\nKeep to it.\n\nA file\u002Fcode `handler` cannot coexist with `produces` and fails binding\nwith PLAY0800 (`CommandHandlerRequiresAttachment`): gap-fill the slice in code\nwith a constrained implementation attachment, not by waiting for a new ESM version.\nRead the required typed `subject` argument for the command, never parse the message.\nRequires Screenplay 4.210.0 (`screenplay --version`) for PLAY0800; older binders use PLAY0268 for this refusal. A pending `handler implementation` beside unconditional `produces`\nis a described command (ESM v23): the body owns payload values only. Prefer plain\n`produces` for declarative logic. Read [described handlers](references\u002Fdescribed-handlers.md)\nwhen logic needs prose, for the result contract, PLAY0695–0698, Unsupported\nImplementationBody and Stage's STAGE-IMPL-002 refusal (no stubs, even in Stub mode).\n\n## `identifier` — the stream boundary decision\n\nAt most one command property may carry `identifier`. It names the value the\nruntime uses as the event source id, so **choosing it is choosing the stream\nboundary** — the highest-consequence decision in the slice. Leave it out only\nwhen the runtime should allocate a fresh `Uuid` (a command that creates\nsomething whose identity the caller does not supply).\n\n- A second `identifier` on the same command is an error: *only one property can be\n  the identifier*.\n- `identifier` on an **event** property is an error: *an event never carries its\n  event source id*. It travels in the event context.\n\n## `reads` — state the command decides against\n\nExcerpt: the `Account` read model, its projection and its keyed query are\ndeclared elsewhere.\n\n```screenplay excerpt\ncommand TransferFunds\n  sourceId      AccountId\n  destinationId AccountId\n  amount        Decimal\n  reads Account as source by sourceId\n  reads Account as destination by destinationId\n  validate\n    require source.balance >= amount\n      message \"The source account does not cover the transfer\"\n```\n\n`by \u003Cproperty>` names the command property the read model is looked up by.\n`as \u003Calias>` names one read: a command that reads a view more than once needs an\nalias on **every** read (`PLAY0410`), aliases are unique (`PLAY0411`) and must not\nmatch a command property (`PLAY0412`). A `require` path uses the alias, or the\nview name when that view is read once.\n\nOpt eligible state reads into application-root `command reads protected` (v25).\nAbsence rejects; matching intervening facts conflict. Read [protected reads](references\u002Fprotected-reads.md)\nfor strict admission, paths and PLAY0780–0786. Legacy reads stay unprotected;\nreads\u002Fconcurrency cannot combine (PLAY0783). Semantic Host\u002Fexecutor support is separate.\nRequires Stage 4.138.0 to render protected reads as Arc read protection (shapes it cannot preserve stay STAGE-ESM-044); `cratis render` gets it from the first CLI that bundles it, and CLI 3.75.0 refuses every protected read with STAGE-ESM-044.\nUniqueness still uses a constraint; reference success is not target realization.\n\nDo not use `reads` to fetch data the caller could supply. A composite-key view's `by` block in a\ncommand read is `PLAY0271`, or `PLAY0781` reason `by-parts` under `command reads protected`\n(read-surface `references\u002Fnamed-keys.md`).\n\n## `validate`\n\nEach rule takes an optional `severity information|warning|error` and then an\noptional `message \"\u003Ctext>\"` (or `$strings.\u003Ckey>`). The default severity is `error`.\n\nThe rule vocabulary (`not empty`, `min`\u002F`max`, comparisons, `length`, literal text rules, `matches`, `all`, `rule \u003CName>`) is in\n[references\u002Fvalidate-rules.md](references\u002Fvalidate-rules.md): read it when choosing or writing a rule form.\nRead [text and match rules](references\u002Ftext-and-match-rules.md) for ordinal `contains`,\n`not contains`, `starts with`, `ends with` (v24), the portable linear match dialect,\nPLAY0699\u002F0787, Studio repairs and public pattern checks. Text rules are not conditions.\n\n⚠️ **Validation severity is not compiler severity.** Every failed rule and\n`require` rejects the command, at `information` and `warning` too; severity only\ntells the UI how to present the failure.\n\n**Whole-command rules** use `require \u003Ccondition>` with an indented `message` and\noptional `severity`, sharing the condition grammar with `produces … when`:\n`and` binds tighter than `or`, parentheses group. A conditional rule is an\nimplication: `require isExtension == false or newEndDate > endDate`.\n\nRequires Screenplay 4.199.0 (ESM v26; `screenplay --version`) for Date\u002FDateTime\ncomparisons; older binders report PLAY0268. Read [date comparisons](references\u002Fdate-comparisons.md)\nwhen ordering a retention window with `require to >= from`, comparing instants\nacross offsets, or rejecting offset-less inputs before rules. It covers admitted\npositions, PLAY0268\u002F0273, ordinal `then` matching and Stage's STAGE-ESM-046 renderer refusal.\n\nRequires Screenplay 4.205.0 (ESM v28; `screenplay --version`) for `==`\u002F`!=` between Uuid\nvalues (properties, concepts, identities, canonical literals, and read paths in `require`);\nolder binders report PLAY0268. Read [Uuid equality](references\u002Fuuid-equality.md) for the same-concept\nrule, PLAY0268\u002F0273 and the refused shapes (ordering, Uuid validation rules, Uuid concept rules).\n\n**Rules whose logic is code.** A bare `rule \u003CName>` has no portable meaning (`PLAY0268`) and a bodied rule binds only as\nopaque code. Read [references\u002Fvalidate-rules.md](references\u002Fvalidate-rules.md) when a rule's logic must live in a `file`\nor fenced code body.\n\n**Put format rules on the `concept`, not the command** (except date comparisons,\nwhich bind only on command properties, not as concept rules). A concept carries its own\n`validate` block and every use inherits it — that is Screenplay's type system, and\na rule that travels is worth more than one that is repeated.\n\n## `authorize`\n\nExcerpt: the policies are declared at the top of the model.\n\n```screenplay excerpt\nauthorize IsAccountant\n          or IsCustomerSelf\n\nauthorize (IsAccountant or IsFinance) and OwnsInvoice\n```\n\nPolicy names are PascalCase. `and` binds tighter than `or`; parentheses group.\nA continuation line extends the clause.\n\n⚠️ **Two adjacent policies synthesize an implicit `and`.** `authorize A B` means\n`A and B`. Write the operator explicitly so the reader does not have to know this.\n\n- Several `authorize` lines on one command or query combine with AND, in authored\n  order.\n- `authorize` on an enclosing `module` or `feature` is ANDed with the command's\n  own gate; an `or` inside one gate never bypasses another gate.\n- Evaluation short-circuits left to right, module → feature → command. If it\n  reaches a policy implemented in code, the reference runner reports the outcome\n  unsupported; it never guesses allow or deny.\n\n## Inline events and destinations\n\nPrefer inline `produces event \u003CName>` for an event owned by one command: `for`\ndefaults to its identifier; never copy that identifier into payload. For events\nshared by commands or reactions, declare `event` separately and use plain\n`produces \u003CName>` with explicit `for \u003Cidentifier>` on commands. Reactions cannot\ndeclare inline events. Rendered Arc commands ignore `for` (Stage#187).\nRead [references\u002Finline-events.md](references\u002Finline-events.md) when declaring an event inline in `produces event`,\nchoosing or omitting `for` on a production, or fixing `PLAY0469`-`PLAY0478`.\n\n## `produces`\n\nMapping sources that bind: a command property, a literal, `$context.occurred` and `$identity.*`; `for` must name the command `identifier` (`PLAY0273`); several unconditional `produces` are co-production. Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) when writing mappings, `tag`, or `produces when`.\n\n## Routes and external operations\n\nCommands never produce public events; external work stays unadmitted (`PLAY0268`). Read [references\u002Froutes-and-external-operations.md](references\u002Froutes-and-external-operations.md) when choosing routes, `stream` overrides, public or foreign events, or `system`\u002F`uses`\u002F`operation` declarations (see also [operation intent](references\u002Foperations.md)).\n\n## `concurrency`\n\nOne `concurrency` block per command; it is not bound (`PLAY0271`) and does not protect a `reads` decision. Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) for the dimensions.\n\n## Generated values and responses (ESM v7 and v15)\n\nUUID generation\u002Fresponses bind as v7; serialized concept `generate` selects v15:\nUUIDv7\u002FULID\u002FTypeID\u002FNanoID\u002Fbytes, strict fixtures and whole-source freshness.\nReuse rejects Concurrency, no append\u002Fretry. Rules select v20 (Requires Screenplay\n4.164.0, `screenplay --version`); pattern\u002Fchecksum, Int random and attached rules\nselect v21 (Requires 4.172.0). Older compilers refuse PLAY0268. Secrets and sequences\nremain refused. Patterns are readable references, not gapless allocators or secrets;\ncheck digits catch typos, not forgery. Keep uniqueness\u002Ffreshness enforcement.\nRead [references\u002Fgenerated-values-and-responses.md](references\u002Fgenerated-values-and-responses.md)\nfor `generated`, `generate`, `returns`, strict fixtures\u002Ffreshness and renderer limits.\n\nRequires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies (ESM v15), 4.150.0 or later for the stored stream `All` refusal, 4.141.0 or later for compliance (ESM v13) and 4.139.0 or later for non-positional enum numbers (ESM v12).\nComplete example: `cratis-screenplay-toolchain\u002Freferences\u002Fgenerated-responses-example.md`.\nRoutes and realization: `cratis-screenplay-toolchain\u002Freferences\u002Fsources-and-streams.md`.\n\n## `constraint` — uniqueness at append time\n\nChronicle's constraints enforce **uniqueness only**; use one when two concurrent appends must not both win. Do not use `constraint … file \u003CPath>` for other rules (`PLAY0396`). Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) when writing a `unique` constraint, `released by`, or `unique event`.\n\n## `policy` and `persona`\n\nA policy has **exactly one** `require` line (`PLAY0441`) **or** one implementation, never both (`PLAY0440`). Read [references\u002Fpolicy-persona-seed.md](references\u002Fpolicy-persona-seed.md) when\ndeclaring a policy (including `require anonymous` for a deliberately public command or query), a persona, or a `seed` block.\n\n## Event data subject\n\nA trailing `subject` on an event property is report-only (`PLAY0270`); see [compliance](references\u002Fcompliance.md#event-data-subject).\n\n## `$context` and `$identity`\n\nFour contexts, and **what each omits is load-bearing** — when writing a code body or a context\u002Fexpression mapping, read\n[context.md](references\u002Fcontext.md) for the full member lists, the declarative\n`$context.` paths, and `$causedBy` \u002F `$env` \u002F `$strings`.\n\n| Context | For | Deliberately omits |\n| --- | --- | --- |\n| Command | a command handler | — |\n| Query | a query performer | — |\n| Rule | a validation rule | **`Identity`** — validation does not see roles or claims |\n| Policy | an authorization policy | **`CausedBy`, `Causation`** |\n\n## Verify\n\n- [ ] Validate the complete model root with warnings as errors; name the tool,\n      version and result. Tool versions: toolchain `SKILL.md`;\n      bundle compatibility and execution are separate checks.\n- [ ] No unintended `PLAY0478` or `PLAY0479` information remains.\n- [ ] At most one command property carries `identifier`, and no event property does.\n- [ ] Format rules live on the `concept` except command-only date comparisons;\n      state-dependent rules are specifications. DateTime comparisons preserve UTC\n      ticks; specs include missing-offset Validation rejection.\n- [ ] Every `authorize` combining policies writes `and`\u002F`or` explicitly.\n- [ ] Protected reads opt in, meet admission and distinguish reference protection\n      from target realization; legacy reads and `concurrency` imply no protection.\n- [ ] Constraints are `unique` forms; no `file` constraint stands in for another rule.\n- [ ] Each policy has one `require` or one implementation, not both.\n- [ ] Personal data is `pii` on the concept; operational secrets are `secret`;\n      no identifier or subject concept carries either. Reasons explain the value,\n      while purposes declare basis\u002Fretention; run `--check purposes` separately.\n- [ ] Described handlers distinguish binding from Unsupported body execution and\n      Stage refusal; attached handlers remain unbound. Name the admitting tool.\n- [ ] No event carries an optional property covering two situations.\n\nCompiler versions and admission: `cratis-screenplay-toolchain\u002FSKILL.md`.\nMethod: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.\n\n## Route near misses\n\n- Deciding *which* commands and events exist: `cratis-screenplay-event-modeling`.\n- Building read models from these events: `cratis-screenplay-projections`.\n- Pinning the rejections and denials: `cratis-screenplay-specifications`.\n- The parsed\u002Fbound\u002Fexecuted boundary: `cratis-screenplay-model-authoring`.\n","\u003C!-- cratis-ai-managed: skills\u002Fcratis-screenplay-command-surface\u002FSKILL.md -->\n\n# The Screenplay write surface\n\nRead [preferred syntax](..\u002Fcratis-screenplay-toolchain\u002Freferences\u002Fpreferred-syntax.md) when writing or reviewing `.play`.\n\nEverything that changes the system: the `command` that expresses intent, the\n`event` it appends, the rules that can refuse it, and the strongly-typed values\nthey are all built from.\n\n## Locate the model\n\nLook first for the project's existing `.play` files: their folder is the model.\nFor a new model, check `Source\u002F` or `src\u002F`, else use `Screenplay\u002F` at the repository\nroot. Never put a model under `.cratis\u002F` or hand-copy it between repositories.\n`cratis ai install` manages `.cratis\u002Fai\u002F`, never model files. Keep explanatory\nMarkdown in project documentation; `.play` is the single flow model.\n\n## Product sources\n\nTool versions: toolchain `SKILL.md`; sources below. Compilation is not execution.\n\n- Examples and executable boundaries; inline events, repairs, canonical `optional`.\n- `handler`, code attachments, `persona` and compliance binding (`Semantics\u002FSemanticModelBinder*.cs`, `Diagnostics\u002FDiagnosticCodes.cs`).\n- Generated-value and response rules (ESM v7).\n- Identity and compliance syntax (`identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`, `diagnostics.md`); v13 compliance admission: `references\u002Fcompliance.md`.\n- v15 generation strategies, strict fixtures and freshness; Stage realization: `references\u002Fgenerated-values-and-responses.md`; shop: `references\u002Fshop-generation.md`.\n\n\"Parses\" and \"runs\" are different claims. The executable profile, and what\neach construct binds to, is in the `cratis-screenplay-model-authoring` language\nreference.\n\n## `concept` and `type`\n\n```screenplay\nconcept InvoiceId : Uuid\nconcept DiscountPercentage : Decimal\n  validate\n    >= 0    message \"A discount cannot be negative\"\n    \u003C= 100  message \"A discount cannot exceed 100 percent\"\nconcept PersonName : String pii\n  pii reason \"Identifies the billing contact.\"\nconcept InvoiceStatus : Enum\n  draft\n  sent\n  paid\n```\n\nPrimitives: `Uuid`, `String`, `Int`, `Decimal`, `Bool`, `Date`, `DateTime`.\n`Enum` is a separate concept kind; details: `references\u002Fenum-numbers.md`.\nUse bare `pii` (`personal` alias) and `secret` on concepts; **Compliance is inherited**.\nKeep protection even when a compiler or renderer refuses it. Read\n[compliance and purposes](references\u002Fcompliance.md) for ESM v13, binder-only refusals,\nconsumer ceilings, marker repairs, reasons, scopes and provider limits.\n\n**Identifiers cannot be personal data or secrets.** PLAY0515 is a source error\nfor command identifiers, typed `for` destinations, event-source identities,\nscalar\u002Fcomposite stream-id types and nested route mapping sources, including legacy\nmarkers. Keep a surrogate identity and carry protected data in the payload.\nChronicle likewise rejects `[PII]`\u002F`[Encrypted]` identifiers (CHR0034\u002FCHR0052).\n\nRead [enum numbers](references\u002Fenum-numbers.md) for `draft = 1`, unique int32\nall-or-none pins, stored\u002Fpublic identity safety, `enum-pinning`, ESM v12 and the\nCLI\u002FStage gap. Unnumbered enums keep positions; specifications use names.\n\n⚠️ **Enum trap.** A value literally named `validate` is read as an empty validate\nblock. Write `@validate` for the value; the compiler warns when it sees the\nambiguity.\n\nUse `type \u003CName>` for a composite shape (several properties) that events and\ncommands reference; use `concept` for a single wrapped primitive.\n\n## The command block\n\nExcerpt: the concepts, `InvoiceLine`, policy and shared event are declared elsewhere.\nFor a command-owned event, use the complete inline example in [inline events](references\u002Finline-events.md).\n\n```screenplay excerpt\ncommand RegisterInvoice\n  description \"Registers a new invoice with its lines and payment terms\"\n  invoiceId      InvoiceId identifier\n  invoiceNumber  InvoiceNumber\n  lines          InvoiceLine[]\n  note           String optional\n  authorize CanManageInvoice\n  validate\n    invoiceNumber not empty                 message \"Invoice number is required\"\n    invoiceNumber matches \"^INV-[0-9]{6}$\"  severity warning message \"Must look like INV-000000\"\n  produces InvoiceRegistered\n    for invoiceId\n    registeredAt = $context.occurred\n```\n\nType modifiers: `\u003CType>[]` for a collection, `\u003CType> optional` for absence.\n`Type[] optional` makes the whole collection optional, not its items. Legacy\n`Type?` still parses with information `PLAY0479`; use its repair or editor quick\nfix to migrate. `--warnaserror` does not reject information diagnostics.\n`reads X optional` is not supported yet.\n\n⚠️ **The parser enforces no clause order.** The house order is description,\nproperties, `reads`, `authorize`, `validate`, `produces`\u002F`handler`, `concurrency`.\nKeep to it.\n\nA file\u002Fcode `handler` cannot coexist with `produces` and fails binding\nwith PLAY0800 (`CommandHandlerRequiresAttachment`): gap-fill the slice in code\nwith a constrained implementation attachment, not by waiting for a new ESM version.\nRead the required typed `subject` argument for the command, never parse the message.\nRequires Screenplay 4.210.0 (`screenplay --version`) for PLAY0800; older binders use PLAY0268 for this refusal. A pending `handler implementation` beside unconditional `produces`\nis a described command (ESM v23): the body owns payload values only. Prefer plain\n`produces` for declarative logic. Read [described handlers](references\u002Fdescribed-handlers.md)\nwhen logic needs prose, for the result contract, PLAY0695–0698, Unsupported\nImplementationBody and Stage's STAGE-IMPL-002 refusal (no stubs, even in Stub mode).\n\n## `identifier` — the stream boundary decision\n\nAt most one command property may carry `identifier`. It names the value the\nruntime uses as the event source id, so **choosing it is choosing the stream\nboundary** — the highest-consequence decision in the slice. Leave it out only\nwhen the runtime should allocate a fresh `Uuid` (a command that creates\nsomething whose identity the caller does not supply).\n\n- A second `identifier` on the same command is an error: *only one property can be\n  the identifier*.\n- `identifier` on an **event** property is an error: *an event never carries its\n  event source id*. It travels in the event context.\n\n## `reads` — state the command decides against\n\nExcerpt: the `Account` read model, its projection and its keyed query are\ndeclared elsewhere.\n\n```screenplay excerpt\ncommand TransferFunds\n  sourceId      AccountId\n  destinationId AccountId\n  amount        Decimal\n  reads Account as source by sourceId\n  reads Account as destination by destinationId\n  validate\n    require source.balance >= amount\n      message \"The source account does not cover the transfer\"\n```\n\n`by \u003Cproperty>` names the command property the read model is looked up by.\n`as \u003Calias>` names one read: a command that reads a view more than once needs an\nalias on **every** read (`PLAY0410`), aliases are unique (`PLAY0411`) and must not\nmatch a command property (`PLAY0412`). A `require` path uses the alias, or the\nview name when that view is read once.\n\nOpt eligible state reads into application-root `command reads protected` (v25).\nAbsence rejects; matching intervening facts conflict. Read [protected reads](references\u002Fprotected-reads.md)\nfor strict admission, paths and PLAY0780–0786. Legacy reads stay unprotected;\nreads\u002Fconcurrency cannot combine (PLAY0783). Semantic Host\u002Fexecutor support is separate.\nRequires Stage 4.138.0 to render protected reads as Arc read protection (shapes it cannot preserve stay STAGE-ESM-044); `cratis render` gets it from the first CLI that bundles it, and CLI 3.75.0 refuses every protected read with STAGE-ESM-044.\nUniqueness still uses a constraint; reference success is not target realization.\n\nDo not use `reads` to fetch data the caller could supply. A composite-key view's `by` block in a\ncommand read is `PLAY0271`, or `PLAY0781` reason `by-parts` under `command reads protected`\n(read-surface `references\u002Fnamed-keys.md`).\n\n## `validate`\n\nEach rule takes an optional `severity information|warning|error` and then an\noptional `message \"\u003Ctext>\"` (or `$strings.\u003Ckey>`). The default severity is `error`.\n\nThe rule vocabulary (`not empty`, `min`\u002F`max`, comparisons, `length`, literal text rules, `matches`, `all`, `rule \u003CName>`) is in\n[references\u002Fvalidate-rules.md](references\u002Fvalidate-rules.md): read it when choosing or writing a rule form.\nRead [text and match rules](references\u002Ftext-and-match-rules.md) for ordinal `contains`,\n`not contains`, `starts with`, `ends with` (v24), the portable linear match dialect,\nPLAY0699\u002F0787, Studio repairs and public pattern checks. Text rules are not conditions.\n\n⚠️ **Validation severity is not compiler severity.** Every failed rule and\n`require` rejects the command, at `information` and `warning` too; severity only\ntells the UI how to present the failure.\n\n**Whole-command rules** use `require \u003Ccondition>` with an indented `message` and\noptional `severity`, sharing the condition grammar with `produces … when`:\n`and` binds tighter than `or`, parentheses group. A conditional rule is an\nimplication: `require isExtension == false or newEndDate > endDate`.\n\nRequires Screenplay 4.199.0 (ESM v26; `screenplay --version`) for Date\u002FDateTime\ncomparisons; older binders report PLAY0268. Read [date comparisons](references\u002Fdate-comparisons.md)\nwhen ordering a retention window with `require to >= from`, comparing instants\nacross offsets, or rejecting offset-less inputs before rules. It covers admitted\npositions, PLAY0268\u002F0273, ordinal `then` matching and Stage's STAGE-ESM-046 renderer refusal.\n\nRequires Screenplay 4.205.0 (ESM v28; `screenplay --version`) for `==`\u002F`!=` between Uuid\nvalues (properties, concepts, identities, canonical literals, and read paths in `require`);\nolder binders report PLAY0268. Read [Uuid equality](references\u002Fuuid-equality.md) for the same-concept\nrule, PLAY0268\u002F0273 and the refused shapes (ordering, Uuid validation rules, Uuid concept rules).\n\n**Rules whose logic is code.** A bare `rule \u003CName>` has no portable meaning (`PLAY0268`) and a bodied rule binds only as\nopaque code. Read [references\u002Fvalidate-rules.md](references\u002Fvalidate-rules.md) when a rule's logic must live in a `file`\nor fenced code body.\n\n**Put format rules on the `concept`, not the command** (except date comparisons,\nwhich bind only on command properties, not as concept rules). A concept carries its own\n`validate` block and every use inherits it — that is Screenplay's type system, and\na rule that travels is worth more than one that is repeated.\n\n## `authorize`\n\nExcerpt: the policies are declared at the top of the model.\n\n```screenplay excerpt\nauthorize IsAccountant\n          or IsCustomerSelf\n\nauthorize (IsAccountant or IsFinance) and OwnsInvoice\n```\n\nPolicy names are PascalCase. `and` binds tighter than `or`; parentheses group.\nA continuation line extends the clause.\n\n⚠️ **Two adjacent policies synthesize an implicit `and`.** `authorize A B` means\n`A and B`. Write the operator explicitly so the reader does not have to know this.\n\n- Several `authorize` lines on one command or query combine with AND, in authored\n  order.\n- `authorize` on an enclosing `module` or `feature` is ANDed with the command's\n  own gate; an `or` inside one gate never bypasses another gate.\n- Evaluation short-circuits left to right, module → feature → command. If it\n  reaches a policy implemented in code, the reference runner reports the outcome\n  unsupported; it never guesses allow or deny.\n\n## Inline events and destinations\n\nPrefer inline `produces event \u003CName>` for an event owned by one command: `for`\ndefaults to its identifier; never copy that identifier into payload. For events\nshared by commands or reactions, declare `event` separately and use plain\n`produces \u003CName>` with explicit `for \u003Cidentifier>` on commands. Reactions cannot\ndeclare inline events. Rendered Arc commands ignore `for` (Stage#187).\nRead [references\u002Finline-events.md](references\u002Finline-events.md) when declaring an event inline in `produces event`,\nchoosing or omitting `for` on a production, or fixing `PLAY0469`-`PLAY0478`.\n\n## `produces`\n\nMapping sources that bind: a command property, a literal, `$context.occurred` and `$identity.*`; `for` must name the command `identifier` (`PLAY0273`); several unconditional `produces` are co-production. Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) when writing mappings, `tag`, or `produces when`.\n\n## Routes and external operations\n\nCommands never produce public events; external work stays unadmitted (`PLAY0268`). Read [references\u002Froutes-and-external-operations.md](references\u002Froutes-and-external-operations.md) when choosing routes, `stream` overrides, public or foreign events, or `system`\u002F`uses`\u002F`operation` declarations (see also [operation intent](references\u002Foperations.md)).\n\n## `concurrency`\n\nOne `concurrency` block per command; it is not bound (`PLAY0271`) and does not protect a `reads` decision. Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) for the dimensions.\n\n## Generated values and responses (ESM v7 and v15)\n\nUUID generation\u002Fresponses bind as v7; serialized concept `generate` selects v15:\nUUIDv7\u002FULID\u002FTypeID\u002FNanoID\u002Fbytes, strict fixtures and whole-source freshness.\nReuse rejects Concurrency, no append\u002Fretry. Rules select v20 (Requires Screenplay\n4.164.0, `screenplay --version`); pattern\u002Fchecksum, Int random and attached rules\nselect v21 (Requires 4.172.0). Older compilers refuse PLAY0268. Secrets and sequences\nremain refused. Patterns are readable references, not gapless allocators or secrets;\ncheck digits catch typos, not forgery. Keep uniqueness\u002Ffreshness enforcement.\nRead [references\u002Fgenerated-values-and-responses.md](references\u002Fgenerated-values-and-responses.md)\nfor `generated`, `generate`, `returns`, strict fixtures\u002Ffreshness and renderer limits.\n\nRequires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies (ESM v15), 4.150.0 or later for the stored stream `All` refusal, 4.141.0 or later for compliance (ESM v13) and 4.139.0 or later for non-positional enum numbers (ESM v12).\nComplete example: `cratis-screenplay-toolchain\u002Freferences\u002Fgenerated-responses-example.md`.\nRoutes and realization: `cratis-screenplay-toolchain\u002Freferences\u002Fsources-and-streams.md`.\n\n## `constraint` — uniqueness at append time\n\nChronicle's constraints enforce **uniqueness only**; use one when two concurrent appends must not both win. Do not use `constraint … file \u003CPath>` for other rules (`PLAY0396`). Read [references\u002Fconstraints-produces-concurrency.md](references\u002Fconstraints-produces-concurrency.md) when writing a `unique` constraint, `released by`, or `unique event`.\n\n## `policy` and `persona`\n\nA policy has **exactly one** `require` line (`PLAY0441`) **or** one implementation, never both (`PLAY0440`). Read [references\u002Fpolicy-persona-seed.md](references\u002Fpolicy-persona-seed.md) when\ndeclaring a policy (including `require anonymous` for a deliberately public command or query), a persona, or a `seed` block.\n\n## Event data subject\n\nA trailing `subject` on an event property is report-only (`PLAY0270`); see [compliance](references\u002Fcompliance.md#event-data-subject).\n\n## `$context` and `$identity`\n\nFour contexts, and **what each omits is load-bearing** — when writing a code body or a context\u002Fexpression mapping, read\n[context.md](references\u002Fcontext.md) for the full member lists, the declarative\n`$context.` paths, and `$causedBy` \u002F `$env` \u002F `$strings`.\n\n| Context | For | Deliberately omits |\n| --- | --- | --- |\n| Command | a command handler | — |\n| Query | a query performer | — |\n| Rule | a validation rule | **`Identity`** — validation does not see roles or claims |\n| Policy | an authorization policy | **`CausedBy`, `Causation`** |\n\n## Verify\n\n- [ ] Validate the complete model root with warnings as errors; name the tool,\n      version and result. Tool versions: toolchain `SKILL.md`;\n      bundle compatibility and execution are separate checks.\n- [ ] No unintended `PLAY0478` or `PLAY0479` information remains.\n- [ ] At most one command property carries `identifier`, and no event property does.\n- [ ] Format rules live on the `concept` except command-only date comparisons;\n      state-dependent rules are specifications. DateTime comparisons preserve UTC\n      ticks; specs include missing-offset Validation rejection.\n- [ ] Every `authorize` combining policies writes `and`\u002F`or` explicitly.\n- [ ] Protected reads opt in, meet admission and distinguish reference protection\n      from target realization; legacy reads and `concurrency` imply no protection.\n- [ ] Constraints are `unique` forms; no `file` constraint stands in for another rule.\n- [ ] Each policy has one `require` or one implementation, not both.\n- [ ] Personal data is `pii` on the concept; operational secrets are `secret`;\n      no identifier or subject concept carries either. Reasons explain the value,\n      while purposes declare basis\u002Fretention; run `--check purposes` separately.\n- [ ] Described handlers distinguish binding from Unsupported body execution and\n      Stage refusal; attached handlers remain unbound. Name the admitting tool.\n- [ ] No event carries an optional property covering two situations.\n\nCompiler versions and admission: `cratis-screenplay-toolchain\u002FSKILL.md`.\nMethod: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.\n\n## Route near misses\n\n- Deciding *which* commands and events exist: `cratis-screenplay-event-modeling`.\n- Building read models from these events: `cratis-screenplay-projections`.\n- Pinning the rejections and denials: `cratis-screenplay-specifications`.\n- The parsed\u002Fbound\u002Fexecuted boundary: `cratis-screenplay-model-authoring`.\n",{"name":5,"license":14,"description":7},"main","feed400071bf3f9f4410a956d73413daa6e1b334",".cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue","https:\u002F\u002Fwww.cratis.io\u002Fprologue\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 06:37:10",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cratis\u002FPrologue --skill cratis-screenplay-command-surface",{"tool":39,"command":40},"bunx","bunx skills add Cratis\u002FPrologue --skill cratis-screenplay-command-surface",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cratis\u002FPrologue --skill cratis-screenplay-command-surface","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002FSKILL.md",true,[47,51,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113],{"path":48,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":15},"LICENSE","许可证",212,{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcompliance.md","REFERENCE","参考文档",13289,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fcompliance.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fconstraints-produces-concurrency.md",6583,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fconstraints-produces-concurrency.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fcontext.md",9974,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fcontext.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fdate-comparisons.md",5941,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fdate-comparisons.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdescribed-handlers.md",4776,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fdescribed-handlers.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fenum-numbers.md",4640,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fenum-numbers.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fgenerated-values-and-responses.md",20842,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fgenerated-values-and-responses.md",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Finline-events.md",4989,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Finline-events.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Foperations.md",3679,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Foperations.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fpolicy-persona-seed.md",4703,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fpolicy-persona-seed.md",{"path":94,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fprotected-reads.md",9005,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fprotected-reads.md",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Froutes-and-external-operations.md",1426,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Froutes-and-external-operations.md",{"path":102,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fshop-generation.md",6264,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fshop-generation.md",{"path":106,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Ftext-and-match-rules.md",7573,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Ftext-and-match-rules.md",{"path":110,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fuuid-equality.md",5589,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fuuid-equality.md",{"path":114,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fvalidate-rules.md",6148,"https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-screenplay-command-surface\u002Freferences\u002Fvalidate-rules.md",[118,126,134,142,150,158],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":122,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M78CCRM9594FCYFMCY5W137G","vectorization","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.","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fvectorization\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M78CCJKGDNSDNCMA92PV8GCR","target-authoring","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.","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Ftarget-authoring\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":138,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M78CCCWS16JZA36AGB5YVMAN","run-tests","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.","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Frun-tests\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":146,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M78CC6VC08Y3WTN4T784DYDY","profiling","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).","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fprofiling\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":154,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M78CC14WNAP1Y77ZMM4VD29A","platform-detection","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.","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fplatform-detection\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":162,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":19},"01M78CBVQKQZ6C9VZAD48GB8AC","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.","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FPrologue\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Forleans\u002FSKILL.md",[],[]]