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.
git clone --depth 1 https://github.com/vanessamarely/ai-playbook-repositoWrote 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/commands/vanessamarely/ai-playbook-reposito/react-component-builder)<a href="https://agentmods.dev/commands/vanessamarely/ai-playbook-reposito/react-component-builder"><img src="https://agentmods.dev/badge/commands/vanessamarely/ai-playbook-reposito/react-component-builder.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.00000 | $0.00734 |
| Opus 5 | $0.00000 | $0.00367 |
| Sonnet 5 | $0.00000 | $0.00147 |
| Haiku 4.5 | $0.00000 | $0.00073 |
Grade A, and why
react-component-builder 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 6d 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Component Builder
Create or modify a React component with TypeScript, ensuring accessibility compliance and adherence to project conventions. This follows the same standards as the always-applied react-components rule, run as a guided end-to-end build.
Inputs
componentName: PascalCase component name.specification: component behavior, props, and requirements.targetFolder: location within the project for the new component.
Outputs
- Component file (
.tsx), and — required — a matching test file. - Optional: Storybook story or style file.
- Verification command suggestions.
Procedure
- Validate inputs —
componentNameis PascalCase,targetFolderexists and is within project scope, check for naming conflicts with existing components. - Follow the
react-componentsrule for the full accessibility/TypeScript procedure (semantic HTML, keyboard support, ARIA, focus management). - Generate the component structure at
<targetFolder>/<componentName>.tsx:- Explicit TypeScript prop interface — discriminated unions for variants,
readonlywhere appropriate,React.ReactNodefor children, JSDoc on complex props:interface ButtonProps { /** Visual style variant */ variant: 'primary' | 'secondary' | 'danger' onClick: (event: React.MouseEvent<HTMLButtonElement>) => void disabled?: boolean children: React.ReactNode } - Semantic HTML, accessibility attributes, explicit return type (
const Component = (props: Props): JSX.Element => { ... }), noany(useunknown+ type guards instead).
- Explicit TypeScript prop interface — discriminated unions for variants,
- Apply project-specific overrides — check for an existing style guide or component-library documentation in the project and follow it; otherwise follow the project's existing conventions.
- Validate accessibility — semantic HTML, keyboard handlers on interactive elements, focus management for modals/dynamic content, ARIA valid and necessary. If
eslint-plugin-jsx-a11yis configured, suggestnpm run lint. - Handle errors and edge cases:
- Async data: use an
AsyncState<T>discriminated union (idle|loading|success|error). - Add error boundaries for top-level components.
- Loading states get proper ARIA announcements; use exhaustive
never-type checks for state machines.
- Async data: use an
- Generate a test file (required) —
<componentName>.test.tsx: basic render test with RTL, an accessibility test withjest-axe:
Plus keyboard-interaction tests and error-state tests where applicable.import { axe, toHaveNoViolations } from 'jest-axe' expect.extend(toHaveNoViolations) test('should have no accessibility violations', async () => { const { container } = render(<Component {...props} />) expect(await axe(container)).toHaveNoViolations() }) - Report a summary: paths to the component and test files, functionality description, TypeScript patterns used, accessibility features implemented, and verification commands (
npm run lint,npm test -- <componentName>,npm run type-check,npm run lint:a11yif available).
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.
- 6d ago First seen · 56 lines · 0 tokens per session scan A 97b2bd78a543
react-component-builder is a command published in the GitHub repository vanessamarely/ai-playbook-reposito (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 734 tokens. 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.
Other commands, from other repositories
prototype-loop
Enter leveraged-prototype focus mode — focus marker plus normal watch/rebuild loop for visual-parity work and batch upstream framework gap-fixes.
review-arch
Review the current branch for code quality, TypeScript, and React/Next.js patterns. Supports whole-branch review or scoped review by path, feature, or base branch.
create-variant
Add a new variant to an existing shadcn/ui component.
react-build
Fix React build failures (Vite, webpack, Next.js, CRA, Parcel, esbuild, Bun) incrementally — JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types. Invokes the react-build-resolver agent for minimal, surgical fixes.
next-upgrade
Structured workflow for upgrading Next.js applications across major versions. Use when migrating a Next.js project from one major version to another (e.g., 13 to 14, 14 to 15, 15 to 16). Covers codemod automation, breaking change detection, incremental migration paths, and post-upgrade validation.
web-design
Design and build a complete website or webapp from a project brief — end-to-end workflow from design to working React/Vite code.