cratis/ai.distribution/review-code
Claude Code and agent skill by cratis/ai.distribution
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when asked to review, check, or validate code in a Cratis-based project. Produces a structured review report with blocking issues and suggestions, checked against all project architecture and style standards.
Install
npx vskill@latest install cratis/ai.distribution/review-codeSKILL.md
The same SKILL.md was published earlier as cratis/ai.distribution/review-code.
Review changed code against all Cratis project standards and produce a structured report.
C# Architecture
- [ ] Each slice is its own folder
<Module>/<Feature>/<Slice>/<Slice>.cswith all backend artifacts — no top-level `Features/` wrapper - [ ] Commands:
recordtype withHandle()directly on them — no separate handler classes - [ ] Business rejection returns a
ValidationResult/Result<TEvent, ValidationResult>(or validator) — never thrown from `Provide()`/`Handle()` (a throw is HTTP 500, not a validation error) - [ ] Fetched/computed handler data is in
Provide(), not inline inHandle() - [ ] Events:
recordtype, no mutable/nullable properties, past tense, never carry the event-source id - [ ] Identity concepts derive from
EventSourceId<T>(notConceptAs<Guid>) - [ ] Projections: AutoMap is on by default —
.AutoMap()only after.NoAutoMap(); projections consume events, never read models - [ ] Model-bound query custom paths use
[Path("...")], not[Route] - [ ] No service locator (
IServiceProvidernot injected); discover implementations withIInstancesOf<T>, notIEnumerable<T> - [ ] Namespace matches folder under the app source root (
<RootNamespace>.<Module>.<Feature>.<Slice>)
C# Code Style
- [ ] File-scoped namespaces;
usingdirectives alphabetically sorted - [ ] No unused
usingdirectives - [ ]
is null/is not null— never== null/!= null - [ ]
varpreferred over explicit types - [ ] No postfixes:
Async,Impl,Serviceon class names - [ ] No regions
- [ ] All public types, methods, and properties have multiline XML doc comments
- [ ]
<summary>tags always multiline — never/// <summary>Text</summary>on one line - [ ] Methods with parameters include
<param name="...">for each - [ ] Non-void methods include
<returns> - [ ] Custom exception types only — never
InvalidOperationException,ArgumentException, etc. - [ ] Exception XML docs start with "The exception that is thrown when …"
- [ ] Copyright header on every file
- [ ] Strongly-typed Concepts for all domain IDs/values (no raw
Guid/stringin domain models)
TypeScript Code Style
- [ ]
constoverletovervar - [ ] Full descriptive names — never
e,idx,prev,dir,pos - [ ] No
anytype —unknownwith type guards - [ ] No
(x as any)— usevalue as unknown as TargetType - [ ] No unused imports
- [ ] Copyright header on every file
Component Rules
- [ ]
CommandDialogfrom@cratis/components/CommandDialogfor command dialogs - [ ]
Dialogfrom@cratis/components/Dialogsfor data-only dialogs - [ ] Never imports
Dialogfromprimereact/dialogdirectly - [ ] No hard-coded hex/rgb colors — PrimeReact CSS variables only
- [ ] README.md present for complex component folders with multiple sub-components
Performance
Performance is part of code review, not a separate pass. Flag the common degradations:
- [ ] Projections don't join on a read model; reactors don't re-query the event log inside a handler — use event data directly
- [ ] New projections can replay all historical events without crashing; events carry no large blobs
- [ ] MongoDB queries filter on indexed fields; lists that can grow return
IQueryable<T>for server-side paging (never load all rows or hydrate the full collection for a count) - [ ] No N+1 query pattern; response payloads include only fields the client uses
- [ ] React: large/growing lists page rather than render all rows; no inline object/array literals as props that change identity every render;
useEffectdeps are correct - [ ] .NET: filter before materializing (no
.ToList()before.Where()); don't enumerate anIEnumerable<T>multiple times
Classify findings: 🔴 measurable degradation at moderate load (fix before merge) · 🟡 degrades under load/scale · 🟢 minor.
Output format
Start with: Review result: ✅ Approved / ⚠️ Approved with comments / ❌ Changes requested
Then list issues:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/review-code/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cratis/ai.distribution/review-code)