Agent skill

React Testing

by citypaul in citypaul/.dotfiles

React component testing patterns including components, hooks, context, and forms.

Custom licenceAuto-check passedTesting & QA

Install React Testing

skills CLI
$ npx skills add citypaul/.dotfiles --skill react-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install citypaul/.dotfiles react-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/citypaul/.dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/.claude/skills/react-testing .claude/skills/react-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-testing
GitHub stars
739
Token cost
~3.6k tokens
SKILL.md length
1,121 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

React component testing patterns including components, hooks, context, and forms.

  • Works in 4 steps: Unnecessary act() wrapping → Testing component internals → Shallow rendering — and its modern… → …
  • Testing React applications
  • SKILL.md covers Vitest Browser Mode with React, React-Specific Anti-Patterns and Summary Checklist
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

React Testing is an agent skill from citypaul/.dotfiles. React component testing patterns including components, hooks, context, and forms. Covers Vitest Browser Mode with vitest-browser-react and @testing-library/react. Use when testing React applications. For general UI testing patterns, see the front-end-testing skill.

Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `resources/testing-library-react-legacy.md`).

It sits in Testing & QA, covering Unit testing, Test strategy and React components. It works with React, Vitest and Testing Library.

When your agent uses it

  • Testing React applications
  • Tasks that involve Unit testing
  • Tasks that involve Test strategy

Example prompts

  • “/react-testing”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Unnecessary act() wrapping
  2. Testing component internals
  3. Shallow rendering — and its modern spelling, mocking a child component
  4. Shared renders and cleanup ownership

What it can do on your machine

Read from SKILL.md and the folder at commit cd4028d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Testing loads about 3.6k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 1,121 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,121 words (~3,624 tokens).

“For general UI testing patterns (queries, events, async, accessibility, MSW), load the front-end-testing skill. For TDD workflow, load the tdd skill.”

— opening of SKILL.md by citypaul, Custom licence
name
react-testing

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in claude/.claude/skills/react-testing of citypaul/.dotfiles.

  • SKILL.md
  • resources/testing-library-react-legacy.md

Open the folder on GitHubat commit cd4028d

Compare with similar skills

React Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Testing this skillcitypaul/.dotfiles739—~3.6kAutomated safety check: PassCustom licence
React Testingaffaan-m/ECC274k1 repos~3.3kAutomated safety check: PassMIT
React TestingHoangNguyen0403/agent-skills-standard570—~1.3kAutomated safety check: PassMIT
Hilla TestAI-Unified-Process/marketplace140—~3.9kAutomated safety check: WarnApache-2.0
React Testinggetsentry/sentry45k—~2.2kAutomated safety check: PassCustom licence
Storybookpproenca/dot-skills214—~3.6kAutomated safety check: PassMIT

Similar skills

  • React Testing

    affaan-m/ECC

    React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress…

    274k GitHub starsUsed in 1 repo~3.3k tokens
    Testing & QAAuto-check passed
  • React Testing

    HoangNguyen0403/agent-skills-standard

    Test React components with RTL and Jest/Vitest. An agent skill from HoangNguyen0403/agent-skills-standard.

    570 GitHub stars~1.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Hilla Test

    AI-Unified-Process/marketplace

    Creates tests for Hilla use cases on both sides of the browser boundary: Vitest + React Testing Library tests for the React/TypeScript view (with the generated endpoint clients mocked) and Spring…

    140 GitHub stars~3.9k tokensUpdated 2 days ago
    Testing & QAAuto-check: warnings
  • React Testing

    getsentry/sentry

    Official

    Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library.

    45k GitHub stars~2.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Storybook

    pproenca/dot-skills

    A skill your agent uses whenever creating, configuring, or extending Storybook for a TS/React component library — covers main.ts/preview.ts setup, CSF3 story authoring, args/argTypes/controls…

    214 GitHub stars~3.6k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Unit Tests

    Khan/wonder-blocks

    Jest + React Testing Library best practices for Wonder Blocks unit tests.

    163 GitHub stars~4.2k tokensUpdated today
    Testing & QAAuto-check passed

More from citypaul/.dotfiles

All 44 skills in this repo
  • Find Skills

    citypaul/.dotfiles

    Discover and, with authorization, install agent skills from the open skills ecosystem.

    739 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed
  • Render Code Shape

    citypaul/.dotfiles

    Render the shape of code — module boundaries, the types that cross them, signatures, and a cited call graph — for code that already exists or a change about to be built.

    739 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed
  • Structure Codebase

    citypaul/.dotfiles

    Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

    739 GitHub stars~4.4k tokensUpdated 4 days ago
    Auto-check passed
  • Test Design Reviewer

    citypaul/.dotfiles

    Review test quality using Dave Farley's eight properties of good tests.

    739 GitHub stars~1k tokensUpdated 4 days ago
    Auto-check passed
  • Characterisation Tests

    citypaul/.dotfiles

    A skill your agent uses when modifying existing code that lacks tests and you need to document its actual current behavior before making changes -- the legacy code dilemma where you need tests to…

    739 GitHub stars~3.6k tokensUpdated 4 days ago
    Auto-check passed
  • CI Debugging

    citypaul/.dotfiles

    Systematic CI/CD failure diagnosis using hypothesis-first investigation, local reproduction, and environment delta analysis.

    739 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check: notes

Questions about React Testing

What does React Testing do?

React component testing patterns including components, hooks, context, and forms. dotfiles. React component testing patterns including components, hooks, context, and forms.

When should I use React Testing?

React Testing fits situations like: testing React applications; tasks that involve Unit testing; tasks that involve Test strategy.

How do I install React Testing in Claude Code?

Run `npx skills add citypaul/.dotfiles --skill react-testing -a claude-code`. Or copy the skill folder (claude/.claude/skills/react-testing in citypaul/.dotfiles) into .claude/skills/react-testing in your project. Claude Code loads it when a task matches its description.

How do I install React Testing in Codex?

Run `npx skills add citypaul/.dotfiles --skill react-testing -a codex`. Or copy the skill folder (claude/.claude/skills/react-testing in citypaul/.dotfiles) into .agents/skills/react-testing in your project. Codex loads it when a task matches its description.

Can I use React Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add citypaul/.dotfiles --skill react-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-testing, .gemini/skills/react-testing, .github/skills/react-testing and .opencode/skills/react-testing in your project.

What does React Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: React Testing is instructions for the agent only.

Does React Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is React Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Testing use?

React Testing has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does React Testing use?

About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to React Testing?

Skills that share tags, products or a category with React Testing: React Testing (affaan-m/ECC, 274k stars), React Testing (HoangNguyen0403/agent-skills-standard, 570 stars), Hilla Test (AI-Unified-Process/marketplace, 140 stars) and React Testing (getsentry/sentry, 45k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Testing?

citypaul (a GitHub user) maintains it in citypaul/.dotfiles, which has 739 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 2, 2026.

Source: citypaul/.dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.