[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXS6KM6C759B97BAP5YKGC":3,"skill-same:01M6BXS6KM6C759B97BAP5YKGC":88},{"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":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":14,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6BXS6KM6C759B97BAP5YKGC","cratis-code-review","Cratis 代码审查","Review changed code in a Cratis application against the architecture, style, and specification-coverage criteria that the compiler cannot check, and produce a structured report with blocking issues separated from suggestions. Use when asked to review, check, or validate a change. Do not substitute it for a focused security audit and do not restate specialist performance findings.","依据编译器无法检查的架构、风格和规格覆盖标准，审查 Cratis 应用中变更的代码，并生成结构化报告，将阻塞性问题与建议分开列出。当被要求审查、检查或验证变更时使用。不要将其替代专项安全审计，也不要重复转述专家的性能分析结论。","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-code-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-code-review\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"code review","review","code","cratis","cratis code review","security","performance","change","validate","architecture","report","issues","produce","compiler","audit","security audit","2026-11-10 10:12:30",false,"---\nname: cratis-code-review\ndescription: Review changed code in a Cratis application against the architecture, style, and specification-coverage criteria that the compiler cannot check, and produce a structured report with blocking issues separated from suggestions. Use when asked to review, check, or validate a change. Do not substitute it for a focused security audit and do not restate specialist performance findings.\nlicense: MIT\n---\n\u003C!-- cratis-ai-managed: skills\u002Fcratis-code-review\u002FSKILL.md -->\n\n# Cratis code review\n\nA review is worth the reader's time only when it separates what must change from\nwhat could. Everything below is a criterion an analyzer does **not** already\nenforce — if the build is clean and this list is clean, the change is sound on\nthe axes a reviewer can judge.\n\nReview the **change**, not the file. A pre-existing violation in a line the\nchange did not touch is a note, never a blocker.\n\n## Verified product sources\n\n| Package | Purpose |\n| --- | --- |\n| `Cratis.Arc.Core` | Command, query, validation and analyzer surface (`ARC0001`–`ARC0026`, including operations, authorization, generated values and explicit query selection) |\n| `Cratis.Chronicle` | Event, projection, read-model and constraint surface |\n| `Cratis.Fundamentals` | `ConceptAs\u003CT>`, `IInstancesOf\u003CT>`, the DI conventions |\n\nFundamentals:\n[`ConceptAs\u003CT>`](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FConcepts\u002FConceptAs.cs)\nis the typed-value record;\n[`InstancesOf\u003CT>`](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FTypes\u002FInstancesOf.cs)\ndiscovers implementations and resolves them when enumerated;\n[DI conventions](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FDependencyInjection\u002FServiceCollectionExtensions.cs)\nhonor `[Singleton]` and `[Scoped]`, defaulting to transient.\n\nReverify against the owning product repository before asserting a framework\ncontract this file does not already state.\n\n## Route near misses\n\n- A focused authentication, authorization, data-exposure, or event-sourcing\n  security audit: use `cratis-security-review`.\n- A focused Chronicle, database, .NET or React scalability analysis: use\n  `cratis-performance-review`. The performance items below are the ones a\n  general reviewer should catch in passing; do not duplicate the specialist's\n  findings when both have run.\n- Deciding whether the behavior is right at all: that is modeling, not review.\n\n## Step 1 — Run the gates first\n\nA review that reports what the build already says is noise. Confirm the change\nbuilds clean in Debug and Release, its specifications pass, and lint and the\nTypeScript build are clean. Report a gate failure as the finding and stop —\nthere is nothing to review under a red build.\n\n## Step 2 — Architecture\n\n- Each slice is its own folder, `\u003CModule>\u002F\u003CFeature>\u002F\u003CSlice>\u002F\u003CSlice>.cs`, with the\n  backend artifacts together. **No top-level `Features\u002F` wrapper.**\n- Namespace mirrors the folder path under the source root.\n- Commands are `record` types with `Handle()` on the record. No separate handler\n  class.\n- Business rejection returns a `ValidationResult` or\n  `Result\u003CTEvent, ValidationResult>`, or comes from a validator. **Never thrown\n  from `Provide()` or `Handle()`** — a throw is HTTP 500, not a validation error.\n- Fetched or computed handler data is in `Provide()`, not inline in `Handle()`.\n- Events are `record` types: past tense, no mutable and no nullable properties,\n  never carrying the event-source id, and each has an XML `\u003Csummary>`.\n- Identity concepts derive from `EventSourceId\u003CT>`, not `ConceptAs\u003CGuid>`.\n- Domain values are concepts, not raw `Guid`, `string`, or `int`.\n- Projections consume events, never read models. AutoMap is on by default —\n  `.AutoMap()` appears only inside a scope disabled with `.NoAutoMap()`.\n- A `[Projection]` id, once given explicitly and deployed, is permanent. The\n  argument is optional; adding one to an existing projection after the fact\n  changes its identity.\n- Model-bound query custom paths use `[Path(\"...\")]`, never ASP.NET `[Route]`.\n- No service locator: `IServiceProvider` is not injected. Implementation sets\n  come from `IInstancesOf\u003CT>`, never `IEnumerable\u003CT>`.\n- No explicit singleton registration where `[Singleton]` suffices.\n- No `[Singleton]` takes a scoped dependency — the event store and anything off\n  it, a MongoDB collection\u002Fdatabase\u002Fclient, a `DbContext`, a read model by key.\n  Such a type is transient or scoped instead; `IServiceScopeFactory` is only for\n  a service the host itself resolves once.\n- Logging lives in a `*Logging.cs` partial with `[LoggerMessage]`, not inline in\n  domain code.\n- No shared mutable state between commands.\n- Read protection is `Off` by default; new code sets `\u003CCratisReadProtection>On\u003C\u002FCratisReadProtection>`.\n  Under `Off` an injected model or validator read is advisory, not a concurrency guard.\n  Under `On`, review that state rules sit in validators or handlers with the model as\n  a parameter, `[Unprotected(\"why\")]` carries a real reason, and a conflict spec\n  (`AppendConcurrently` plus `ConcurrencyViolation`) exists.\n- Use `Cratis.Arc.Core.CodeAnalysis` and `Cratis.Arc.Chronicle.CodeAnalysis`.\n  ARCCHR0011 (Info, `Off` only) and 0012 flag unprotected reads\u002Fimmediate\n  bypasses; 0013 (Info) recommends definitions; 0014 checks declared observer\n  streams; 0015 warns on nullable events; 0016 flags ignored concurrency flags;\n  0017\u002F0018 check stream-id templates; 0019 warns on folds exposed as queries.\n  ARC0015 checks concept query inputs, ARC0016–18 operations, ARC0019–21\n  authorization, ARC0022–25 generated values and ARC0026 explicit\u002Fambiguous queries.\n  A clean build cannot prove the Info-level decision advisories were addressed.\n  Sources: Arc `Source\u002FDotNET\u002FArc.Core.CodeAnalysis\u002FDiagnosticDescriptors.cs`\n  and `Source\u002FDotNET\u002FChronicle.CodeAnalysis\u002FDiagnosticDescriptors.cs`.\n\n## Step 3 — C# style\n\n- File-scoped namespaces; `using` directives sorted, none unused.\n- `is null` \u002F `is not null`, never `== null` \u002F `!= null`.\n- `var` over an explicit type.\n- No `Async`, `Impl`, `Service`, `Manager` or `Helper` postfix on a class name.\n- No regions.\n- Custom exception types only — never `InvalidOperationException`,\n  `ArgumentException` or another built-in (`ARC0012` flags this on Arc\n  artifacts). The XML doc starts with \"The exception that is thrown when …\".\n- Every public type, method and property carries a multiline XML doc.\n  `\u003Csummary>` is never collapsed onto one line. Every parameter has a `\u003Cparam>`;\n  every non-void method has `\u003Creturns>`; every throw has an `\u003Cexception cref>`.\n- The copyright header is on every file; the file ends with one newline.\n\n## Step 4 — TypeScript and components\n\n- `const` over `let` over `var`; no unused imports.\n- No `any`. Use `unknown` with a type guard; widen through\n  `value as unknown as TargetType` rather than `(x as any)`.\n- No `@ts-ignore` or `@ts-expect-error` without a comment saying why.\n- Full descriptive names — never `e`, `idx`, `prev`, `dir`, `pos`.\n- `CommandDialog` from `@cratis\u002Fcomponents\u002FCommandDialog` for command dialogs;\n  `Dialog` from `@cratis\u002Fcomponents\u002FDialogs` for data-only dialogs. **Never** a\n  vendor or hand-rolled modal.\n- No hard-coded hex or rgb colors — `--cratis-*` tokens only. No\n  `!important` without a justifying comment.\n- Components live in the slice folder. No barrel `index.ts` that re-exports one\n  component, and no technical `hooks\u002F` \u002F `utils\u002F` \u002F `types\u002F` grouping at feature\n  level.\n- The copyright header is on every file.\n\n## Step 5 — Performance, in passing\n\nPerformance is part of an ordinary review, not only a separate pass. Flag the\ndegradations a reviewer can see without measuring:\n\n- A projection joining on a read model; a reactor re-querying the event log\n  inside a handler instead of using the event data.\n- A new projection that could not replay all earlier events; events carrying\n  large blobs.\n- A query that does not filter on an indexed field; a growable list that does\n  not return a shape Arc pages (`IQueryable\u003CT>`, or MongoDB `Observe`); a query\n  that pages or sorts itself or uses MongoDB `AsQueryable()`; hydrating a\n  collection only to count it.\n- An N+1 pattern; a response payload with fields no client reads.\n- React: a growable list rendering every row; an inline object or array literal\n  passed as a prop, changing identity every render; wrong `useEffect`\n  dependencies.\n- .NET: `.ToList()` before `.Where()`; an `IEnumerable\u003CT>` enumerated more than\n  once.\n\n## Step 6 — Specification coverage\n\n- Pure command, reducer and reactor decisions have plain-call specifications\n  (`Specification` plus a direct call); scenarios are added where pipelines,\n  validation, constraints, projections or wiring contribute proof.\n- Every State Change command has a happy-path specification.\n- Every validation rule has a failure specification asserting **both**\n  `ShouldNotBeSuccessful()` and `ShouldHaveValidationErrors()`.\n- Every business-rule rejection has a specification.\n- Every constraint has an `EventScenario` specification asserting the constraint\n  **name** by default.\n- Presentation message strings are not asserted by default. Exact wording is\n  asserted only when it is the specified behavior, and the fact names that\n  requirement.\n- Nothing trivial is specified — a property getter, a constructor pass-through,\n  a delegation.\n- No specification sleeps to let the system catch up.\n\n## Step 7 — Report\n\nRead and use `.cratis\u002Fai\u002Frules\u002Freview-reports.md` when writing the report.\n\nCorrectness regressions, broken contracts, and missing specification coverage\nthat leaves changed behavior unverified belong in Blockers when they require\ncorrection before merge. Style preferences and maintainability improvements\nwithout such a consequence belong in Suggestions. Apply the shared verdict\nvocabulary to those findings.\n\n## What breaks\n\n- **The review restates the compiler.** The gates were not run first, so\n  analyzer output is being reported as review findings.\n- **Every finding is blocking.** The distinction is what makes the report\n  actionable; if everything blocks, nothing is prioritized.\n- **A convention is reported as a framework contract.** The slice folder shape\n  and the single-file default are house conventions; `Handle()` on the record and\n  the `[Path]` attribute are contracts. Saying \"the framework requires this\" of a\n  convention loses the reader's trust for the findings that are contracts.\n\n## How it is proven\n\nThe build, the specifications, lint and the TypeScript build are all green\n*before* the report is written, and the report names both what was reviewed and\nwhat was not.\n","\u003C!-- cratis-ai-managed: skills\u002Fcratis-code-review\u002FSKILL.md -->\n\n# Cratis code review\n\nA review is worth the reader's time only when it separates what must change from\nwhat could. Everything below is a criterion an analyzer does **not** already\nenforce — if the build is clean and this list is clean, the change is sound on\nthe axes a reviewer can judge.\n\nReview the **change**, not the file. A pre-existing violation in a line the\nchange did not touch is a note, never a blocker.\n\n## Verified product sources\n\n| Package | Purpose |\n| --- | --- |\n| `Cratis.Arc.Core` | Command, query, validation and analyzer surface (`ARC0001`–`ARC0026`, including operations, authorization, generated values and explicit query selection) |\n| `Cratis.Chronicle` | Event, projection, read-model and constraint surface |\n| `Cratis.Fundamentals` | `ConceptAs\u003CT>`, `IInstancesOf\u003CT>`, the DI conventions |\n\nFundamentals:\n[`ConceptAs\u003CT>`](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FConcepts\u002FConceptAs.cs)\nis the typed-value record;\n[`InstancesOf\u003CT>`](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FTypes\u002FInstancesOf.cs)\ndiscovers implementations and resolves them when enumerated;\n[DI conventions](https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals\u002Fblob\u002Fmain\u002FSource\u002FDotNET\u002FFundamentals\u002FDependencyInjection\u002FServiceCollectionExtensions.cs)\nhonor `[Singleton]` and `[Scoped]`, defaulting to transient.\n\nReverify against the owning product repository before asserting a framework\ncontract this file does not already state.\n\n## Route near misses\n\n- A focused authentication, authorization, data-exposure, or event-sourcing\n  security audit: use `cratis-security-review`.\n- A focused Chronicle, database, .NET or React scalability analysis: use\n  `cratis-performance-review`. The performance items below are the ones a\n  general reviewer should catch in passing; do not duplicate the specialist's\n  findings when both have run.\n- Deciding whether the behavior is right at all: that is modeling, not review.\n\n## Step 1 — Run the gates first\n\nA review that reports what the build already says is noise. Confirm the change\nbuilds clean in Debug and Release, its specifications pass, and lint and the\nTypeScript build are clean. Report a gate failure as the finding and stop —\nthere is nothing to review under a red build.\n\n## Step 2 — Architecture\n\n- Each slice is its own folder, `\u003CModule>\u002F\u003CFeature>\u002F\u003CSlice>\u002F\u003CSlice>.cs`, with the\n  backend artifacts together. **No top-level `Features\u002F` wrapper.**\n- Namespace mirrors the folder path under the source root.\n- Commands are `record` types with `Handle()` on the record. No separate handler\n  class.\n- Business rejection returns a `ValidationResult` or\n  `Result\u003CTEvent, ValidationResult>`, or comes from a validator. **Never thrown\n  from `Provide()` or `Handle()`** — a throw is HTTP 500, not a validation error.\n- Fetched or computed handler data is in `Provide()`, not inline in `Handle()`.\n- Events are `record` types: past tense, no mutable and no nullable properties,\n  never carrying the event-source id, and each has an XML `\u003Csummary>`.\n- Identity concepts derive from `EventSourceId\u003CT>`, not `ConceptAs\u003CGuid>`.\n- Domain values are concepts, not raw `Guid`, `string`, or `int`.\n- Projections consume events, never read models. AutoMap is on by default —\n  `.AutoMap()` appears only inside a scope disabled with `.NoAutoMap()`.\n- A `[Projection]` id, once given explicitly and deployed, is permanent. The\n  argument is optional; adding one to an existing projection after the fact\n  changes its identity.\n- Model-bound query custom paths use `[Path(\"...\")]`, never ASP.NET `[Route]`.\n- No service locator: `IServiceProvider` is not injected. Implementation sets\n  come from `IInstancesOf\u003CT>`, never `IEnumerable\u003CT>`.\n- No explicit singleton registration where `[Singleton]` suffices.\n- No `[Singleton]` takes a scoped dependency — the event store and anything off\n  it, a MongoDB collection\u002Fdatabase\u002Fclient, a `DbContext`, a read model by key.\n  Such a type is transient or scoped instead; `IServiceScopeFactory` is only for\n  a service the host itself resolves once.\n- Logging lives in a `*Logging.cs` partial with `[LoggerMessage]`, not inline in\n  domain code.\n- No shared mutable state between commands.\n- Read protection is `Off` by default; new code sets `\u003CCratisReadProtection>On\u003C\u002FCratisReadProtection>`.\n  Under `Off` an injected model or validator read is advisory, not a concurrency guard.\n  Under `On`, review that state rules sit in validators or handlers with the model as\n  a parameter, `[Unprotected(\"why\")]` carries a real reason, and a conflict spec\n  (`AppendConcurrently` plus `ConcurrencyViolation`) exists.\n- Use `Cratis.Arc.Core.CodeAnalysis` and `Cratis.Arc.Chronicle.CodeAnalysis`.\n  ARCCHR0011 (Info, `Off` only) and 0012 flag unprotected reads\u002Fimmediate\n  bypasses; 0013 (Info) recommends definitions; 0014 checks declared observer\n  streams; 0015 warns on nullable events; 0016 flags ignored concurrency flags;\n  0017\u002F0018 check stream-id templates; 0019 warns on folds exposed as queries.\n  ARC0015 checks concept query inputs, ARC0016–18 operations, ARC0019–21\n  authorization, ARC0022–25 generated values and ARC0026 explicit\u002Fambiguous queries.\n  A clean build cannot prove the Info-level decision advisories were addressed.\n  Sources: Arc `Source\u002FDotNET\u002FArc.Core.CodeAnalysis\u002FDiagnosticDescriptors.cs`\n  and `Source\u002FDotNET\u002FChronicle.CodeAnalysis\u002FDiagnosticDescriptors.cs`.\n\n## Step 3 — C# style\n\n- File-scoped namespaces; `using` directives sorted, none unused.\n- `is null` \u002F `is not null`, never `== null` \u002F `!= null`.\n- `var` over an explicit type.\n- No `Async`, `Impl`, `Service`, `Manager` or `Helper` postfix on a class name.\n- No regions.\n- Custom exception types only — never `InvalidOperationException`,\n  `ArgumentException` or another built-in (`ARC0012` flags this on Arc\n  artifacts). The XML doc starts with \"The exception that is thrown when …\".\n- Every public type, method and property carries a multiline XML doc.\n  `\u003Csummary>` is never collapsed onto one line. Every parameter has a `\u003Cparam>`;\n  every non-void method has `\u003Creturns>`; every throw has an `\u003Cexception cref>`.\n- The copyright header is on every file; the file ends with one newline.\n\n## Step 4 — TypeScript and components\n\n- `const` over `let` over `var`; no unused imports.\n- No `any`. Use `unknown` with a type guard; widen through\n  `value as unknown as TargetType` rather than `(x as any)`.\n- No `@ts-ignore` or `@ts-expect-error` without a comment saying why.\n- Full descriptive names — never `e`, `idx`, `prev`, `dir`, `pos`.\n- `CommandDialog` from `@cratis\u002Fcomponents\u002FCommandDialog` for command dialogs;\n  `Dialog` from `@cratis\u002Fcomponents\u002FDialogs` for data-only dialogs. **Never** a\n  vendor or hand-rolled modal.\n- No hard-coded hex or rgb colors — `--cratis-*` tokens only. No\n  `!important` without a justifying comment.\n- Components live in the slice folder. No barrel `index.ts` that re-exports one\n  component, and no technical `hooks\u002F` \u002F `utils\u002F` \u002F `types\u002F` grouping at feature\n  level.\n- The copyright header is on every file.\n\n## Step 5 — Performance, in passing\n\nPerformance is part of an ordinary review, not only a separate pass. Flag the\ndegradations a reviewer can see without measuring:\n\n- A projection joining on a read model; a reactor re-querying the event log\n  inside a handler instead of using the event data.\n- A new projection that could not replay all earlier events; events carrying\n  large blobs.\n- A query that does not filter on an indexed field; a growable list that does\n  not return a shape Arc pages (`IQueryable\u003CT>`, or MongoDB `Observe`); a query\n  that pages or sorts itself or uses MongoDB `AsQueryable()`; hydrating a\n  collection only to count it.\n- An N+1 pattern; a response payload with fields no client reads.\n- React: a growable list rendering every row; an inline object or array literal\n  passed as a prop, changing identity every render; wrong `useEffect`\n  dependencies.\n- .NET: `.ToList()` before `.Where()`; an `IEnumerable\u003CT>` enumerated more than\n  once.\n\n## Step 6 — Specification coverage\n\n- Pure command, reducer and reactor decisions have plain-call specifications\n  (`Specification` plus a direct call); scenarios are added where pipelines,\n  validation, constraints, projections or wiring contribute proof.\n- Every State Change command has a happy-path specification.\n- Every validation rule has a failure specification asserting **both**\n  `ShouldNotBeSuccessful()` and `ShouldHaveValidationErrors()`.\n- Every business-rule rejection has a specification.\n- Every constraint has an `EventScenario` specification asserting the constraint\n  **name** by default.\n- Presentation message strings are not asserted by default. Exact wording is\n  asserted only when it is the specified behavior, and the fact names that\n  requirement.\n- Nothing trivial is specified — a property getter, a constructor pass-through,\n  a delegation.\n- No specification sleeps to let the system catch up.\n\n## Step 7 — Report\n\nRead and use `.cratis\u002Fai\u002Frules\u002Freview-reports.md` when writing the report.\n\nCorrectness regressions, broken contracts, and missing specification coverage\nthat leaves changed behavior unverified belong in Blockers when they require\ncorrection before merge. Style preferences and maintainability improvements\nwithout such a consequence belong in Suggestions. Apply the shared verdict\nvocabulary to those findings.\n\n## What breaks\n\n- **The review restates the compiler.** The gates were not run first, so\n  analyzer output is being reported as review findings.\n- **Every finding is blocking.** The distinction is what makes the report\n  actionable; if everything blocks, nothing is prioritized.\n- **A convention is reported as a framework contract.** The slice folder shape\n  and the single-file default are house conventions; `Handle()` on the record and\n  the `[Path]` attribute are contracts. Saying \"the framework requires this\" of a\n  convention loses the reader's trust for the findings that are contracts.\n\n## How it is proven\n\nThe build, the specifications, lint and the TypeScript build are all green\n*before* the report is written, and the report names both what was reviewed and\nwhat was not.\n",{"name":5,"license":15,"description":7},"main","c392076c8b3fae3b8b31e7d5684d71f9be75e8bb",".cratis\u002Fai\u002Fskills\u002Fcratis-code-review","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":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add Cratis\u002FSpecifications --skill cratis-code-review",{"tool":66,"command":67},"bunx","bunx skills add Cratis\u002FSpecifications --skill cratis-code-review",{"tool":69,"command":70},"pnpm","pnpm dlx skills add Cratis\u002FSpecifications --skill cratis-code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FSpecifications\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fcratis-code-review\u002FSKILL.md",true,[74,78,84],{"path":75,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":16},"LICENSE","许可证",197,{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"README.md","REFERENCE","参考文档",3743,"https:\u002F\u002Fgithub.com\u002Fdandaka\u002Fskills\u002Fblob\u002Fmain\u002Fdeep-research\u002FREADME.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fdeep-mode.md",7993,"https:\u002F\u002Fgithub.com\u002Fdandaka\u002Fskills\u002Fblob\u002Fmain\u002Fdeep-research\u002Freferences\u002Fdeep-mode.md",[89,109,130,159,184,201],{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":102,"publishedAt":46},"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",[98,99],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":100,"categoryName":101,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化",[91,103,104,105,106,32,36,107,108],"loop","Safety","simd","vector","memory safety","memory",{"skillNo":110,"name":111,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":122,"publishedAt":46},"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",[118,119],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":120,"categoryName":121,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[123,124,125,126,127,31,128,129],"target authoring","msbuild","tuning","incremental build","sdk","directory","writing",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":143,"publishedAt":46},"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",[139,142],{"categoryNo":140,"categoryName":141,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[144,145,146,147,148,149,150,40,32,151,152,153,154,129,155,156,157,103,158],"run tests","run","collection","detection","ci","repository","framework","debugging","mtp","mstest","test","analysis","xunit","nunit","investigation",{"skillNo":160,"name":161,"nameZh":162,"description":163,"descriptionZh":164,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":165,"sourceHtmlUrl":166,"categories":167,"keywords":170,"publishedAt":46},"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",[168,169],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":100,"categoryName":101,"taxonomyType":27,"taxonomyTypeDesc":28},[161,146,171,172,158,173,36,174,175,149,176,177,178,32,179,180,181,182,183],"microbenchmarking","plan","Tools","risk","Production","collect","tracing","benchmark","diagnostics","official","first","cli","design",{"skillNo":185,"name":186,"nameZh":187,"description":188,"descriptionZh":189,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":190,"sourceHtmlUrl":191,"categories":192,"keywords":195,"publishedAt":46},"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",[193,194],{"categoryNo":140,"categoryName":141,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[196,147,152,153,154,127,128,197,156,157,198,199,150,145,200],"platform detection","config","json","system","packages",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":207,"sourceHtmlUrl":208,"categories":209,"keywords":216,"publishedAt":46},"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",[210,213],{"categoryNo":211,"categoryName":212,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",{"categoryNo":214,"categoryName":215,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C535MHXGXDSGN98VJTMCSK","系统架构设计模式",[203,217,218,219,220,221,222,223,224,225,226,227,228,38,229,230,183],"startup","decision","choose","model","crud","transactions","services","topology","messaging","batch","state","reminders","microsoft","implement"]