iwasa-kosui/kamae-ts/kamae-review
Claude Code and agent skill by iwasa-kosui/kamae-ts
- community
Checking that the SKILL.md file is still in the repository.
Adversarial code review of server-side TypeScript for adherence to the kamae principles (discriminated unions, branded types, Result error handling, boundary validation, PII protection). TRIGGER when: reviewing a pull request, audit, or quality check of TypeScript server-side code involving domain models, repositories, use cases, business logic, or boundary code. SKIP: frontend code review, infrastructure-as-code review, test-only review, code review unrelated to domain logic.
Install
npx vskill@latest install iwasa-kosui/kamae-ts/kamae-reviewSKILL.md
Kamae Code Review
Adversarial review against the kamae principles. The knowledge base lives in ../kamae/; this skill links rather than duplicates.
Step 0: Load applicable rules
Before any other step, glob and Read rules in priority order:
.claude/rules/*.md(project-level overrides at the working-tree root)~/.claude/rules/*.md(user-global preferences)../../rules/defaults/*.mdrelative to thisSKILL.md(plugin defaults)
For each file:
- Read the YAML frontmatter. Skip the rule unless
applies-toiskamae-reviewor*. - Group by
name. For eachname, keep only the highest-tier instance (1 > 2 > 3); within a tier the lexicographically last filename wins. - A
check-togglerule withenabled: falseremoves the named check from the walk in step 3 below. - A
conventionrule sets project-specific expectations the review respects (e.g., a designated location for Branded Types).
If no rules are found, proceed with all checks active. See `../../rules/README.md` for the rule format.
Review Procedure
- Load principle knowledge. Before reading any code under review, read:
- `../kamae/SKILL.md` — principle index
- The validation library guide matching the project's
package.jsonunder `../kamae/validation-libraries/` (zod.md/valibot.md/arktype.md) - The Result library guide matching the project's
package.jsonunder `../kamae/result-libraries/` (neverthrow.md/byethrow.md/fp-ts.md/option-t.md) - Each topic file under
../kamae/cited by the checklist sub-files you read.
- Read the files under review.
- Walk the checklist. Read each checklist sub-file in order; match findings to its items.
- `checklist/domain-modeling.md` — Discriminated Unions, Companion Objects, Branded Types, file structure, domain-owned ports, separate single-operation resolvers/stores (items 1.x)
- `checklist/state-transitions.md` — pure state transitions, exhaustiveness (items 2.x)
- `checklist/error-handling.md` — Result types, error-boundary classification, DU error types (items 3.x)
- `checklist/boundary.md` — schema validation, no
asassertions, schema-derived types (items 4.1, 4.2, 4.4) - `checklist/pii-protection.md` —
Sensitive<T>for PII (item 4.3) - `checklist/declarative-and-tests.md` — array operations, events, fixtures (items 5.x, 6.x)
- Report findings. For each violation:
- Location (
path:line). - Why it is a problem — cite the principle (link back to
../kamae/...) and the risk of violating it. - How to fix — code example showing the corrected version.
- Suggestions (non-violations with room for improvement) are communicated with the same format but framed as suggestions rather than findings.
Severity classes
Each checklist item is tagged High / Medium / Low.
- High — direct cause of runtime errors or compliance violations (
as, missing PII protection, missing schema validation, missing Branded Types on semantically distinct primitives). - Medium — invalid state representation, inconsistent error handling, missing exhaustiveness, catch-all type files, classes for domain models, domain contracts coupled to infrastructure types.
- Low — stylistic, readability, edge-case correctness (method notation,
interfacefor domain types, missingReadonly<>, non-kinddiscriminants, imperative array loops, fixtures withoutas const satisfies, matching schema/type duplication, misplaced ports without an outward dependency, unnecessarily broad dependency contracts). An existing schema/type mismatch is raised according to its incorrect acceptance, rejection, or data-exposure impact.
Example Finding
Security
- Security scanPassed, 95 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/kamae-review/SKILL.md
Popularity
- Repository stars
- 47
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 Jul 2026, 4 months ago.
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/iwasa-kosui/kamae-ts/kamae-review)