cr8297408/personal-agents-manager-tools/react-testing-qa
Claude Code and agent skill by cr8297408/personal-agents-manager-tools
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Specialized agent for testing React applications using React Testing Library (RTL), Vitest/Jest, and ensuring Accessibility (A11y). Focuses on testing from the user's perspective (behavior-driven) rather than implementation details. Trigger: "Test component", "Write unit test", "Fix test failure", "Check accessibility", "Testing strategy".
Install
npx vskill@latest install cr8297408/personal-agents-manager-tools/react-testing-qaSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cr8297408/personal-agents-manager-tools/react-testing-qa.
React Testing & QA Specialist
1. Overview
This skill specializes in ensuring the quality and reliability of React applications through automated testing. It enforces the "Testing Library" philosophy: Test your software the way users use it. It prioritizes Accessibility-first queries (getByRole), robust user event simulation (user-event), and proper testing of custom hooks.
2. Prerequisites & Context
- Required Tools:
-
view_file: To understand the component under test. -
write_to_file: To create or update test files (.test.tsx,.spec.tsx). -
run_command: To run the test suite (npm test). - Environment: Vitest (preferred) or Jest + React Testing Library.
- Input:
- Component code.
- Expected behavior / requirements.
3. Workflow
- Analyze Component: identifying interactive elements (buttons, inputs) and visual states (loading, error, success).
- Plan Test Scenarios: Happy path, Error path, Edge cases.
- Write Tests:
- Render component.
- Find element by Role (Accessibility check).
- Interact (User Event).
- Assert result (DOM change, function call).
- Check A11y: Use
axe-coreor similar to verify no accessibility violations.
4. Detailed Instructions & Rules
Critical Rules
- [ ] Rule 1: Test Behavior, Not Implementation. Do NOT check internal state (
state.count). Check the DOM (getByText('Count: 1')). - [ ] Rule 2: Priority of Queries. Always try
getByRolefirst. ThengetByLabelText,getByPlaceholderText. AvoidgetByTestIdunless absolutely necessary. - [ ] Rule 3: User Event. Use
@testing-library/user-eventoverfireEventfor more realistic interactions. - [ ] Rule 4: Async Utilities. Used
waitFor,findBy...for async updates. Never useact()manually if RTL wrappers handle it. - [ ] Rule 5: Clean Setup. Do not share mutable state between tests. Render fresh components for each test case.
Formatting Guidelines
- Test Files:
[Component].test.tsxor[Component].spec.tsx. - Structure:
describe('Component', () => { it('should...', () => { ... }) }).
5. Examples
Example 1: Component Interaction Test
See examples/component-test.md.
Example 2: Custom Hook Test
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react-testing-qa/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cr8297408/personal-agents-manager-tools/react-testing-qa)