testing-best-practices · andrelandgraf — Claude Code skill: what it does
testing-best-practices — a skill that teaches the agent to pick the right test type (Playwright, integration, or unit) and run it against an isolated Neon branch that auto-deletes after an hour.
no license 113 installs ★ 23 updated 2026-06-08
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a claude-codeWhat testing-best-practices does
The skill defines three tiers: Playwright for UI flows and forms, integration tests for API responses and database state, unit for pure functions. Each suite runs in parallel against a separate Neon schema — the branch lives for an hour, data stays isolated.
It includes code examples for each type: how to call a route handler directly in an integration test, how to generate an email with uuid for data isolation, where to store files (unit co-located with the module, others under tests/). For Playwright, there are --headed and --debug flags; failed run screenshots land in test-results/.
Requires Playwright, Bun, and Neon CLI already set up — the skill assumes three setup recipes from the same repository. Without them, commands like bun run test:playwright and branch access will not work.
What it helps with
- pick the right test tier: browser, integration, or unit
- run tests against a temporary database schema
- isolate data between parallel suites
- debug Playwright failures using screenshots and traces
- write an integration test without making an HTTP call
Example prompts for the agent
- Write a Playwright test for the registration form that checks redirect after successful submit
- Add an integration test for
GET /api/users, call the handler directly and verify status 200 - Run unit tests only via
bun run test:unit
How to install testing-best-practices
1Skills CLI (Vercel)
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a claude-code2Manually: put the files in place
~/.claude/skills/testing-best-practices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/testing-best-practices/
1Skills CLI (Vercel)
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a codex2Manually: put the files in place
.agents/skills/testing-best-practices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a cursor2Manually: put the files in place
.cursor/skills/testing-best-practices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install andrelandgraf/fullstackrecipes skills/testing-best-practices2Manually: put the files in place
.github/skills/testing-best-practices/SKILL.md1Skills CLI (Vercel)
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a gemini-cli2Platform CLI
gemini skills install https://github.com/andrelandgraf/fullstackrecipes --path skills/testing-best-practicesManually: put the files in place
.devin/skills/testing-best-practices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about testing-best-practices
How do I install testing-best-practices in Claude Code?
Run npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a claude-code, the skill file will be at ~/.claude/skills/testing-best-practices/SKILL.md.
What does the testing-best-practices skill do?
It teaches the agent to choose between Playwright, integration, and unit tests, shows code samples for each tier, and explains how to isolate data when running parallel suites against a Neon branch.
What dependencies does the skill need?
Playwright, Bun, and Neon CLI must be configured — the skill references three setup recipes from the repository.
Similar skills
All skills for Testing and QA →testing-best-practices by other authors comes first.