Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lanamaysu/agent-skills --skill jest-rtl-testinggit clone --depth 1 https://github.com/lanamaysu/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lanamaysu/agent-skills/jest-rtl-testing)<a href="https://agentmods.dev/skills/lanamaysu/agent-skills/jest-rtl-testing"><img src="https://agentmods.dev/badge/skills/lanamaysu/agent-skills/jest-rtl-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lanamaysu/agent-skills/jest-rtl-testing"><img src="https://agentmods.dev/badge/skills/lanamaysu/agent-skills/jest-rtl-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.00776 |
| Opus 5.5 | $0.00011 | $0.00310 |
| Sonnet 5.5 | $0.00006 | $0.00155 |
| Haiku 4.5 | $0.00003 | $0.00078 |
Grade A, and why
jest-rtl-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Jest + React Testing Library Best Practices
Core principle: A test interacts with the application as a user does. A test does not check implementation details.
Pre-Check
Do these steps before you write a test:
- Find
AGENTS.mdin the project root. If it exists, read its Testing section. - Follow the
AGENTS.mdrules when they conflict with this skill.
Do not use this skill for pure-function tests (no DOM, no React), E2E tests, performance tests or visual regression tests.
Quick Reference
Query Priority
getByRole is slow on large views (issue 820), so the list puts getByLabelText and getByText first.
Use the first query in this list that finds the element:
getByLabelText: use for form fields.getByText: use for non-interactive content.getByRole: use only in small components. It also checks accessibility.getByPlaceholderText,getByDisplayValue,getByAltText.getByTestId: use only when no query above works. Add a code comment that tells why no accessible query works.
Query types:
getBy*: the element must exist. The query throws an error if it finds no element.queryBy*: use to assert that an element is absent. The query returnsnull.findBy*: use to wait for an element. The query returns a Promise.
Core Principles
- Async: Use
findBy*to wait for an element to appear. UsewaitForElementToBeRemovedto wait for an element to disappear. - Real interactions: Use
@testing-library/user-event. Do not usefireEventwhenuser-eventcan do the interaction. - HTTP mocks: Use MSW to mock network requests. Do not mock
fetchoraxiosmanually.
Debugging
- Use
screen.debug()to show the DOM. - Make sure that the query type is correct:
getBy*,queryBy*orfindBy*. - Use
screen.logTestingPlaygroundURL()to find a better query.
References
Do not read a reference file from start to end. Find the heading with grep -n '^#' <file>, then read only that section.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -16 lines 9076f85330e7
- 2mo ago First seen · 93 lines · 28 tokens per session scan A 4fdc9cae2392
jest-rtl-testing is a skill published in the GitHub repository lanamaysu/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 776 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
jest-rtl-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jest-rtl-testinglanamaysu/agent-skills | Skill | 2 | 1mo ago | MIT | A | 28 | Claude Code, Codex |
| react-native-testingcallstack/react-native-testing-library | Skill | 3.4k | 2d ago | MIT | A | 134 | Claude Code, Codex |
| verify-workHoangNguyen0403/agent-skills-standard | Skill | 583 | today | MIT | A | 23 | Codex |
| vitestjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 87 | Claude Code |
| authoring-data-quality-checksPostHog/posthog | Skill | 41k | today | none | A | 174 | Claude Code, Codex |
| appbuilder-testingadobe/skills | Skill | 321 | today | Apache-2.0 | A | 201 | Claude Code |
| authoring-benchmarksNVIDIA/elements | Skill | 115 | yesterday | Apache-2.0 | A | 105 | Claude Code, Codex |