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 AmariahAK/atlarix-skills --skill reactgit clone --depth 1 https://github.com/AmariahAK/atlarix-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/amariahak/atlarix-skills/react)<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/react"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/react.svg" alt="Measured on agentmods" 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.00003 | $0.01354 |
| Opus 5 | $0.00002 | $0.00677 |
| Sonnet 5 | $0.00001 | $0.00271 |
| Haiku 4.5 | $0.00000 | $0.00135 |
Grade A, and why
React Component Patterns 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 4d 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 — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Component Patterns
When to use this skill
Use this skill when you’re building or refactoring React components in a production app and want consistent patterns for typing, composition, state, and performance without introducing premature abstraction.
Core patterns
Functional components only
- Prefer function components with named exports.
- Keep props explicit and stable (avoid
...restunless you’re building a wrapper that truly forwards).
Example:
export interface ButtonProps {
variant?: "primary" | "secondary";
disabled?: boolean;
onClick?: () => void;
children: React.ReactNode;
}
export function Button({ variant = "primary", disabled, onClick, children }: ButtonProps) {
return (
<button data-variant={variant} disabled={disabled} onClick={onClick}>
{children}
</button>
);
}
Prop typing with interfaces (and when to use type)
- Use
interfacefor public component props (extends well, readable in IDEs). - Use
typefor unions, helpers, and composition. - Prefer narrow props over “god props”.
Patterns:
interface XProps { ... }type Variant = "a" | "b"type Props = XProps & { ... }when combining.
Controlled inputs (default for forms)
Controlled inputs make state explicit and testable.
Pattern:
- Keep the source of truth in parent.
- Child receives
value+onChange(next).
export interface TextFieldProps {
value: string;
onChange: (next: string) => void;
label?: string;
}
export function TextField({ value, onChange, label }: TextFieldProps) {
return (
<label>
{label}
<input value={value} onChange={(e) => onChange(e.target.value)} />
</label>
);
}
Component file structure (predictable + scalable)
For components/Foo/:
Foo.tsx(component)Foo.test.tsx(tests)Foo.stories.tsx(storybook if used)types.ts(shared types) only if it grows
Avoid:
- gigantic
index.tsbarrels that hide imports - “utils.ts dumping ground”
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.
- 4d ago First seen · 174 lines · 3 tokens per session scan A f5457ed20215
React Component Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 3 tokens to every session and 1,354 once invoked, about $0.0000 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-09-03.
Other skills, from other repositories
react-hooks-composition
Advanced React hooks composition patterns - SWR integration, debounced search, memoized contexts, state machines, and performance optimization.
react-development
Comprehensive React development with hooks, components, state management, context, effects, and performance optimization based on official React documentation.
magic-ui
Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects. It covers component selection, shadcn registry installation (@magicui/), integration patterns, and practical quality checks for accessibility and maintainability.
react-hooks-best-practices
Provides React patterns for hooks, effects, refs, and component design. Covers escape hatches, anti-patterns, and correct effect usage. Use when reading or writing React components with hooks or effects.
react-best-practices
React and Next.js performance playbook distilled from Vercel Engineering guidance. Use when building, reviewing, or refactoring React/Next.js code for waterfalls, bundle size, rendering cost, and client/server data flow.
webmcp-add-tool
Scaffolds a new WebMCP tool component using useMcpTool with Zod schema, handler, annotations, and wires it into the WebMCPProvider tree. Use when the user wants to expose functionality as an MCP tool, make something callable by AI, add a new tool, or create an AI-accessible action.