.claude/skills/code-review/SKILL.md
Review code changes for contract compliance, type safety, and regression risk. Use after completing any non-trivial implementation, before merging PRs, or when asked to review code quality across any mercur package.
npx skillsauth add mercurjs/mercur code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
admin-ui-review is too narrow (backend, registry, cross-package changes)For admin UI-specific review, prefer admin-ui-review — it has deeper UI pattern coverage.
references/review-checklist.mdany types on public API boundaries or shared DTOs@components/, @hooks/, @lib/index.ts in registry workflows/ or steps/AuthenticatedMedusaRequest<T> / MedusaResponse<T>Prioritize checks by blast radius:
any on boundaries, missing generics, type widening## Code Review: [scope description]
### P1 (Blocker)
1. **[Issue]** in `file:line` — [description]
Fix: [concrete suggestion]
### P2 (Should fix)
1. **[Issue]** in `file:line` — [description]
### P3 (Suggestion)
1. **[Issue]** in `file:line` — [description]
### Verified
- [what was checked]
### Not verified
- [what was skipped and why]
### Residual risk
- [any remaining concerns]
## Code Review: [scope description]
No findings. Changes are consistent with mercur patterns and contracts.
### Verified
- [list of checks performed]
### Not verified
- [anything skipped]
When changes span multiple packages:
When reviewing your own implementation:
documentation
Analyze a Mercur 1.x project and guide migration to 2.0. Self-contained — works without access to the mercur monorepo.
documentation
Plan and execute migration from Mercur 1.x to 2.0. Classifies project difficulty, reads relevant migration docs, and follows stop conditions.
tools
Use Mercur CLI commands correctly inside a project created from the Mercur basic starter. Use when choosing between `create`, `init`, `add`, `search`, `view`, and `diff`.
tools
Discover, evaluate, install, and verify Mercur blocks in the basic starter using `blocks.json` aliases and CLI workflows.