react-patterns

react-patterns is a skill for Claude Code, Codex from bdiasti/maestro-bundle-cli. It costs 49 tokens per session (2,021 once invoked), scanned A, original, MIT.

A collection of React and TypeScript patterns for organizing components, shared logic, forms, validation, and rendering errors. React is a JavaScript library for building user interfaces, while TypeScript adds type checking.

In plain words
What is it for?
Use it to create custom hooks, compose components, separate data handling from presentation, add recovery for rendering errors, and build forms validated with React Hook Form and Zod.
Why use it?
It reduces tangled component code and repeated logic as a frontend application grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { itemApi } from '../services/itemApi';.

Good fit Use it to create custom hooks, compose components, separate data handling from presentation, add recovery for rendering errors, and build forms validated with React Hook Form and Zod.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bdiasti/maestro-bundle-cli
agentmods
npx agentmods add skills/bdiasti/maestro-bundle-cli/react-patterns

Made for: Claude Code, Codex.

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 react-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/react-patterns/github.svg)](https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/react-patterns)
Your own site
<a href="https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/react-patterns"><img src="https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/react-patterns/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 react-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/react-patterns"><img src="https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/react-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,021 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.00049 $0.02021
Opus 5.5 $0.00020 $0.00808
Sonnet 5.5 $0.00010 $0.00404
Haiku 4.5 $0.00005 $0.00202

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

Security

Grade A, and why

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

templates/bundle-frontend-spa/skills/react-patterns/SKILL.md · 256 lines

How it starts

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

React Patterns

Apply proven React + TypeScript patterns for scalable, maintainable frontend code.

When to Use

  • User needs to create a custom hook for data fetching or shared logic
  • User wants to structure a feature using container/presenter pattern
  • User needs to build a form with validation (React Hook Form + Zod)
  • User wants to add error boundaries to catch rendering errors
  • User needs to compose components instead of using deep prop drilling

Available Operations

  1. Create custom hooks for data fetching with React Query
  2. Build components using composition pattern (slots, children)
  3. Implement container/presenter separation
  4. Add error boundaries with recovery
  5. Build validated forms with React Hook Form + Zod

Multi-Step Workflow

Step 1: Set Up Project Dependencies

npm install @tanstack/react-query react-hook-form @hookform/resolvers zod react-error-boundary
npm install -D @types/react @types/react-dom typescript

Step 2: Create Custom Hooks for Data Fetching

// src/hooks/useItems.ts
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { itemApi } from '../services/itemApi';
import { toast } from 'sonner';

export function useItems(filters?: ItemFilters) {
  return useQuery({
    queryKey: ['items', filters],
    queryFn: () => itemApi.list(filters),
    staleTime: 30_000,
  });
}

export function useItem(id: string) {
  return useQuery({
    queryKey: ['items', id],
    queryFn: () => itemApi.get(id),
    enabled: !!id,
  });
}

export function useCreateItem() {
  const queryClient = useQueryClient();
  return useMutation({
    mutationFn: itemApi.create,
    onSuccess: () => {
      queryClient.invalidateQueries({ queryKey: ['items'] });
      toast.success('Item created');
    },
    onError: (err) => toast.error(err.message),
  });
}

Step 3: Build Components with Composition

// src/components/Card.tsx
interface CardProps {
  children: React.ReactNode;
  className?: string;
}

export function Card({ children, className }: CardProps) {
  return <div className={cn('rounded-lg border bg-white shadow-sm', className)}>{children}</div>;
}

Card.Header = function CardHeader({ children }: { children: React.ReactNode }) {
  return <div className="flex items-center justify-between p-4 border-b">{children}</div>;
};

Card.Content = function CardContent({ children }: { children: React.ReactNode }) {
  return <div className="p-4">{children}</div>;
};

Card.Footer = function CardFooter({ children }: { children: React.ReactNode }) {
  return <div className="p-4 border-t bg-gray-50">{children}</div>;
};

// Usage:
<Card>
  <Card.Header>
    <h3>{item.title}</h3>
    <StatusBadge status={item.status} />
  </Card.Header>
  <Card.Content>
    <p>{item.description}</p>
  </Card.Content>
  <Card.Footer>
    <ProgressBar value={item.progress} />
  </Card.Footer>
</Card>

Read the full file on GitHub · 256 lines

Files

What ships with it

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

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 · 256 lines · 49 tokens per session scan A a54013d66682

Subscribe to this mod's changes

react-patterns is a skill published in the GitHub repository bdiasti/maestro-bundle-cli (22 stars, last pushed 7mo ago), licensed MIT. It adds 49 tokens to every session and 2,021 once invoked, about $0.0002 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

react-patterns compared with skills from other repositories

react-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-patternsbdiasti/maestro-bundle-cliSkill227mo agoMITA49Claude Code, Codex
custom-featuresTanStack/tableSkill29k10d agoMITA35Claude Code, Codex
fast-typescript-checkinternet-development/www-sacredSkill1.6k9d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k9d agoMITA0Claude Code, Codex
adding-personhog-rpcPostHog/posthogSkill41ktodaynoneA88Claude Code, Codex
splitting-oversized-modulesPostHog/posthogSkill41ktodaynoneA197Claude Code, Codex
writing-dataclassesPostHog/posthogSkill41ktodaynoneA157Claude Code, Codex