Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add andrelandgraf/fullstackrecipes --skill testing-best-practices -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/testing-best-practices/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/testing-best-practices/

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.

testing-best-practices agent-skills testing-best-practices — a rule set for unit and integration tests and TDD: 34 rules in 7 categories, TypeScript with Jest and Vitest. Useful while writing tests or reviewing someone else's. CX Codex +1 975installs testing sangrokjung testing enforces a strict TDD workflow in Claude Code with an 80% coverage floor, Playwright E2E suites, and three test tiers. CX Codex +1 ★ 880repo stars testing-craft jssblck testing-craft organizes automated checks along a strict hierarchy from static types to end-to-end runs. Useful when reviewing test suites or choosing verification levels for new code. CX Codex +1 1,200installs testing-expert PCL Team testing-expert — a skill that gives the agent rules for writing tests: AAA structure, isolated cases, doubles and edge cases. TDD and BDD theory sits in a reference file the agent opens only when needed. CX Codex +1 206installs om-integration-tests open-mercato om-integration-tests is a Claude Code skill that generates and debugs E2E tests by exploring live applications, reusing repository test runners and shared test environments. CX Codex +1 3,800installs clerk-testing clerk The clerk-testing Claude Code skill helps test Clerk authentication with Playwright or Cypress. It guides setup for end-to-end checks of sign-in flows. CX Codex +1 48,900installs e2e-testing-patterns Seth Hobson The e2e-testing-patterns skill helps build E2E tests for critical user journeys with Playwright and Cypress. Use it when debugging flaky tests or setting testing standards. CX Codex +1 24,343installs

From the same set9

ralph-loop-workflow The ralph-loop-workflow skill runs an agent through a coding loop that turns a broad goal into tasks, changes code, and checks the result. Use it for work that needs repeated agent-led iterations. CX Codex +1 684installs use-fullstackrecipes use-fullstackrecipes — a skill for discovering and applying fullstackrecipes: setup guides for tools and day-to-day patterns for databases and APIs. The agent fetches the needed .md from the site and follows its instructions. CX Codex +1 240installs logging-best-practices logging-best-practices teaches the agent to write structured Pino logs: context-first signature, levels for different scenarios, workflow-safe wrapper. CX Codex +1 111installs url-state-patterns The url-state-patterns Claude Code skill keeps React state in sync with URL query parameters using nuqs. It activates for shareable filters, search, and dialogs opened through a link. CX Codex +1 110installs authentication-best-practices The authentication-best-practices Claude Code skill covers Better Auth sessions, route protection, and sign-in flows. It activates when a task involves access control for pages or APIs. CX Codex +1 106installs sentry-best-practices The sentry-best-practices Claude Code skill guides Sentry error capture, context, tracing, and logging in application code. It activates during work on error handling or performance instrumentation. CX Codex +1 106installs workflow-best-practices The workflow-best-practices Claude Code skill covers durable workflows with steps, streaming, and agent runs. It applies when creating, starting, resuming, or saving a workflow. CX Codex +1 104installs drizzle-queries The drizzle-queries Claude Code skill guides type-safe Postgres queries with Drizzle ORM. It activates for database reads, mutations, and new table work. CX Codex +1 103installs

Project sponsors

Companies that keep this analytics open