Perform a code review before creating a PR
Perform a code review for the current peek-stash-browser branch. Your job is to ensure code quality, identify potential bugs or improvements, and find gaps in test coverage.
git diff main...HEAD --stat
git diff main...HEAD
Review the diff to understand the scope and intent of the changes before running automated checks.
Based on which files changed, invoke the corresponding skills to have their guidelines in context during review. Check the diff stat and invoke all that apply:
| Files changed | Skill to invoke |
|---|---|
client/src/components/** (UI/layout) |
visual-style, responsive-design |
client/src/components/** (React logic) |
vercel-composition-patterns, react-spa-performance |
server/controllers/**, server/routes/** |
express5-api-patterns, api-design-principles |
server/services/** (TypeScript) |
typescript-advanced-types |
server/prisma/**, migration files |
prisma-sqlite-expert |
server/graphql/**, codegen.yml |
graphql-patterns |
Dockerfile*, docker-compose* |
docker-best-practices |
Test files (**/*.test.*) |
writing-tests |
Invoke these skills using the Skill tool before proceeding to the code quality review. You don't need to invoke every skill — only those relevant to the diff.
Review the diff against these guidelines (supplemented by the skills invoked above):
var(--bg-card)) not hardcoded colorsRun each check and fix any failures before proceeding:
cd server && npm test
Expected: All tests pass
cd server && npm run lint
Expected: No errors (warnings OK)
cd server && npx tsc --noEmit
Expected: No type errors
cd server && npm run test:integration
Expected: All tests pass
cd client && npm test
Expected: All tests pass
cd client && npm run lint
Expected: No errors (warnings OK)
cd client && npm run build
Expected: Build succeeds without errors
npm run test:e2e
Expected: All E2E tests pass
Blocking (must fix before PR):
Should fix (fix now or create follow-up issue):
writing-tests skill for conventions)Note for later (document but don't block):
After all blocking issues are fixed, report the review results and hand off to finishing-a-development-branch for PR creation or merge. Do NOT create a PR in this skill — that's handled by the finishing skill.