react-arch

react-arch is a skill for Claude Code from landim32/awesome-ai-skills. It costs 64 tokens per session (3,921 once invoked), scanned A, original, MIT.

A React application scaffolding guide for adding a new business object or feature area. It creates the TypeScript types, API service, shared state provider, custom hook, and provider registration needed for that area.

In plain words
What is it for?
Use it when adding entities such as clans, achievements, or shops to a React app, once the entity name, API path, and fields are known.
Why use it?
It gives new frontend features a consistent structure and checks the project before creating files to reduce duplicate or mismatched code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Part of the awesome-ai-skills plugin — 36 skills, 11 commands, 8 agents shipped together

Good fit Use it when adding entities such as clans, achievements, or shops to a React app, once the entity name, API path, and fields are known.

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/landim32/awesome-ai-skills
agentmods
npx agentmods add skills/landim32/awesome-ai-skills/react-arch

Made for: Claude Code.

Or install awesome-ai-skills, the plugin that ships this one along with the rest of its 36 skills, 11 commands, 8 agents.

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-arch

README.md
[![agentmods](https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/react-arch/github.svg)](https://agentmods.dev/skills/landim32/awesome-ai-skills/react-arch)
Your own site
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/react-arch"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/react-arch/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-arch

Your own site · 80×15
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/react-arch"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/react-arch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,921 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.00064 $0.03921
Opus 5 $0.00032 $0.01961
Sonnet 5 $0.00013 $0.00784
Haiku 4.5 $0.00006 $0.00392

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

Security

Grade A, and why

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/react-arch/SKILL.md · 402 lines

How it starts

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

This skill defines the standard approach for scaffolding a complete frontend entity architecture in this project. It creates all necessary files following the established patterns: Types, Service, Context, Hook, and Provider registration.

Prerequisites

Before creating the architecture, you MUST:

  1. Ask the user for the entity name (e.g., "Clan", "Achievement", "Shop")
  2. Ask the user for the API base path (e.g., "/api/clan", "/api/achievement")
  3. Ask the user for the entity fields/properties or check if API documentation exists in docs/
  4. Check if the entity already exists — search src/types/, src/services/, src/contexts/, and src/hooks/ before creating anything

Creation Order

Always create files in this exact order:

  1. Typessrc/types/{entity}.ts
  2. Servicesrc/services/{entity}Service.ts
  3. Contextsrc/contexts/{Entity}Context.tsx
  4. Hooksrc/hooks/use{Entity}.ts
  5. Provider registrationsrc/main.tsx

Rules

  1. Never use any type — all types must be explicitly defined.
  2. Never use alert() or window.confirm() — use toast from sonner for notifications and ConfirmModal for confirmation dialogs.
  3. Always use useCallback for all context methods to prevent unnecessary re-renders.
  4. Always include loading, error, and main data state in every context.
  5. Always use the class-based service pattern with private handleResponse method.
  6. Always use getHeaders(true) from apiHelpers for authenticated requests.
  7. Always check result.sucesso before updating state (API responses use Portuguese keys).
  8. Always export both the singleton instance and the class from services.
  9. Always export the context as default and the provider as named export.
  10. Always add JSDoc comments to service methods and type interfaces.

Step 1: Create Types

File: src/types/{entity}.ts

/** {Entity} Types — Types for the {entity description} system */

// Enums (if needed)
export enum {Entity}StatusEnum {
  Unknown = 0,
  Active = 1,
  Inactive = 2,
}

// Core Entity
/** Main {entity} information */
export interface {Entity}Info {
  {entity}Id: number;
  name: string;
  // ... other fields with JSDoc comments
}

// DTOs
/** Data required to create a new {entity} (no ID) */
export interface {Entity}InsertInfo {
  name: string;
  // ... fields required for creation
}

/** Data required to update an existing {entity} (includes ID) */
export interface {Entity}UpdateInfo {
  {entity}Id: number;
  name: string;
  // ... fields required for update
}

// API Response Types — always include sucesso, mensagem, erros (Portuguese keys)
export interface {Entity}ListResult {
  {entities}: {Entity}Info[];
  sucesso: boolean;
  mensagem: string | null;
  erros: string[] | null;
}

export interface {Entity}GetResult {
  {entity}: {Entity}Info;
  sucesso: boolean;
  mensagem: string | null;
  erros: string[] | null;
}

/** Status-only operation result (import from existing types file if already defined) */
export interface StatusResult {
  sucesso: boolean;
  mensagem: string;
  erros: string[] | null;
}

Read the full file on GitHub · 402 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. 9d ago First seen · 402 lines · 64 tokens per session scan A 296a2a9b2bb4

Subscribe to this mod's changes

react-arch is a skill published in the GitHub repository landim32/awesome-ai-skills (1 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 3,921 once invoked, about $0.0003 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

react-native-expert

Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS and Android. Use when building a React…

Jeffallan/claude-skills · 99 tokens

react-expert

Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components, implements custom hooks, debugs rendering issues, migrates class components to functional, and implements state management. Invoke for Server Components, Suspense boundaries…

Jeffallan/claude-skills · 79 tokens

angular-architect

Generates Angular 17+ standalone components, configures advanced routing with lazy loading and guards, implements NgRx state management, applies RxJS patterns, and optimizes bundle performance. Use when building Angular 17+ applications with standalone components or signals, setting up NgRx stores, establishing RxJS…

Jeffallan/claude-skills · 77 tokens

fullstack-guardian

Builds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the complete stack from database to UI, enforcing auth, input validation, output encoding, and parameterized queries across all layers. Use when implementing…

Jeffallan/claude-skills · 164 tokens

nextjs-developer

Use when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set up API routes, add streaming SSR, write generateMetadata for SEO, scaffold loading.tsx/error.tsx boundaries, or deploy to Vercel. Triggers on: Next.js, Next.js…

Jeffallan/claude-skills · 115 tokens

shopify-expert

Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing…

Jeffallan/claude-skills · 117 tokens