| name | create-pr |
| description | Create a pull request with a structured description including summary, validation plan with checkboxes, E2E test commands for deployed environments, and deployment checklist. Use this skill when creating or updating a PR. |
Create Pull Request
When creating a PR for this project, follow this format strictly.
Pre-flight
Before creating the PR:
- Ensure
npm run lint passes with zero warnings
- Ensure
npm run type-check passes
- Ensure
npm run build succeeds
- Ensure E2E tests pass locally:
npx playwright test
- Check that the branch is up to date with
main
PR Description Format
Use this template:
## Summary
<1-3 bullet points describing what this PR does and why>
## Changes
<List of notable changes, grouped by area (API, UI, DB, infra, tests)>
## Validation Plan
### Automated
- [ ] CI passes (lint + type-check + build + E2E)
### Manual (on preview environment)
<Checkboxes for each manual validation step. Be specific about what to check and where.>
**Every URL or path must be a clickable Markdown link** so the reviewer can jump straight to the page from GitHub. Use the full preview URL, not bare paths or backticks.
- [ ] Open [`/games`](https://on-board-preview.jolelievre.com/games) → page loads correctly
- [ ] Check [`/api/health`](https://on-board-preview.jolelievre.com/api/health) responds with `{"status":"ok",...}`
- [ ] <Feature-specific validation steps...>
### E2E on deployed preview
Run E2E tests against the preview environment:
```bash
BASE_URL="https://on-board-preview.jolelievre.com" npm run test:chrome
Checklist
🤖 Generated with Claude Code
## Rules
- **Always ask for user approval** before creating or updating a PR
- Keep the PR title short (under 70 characters), use conventional commit prefix (`feat:`, `fix:`, `chore:`, etc.)
- The validation plan is the primary QA step — make it thorough and actionable
- When the PR adds user-facing features, include specific steps to test them on the preview environment
- **Make every URL/path in the validation plan a clickable Markdown link** pointing to the preview environment (`https://on-board-preview.jolelievre.com/...`). Bare paths or backtick-wrapped paths force the reviewer to copy-paste — clickable links don't.
- Adapt the checklist to the scope of the PR (remove items that don't apply, add relevant ones)
- **For offline-related validation, Chrome DevTools' "Offline" Network throttle is the recommended tool** — it correctly toggles `navigator.onLine` and fires `online`/`offline` window events. (Earlier symptoms attributed to DevTools were caused by the `gcTime` overflow bug fixed in `query-client.ts` with `gcTime: Infinity`; DevTools itself is reliable.) Physical WiFi toggle / airplane mode remain valid alternatives if you want to exercise the full network stack.