agentic-design-system: Skill for Claude Code

.claude/skills/add-component-tests/SKILL.md

add-component-tests is a skill for Claude Code from brianmontanaweb/agentic-design-system. It costs 74 tokens per session (879 once invoked), scanned A, original, MIT.

A workflow for creating and running unit tests for an existing interface component in @agentic-ds/core or @agentic-ds/agents. It emphasizes accessibility checks such as roles and expanded states, alongside normal interaction tests.

In plain words
What is it for?
Use it to add missing tests, improve coverage, and verify keyboard-accessible behavior and user interactions in an existing component.
Why use it?
It gives component tests a consistent setup and avoids tests that only confirm that something renders. It also handles realistic user actions and timed behavior such as delays or debounced input.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: reads .claude/ paths.

This is brianmontanaweb/agentic-design-system's own configuration. It tells Claude Code how to work on agentic-design-system 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 agentic-design-system configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brianmontanaweb/agentic-design-system. 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/brianmontanaweb/agentic-design-system/main/.claude/skills/add-component-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/brianmontanaweb/agentic-design-system

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 add-component-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-tests/github.svg)](https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-tests)
Your own site
<a href="https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-tests"><img src="https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-tests/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 add-component-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-tests"><img src="https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 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.
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.00074 $0.00879
Opus 5 $0.00037 $0.00439
Sonnet 5 $0.00015 $0.00176
Haiku 4.5 $0.00007 $0.00088

Measured 9d ago against content hash 355e1e8eeff3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

add-component-tests 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 9d 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/add-component-tests/SKILL.md · 78 lines

How it starts

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

Add Component Tests

Create and run unit tests given $ARGUMENTS in the format <ComponentName>.


Gotchas

  • Test files DO import Reactimport React from 'react'; this is the opposite of the source/story rule.
  • Use renderWithProviders, never render directly — it wraps in AgenticProvider so Chakra tokens resolve. Import it from '../__tests__/test-utils' (relative to the component directory).
  • Use userEvent, not fireEventuserEvent.setup() simulates real browser events. Pass { advanceTimers: vi.advanceTimersByTime } when the component has debounce/delay timers.
  • Use fake timers for components with setTimeoutvi.useFakeTimers() in beforeEach, vi.useRealTimers() in afterEach.
  • Test ARIA firstrole, aria-live, aria-expanded, etc. prove accessibility correctness, not just render correctness.
  • No approval gate — creating one test file and running it is the whole task; proceed without asking.

Step 1 — Locate the component source

ls packages/core/src/<ComponentName>/<ComponentName>.tsx packages/agents/src/<ComponentName>/<ComponentName>.tsx 2>/dev/null

If no output, stop immediately and respond:

## No source: <ComponentName>

Neither package contains `<ComponentName>`. Create it first with
`/add-component-source <ComponentName>` (source only) or `/add-component <ComponentName>` (full scaffold).

Infer the package (core or agents) from which path exists.

Step 2 — Read context

Read:

  • .claude/skills/shared/references/testing.md — required imports, test groups, timer/userEvent rules
  • The component source file — enumerate props, states, ARIA attributes, and interactive behavior to cover
  • One existing test file in the target package (e.g. packages/agents/src/ThinkingIndicator/ThinkingIndicator.test.tsx) — test style
  • If packages/<package>/src/<ComponentName>/<ComponentName>.test.tsx already exists, read it — extend it, don't recreate it

Step 3 — Create or extend the test file

Read the full file on GitHub · 78 lines

Files

What ships with it

1 file 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.

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. 9d ago First seen · 78 lines · 74 tokens per session scan A 355e1e8eeff3

Subscribe to this mod's changes

add-component-tests is a skill published in the GitHub repository brianmontanaweb/agentic-design-system (3 stars, last pushed 19d ago), licensed MIT. It adds 74 tokens to every session and 879 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories