React Testing Library
React Testing Library best practices for writing maintainable, user-centric tests. Use when writing, reviewing, or refactoring RTL tests. Triggers on test files, testing patterns, getBy/queryBy queries, userEvent, waitFor, and component testing.
Install
npx skills add pproenca/dot-skills --skill react-testing-librarygit clone --depth 1 https://github.com/pproenca/dot-skills.git /tmp/dot-skills
mkdir -p ~/.claude/skills
cp -r /tmp/dot-skills/skills/.experimental/react-testing-library ~/.claude/skills/react-testing-libraryPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# React Testing Library Best Practices Comprehensive testing guide for React components using Testing Library, designed for AI agents and LLMs. Contains 43 rules across 9 categories, prioritized by impact to guide test writing and code review. ## When to Apply Reference these guidelines when: - Writing new component tests with React Testing Library - Selecting queries (getByRole, getByLabelText, etc.) - Handling async operations in tests (findBy, waitFor) - Simulating user interactions (userEvent) - Reviewing tests for anti-patterns and implementation detail testing ## Rule Categories by Priority | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Query Selection | CRITICAL | `query-` | | 2 | Async Handling | CRITICAL | `async-` | | 3 | Common Anti-Patterns | CRITICAL | `anti-` | | 4 | User Interaction | HIGH | `user-` | | 5 | Assertions | HIGH | `assert-` | | 6 | Component Setup | MEDIUM | `setup-` | | 7 | Test Structure | MEDIUM | `struct-` | | 8 | Debugging | LOW-MEDIUM | `debug-` | | 9 | Accessibility Testing | LOW | `a11y-` | ## Quick Reference ### 1. Query Selection (CRITICAL) - [`query-prefer-role`](references/query-prefer-role.md) - Prefer getByRole over other queries - [`query-avoid-testid`](references/query-avoid-testid.md) - Avoid getByTestId as primary query - [`query-use-screen`](references/query-use-screen.md) - Use screen for queries
Details
- Skill name
react-testing-library- Repository
- pproenca/dot-skills
- Path
skills/.experimental/react-testing-library/SKILL.md- License
- MIT
- Repo updated
- 15 August 2026
FAQ
What does the React Testing Library skill do?
React Testing Library best practices for writing maintainable, user-centric tests. Use when writing, reviewing, or refactoring RTL tests. Triggers on test files, testing patterns, getBy/queryBy queries, userEvent, waitFor, and component testing.
How do I install the React Testing Library skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add pproenca/dot-skills --skill react-testing-library. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is React Testing Library popular?
It lives in pproenca/dot-skills, which has 228 GitHub stars and 19 forks.
Related skills
12 Factor App
228pproenca/dot-skills
The Twelve-Factor App methodology for building scalable, maintainable cloud-native applications. Use when designing backend services, APIs, microservices, or any software-as-a-service application. Triggers on deployment patterns, configuration management, process architecture, logging, and infrastructure decisions.
37signals Rails
228pproenca/dot-skills
37signals Rails coding principles and conventions from DHH, Jorge Manrubia, and the Fizzy/Basecamp/HEY codebase. This skill should be used when writing, reviewing, or refactoring Ruby on Rails code following the 37signals philosophy — vanilla Rails, CRUD controllers, rich domain models, concerns, no service objects, Hotwire, Turbo, Stimulus, Solid Queue, Solid Cache, Solid Cable, multi-tenancy, Minitest, custom auth, or DHH conventions.
Acceptance Pipeline Catalog
228pproenca/dot-skills
Use when implementing, reviewing, or debugging a Gherkin acceptance-test pipeline with mutation testing. Covers parser, JSON IR, generator, runtime, step handlers, test runner, mutator, value mutation rules, execution, result classification, reporting, project layout, conformance, and agent setup. Based on Uncle Bob's Acceptance Pipeline Specification. Trigger even when the user mentions Gherkin parsing, acceptance test generation, mutation testing for acceptance tests, or building a portable test pipeline.
Rust Write Tests
228pproenca/dot-skills
Expert-level Rust testing — the "What Could Break?" framework, five transformations from superficial to expert tests, flake hunting protocol, intent-based assertions, naming conventions, and a mandatory self-review checklist. Triggers on writing Rust tests, designing test cases, improving test quality, or reviewing test coverage.
Rails Testing
228pproenca/dot-skills
Ruby on Rails testing best practices for writing effective, maintainable test suites with RSpec. This skill should be used when writing, reviewing, or refactoring Rails tests to ensure proper test design, data management, and coverage patterns. Triggers on tasks involving RSpec specs, model tests, request specs, system tests, factory definitions, Capybara interactions, Sidekiq job tests, or test suite optimization. Complementary to rails-dev, ruby-optimise, and ruby-refactor skills.
Solution Interview
150guia-matthieu/clawfu-skills
Test if your solution actually solves the validated problem before building the full product. Master the art of showing concepts and prototypes to get honest feedback on solution fit. Use when: **After problem interviews** to test if your solution addresses validated problems; **Before building MVP** to validate core value proposition; **Prototype testing** to get feedback on concepts and mockups; **Feature validation** to test if new features solve real problems; **Pivoting** to test alterna...
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.