primitives: Skill for Claude Code

.claude/skills/testing/SKILL.md

testing is a skill for Claude Code from radix-ng/primitives. It costs 184 tokens per session (3,098 once invoked), scanned A, original, MIT.

Testing guidance for Radix NG interface components across unit tests, accessibility checks, browser tests, server rendering, and performance tests. Unit tests check small pieces of code, while browser tests check behavior in a real page.

In plain words
What is it for?
Use it to test component logic, keyboard behavior, ARIA accessibility, layout, floating overlays, server rendering, and performance.
Why use it?
It helps choose a test type that can actually detect the change, especially for layout, overlays, positioning, and visibility that simulated pages cannot reproduce.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is radix-ng/primitives's own configuration. It tells Claude Code how to work on primitives itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything primitives configures →

Reuse

Borrowing it

Nothing to install: this file belongs to radix-ng/primitives. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/radix-ng/primitives/main/.claude/skills/testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/radix-ng/primitives

Made for: Claude Code.

Wrote 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.

agentmods badge for testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/radix-ng/primitives/testing/github.svg)](https://agentmods.dev/skills/radix-ng/primitives/testing)
Your own site
<a href="https://agentmods.dev/skills/radix-ng/primitives/testing"><img src="https://agentmods.dev/badge/skills/radix-ng/primitives/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.

agentmods 80×15 button for testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/radix-ng/primitives/testing"><img src="https://agentmods.dev/badge/skills/radix-ng/primitives/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,098 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 175
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00184 $0.03098
Opus 5.5 $0.00074 $0.01239
Sonnet 5.5 $0.00037 $0.00620
Haiku 4.5 $0.00018 $0.00310

Measured 2mo ago against content hash 6af8796d8de2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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.

.claude/skills/testing/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing Radix NG Primitives

First pick the layer, then write the test. Most bugs in this library are caught by Vitest unit tests — but the suite runs in jsdom, which has no real layout (no box sizes, offsetHeight / scroll metrics, flexbox resolution, getComputedStyle geometry, or floating-ui positioning), and never opens an overlay the way a user does. Those gaps have their own layers. Match the change to the layer below before writing anything.

Decision matrix — what changed → which layer

The change you made / bug you fixed Add / run the test here
Directive logic, state, signals, inputs/outputs, keyboard handlers, value/selection model Unit — packages/primitives/<name>/__tests__/*.spec.ts
ARIA roles / aria-* / label associations Unit + jest-axe in the same spec
Layout / flex / overflow / scroll, part visibility ([hidden]), sizing, z-index Browser — apps/visual-regression/tests/<name>.behavior.spec.ts (jsdom is blind)
Overlay positioning (side/align/collision), *rdxXxxPortal teleport target, anatomy nesting Browser — behavior.spec.ts (+ overlays.visual.spec.ts for the open-state look)
A bug that throws only on open/interaction — NG0201 (missing provider), NG0951 (required query) Browser — behavior.spec.ts with pageerror/console listeners
Pixel-level visual / styling regression Browser — *.visual.spec.ts screenshot baseline
SSR render, hydration (ngh), SSR-stable ids, platform guards SSR — apps/radix-ssr-testing/src/ssr-rendering.spec.ts (+ keep the page current)
Render/update performance of a primitive Perf — apps/radix-perf-testing/src/tests/<name>.bench.ts

Read the full file on GitHub · 200 lines

Changes

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.

  1. 2mo ago First seen · 200 lines · 184 tokens per session scan A 6af8796d8de2

Subscribe to this mod's changes

testing is a skill published in the GitHub repository radix-ng/primitives (277 stars, last pushed 2d ago), licensed MIT. It adds 184 tokens to every session and 3,098 once invoked, about $0.0007 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-30.

Related

testing compared with skills from other repositories

testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingradix-ng/primitivesSkill2772d agoMITA184Claude Code
test-componentdb-ux-design-system/core-webSkill137yesterdaynoneA34Claude Code, Codex
testing-strategiesancoleman/ai-design-componentsSkill52711mo agoMITA76Claude Code
fullstack-testing-and-quality-gatesvaquarkhan/Fullstack-development-agent-skillsSkill32mo agoMITA37Claude Code
testing-strategyaneja5/forge-skillsSkill35mo agoMITA53Claude Code
next-cache-components-optimizervercel/next.jsSkill143ktodayMITA123Claude Code
next-partial-prefetching-optimizervercel/next.jsSkill143ktodayMITA82Claude Code