pr-check
Pre-submit validation checklist for PRs
SKILL.md.claude/skills/pr-check/SKILL.md
GitHubPR Check Skill
Purpose
Run comprehensive pre-submit validation before creating a pull request.
Checklist
1. Type Check
pnpm --filter portal type-check
- Must pass with no errors
2. Lint Check
pnpm lint
- Must pass with no warnings
3. Format Check
pnpm exec prettier --check "**/*.{ts,tsx,md}"
- If fails, run
pnpm formatto fix
4. Test Suite
# Unit tests
pnpm --filter portal test
# E2E tests (requires dev server)
pnpm test:e2e
5. Design System Audit
Check for forbidden patterns in changed files:
font-bold,font-semibold-> usefont-mediumbg-white/5,border-white/10-> use design tokensshadow-*-> use border for depth- Direct
clsx/tailwind-merge-> usecn()from@repo/ui/lib/utils
6. Build Verification
pnpm --filter portal build
- Must complete without errors
7. Git Status
- No uncommitted changes
- Branch name follows convention (feature/, fix/, chore/*)
Output Format
## PR Check Results
- [ ] Type check: PASS/FAIL
- [ ] Lint: PASS/FAIL
- [ ] Format: PASS/FAIL
- [ ] Tests: PASS/FAIL (X passed, Y failed)
- [ ] Design system: PASS/FAIL (list violations)
- [ ] Build: PASS/FAIL
Ready to submit: YES/NO
If Failures Found
List each failure with:
- Command that failed
- Error message
- Suggested fix