react-application-structure

react-application-structure is a skill for Claude Code, Codex from soulcodex/agentic. It costs 63 tokens per session (734 once invoked), scanned A, original, MIT.

A set of rules for organising a React 18 or newer TypeScript application, including folders, feature boundaries, shared state, navigation, and data fetching.

In plain words
What is it for?
Use it when setting up a React project, choosing its folder layout, or checking conventions for components, hooks, routes, providers, and API code.
Why use it?
It keeps related code together and makes a growing React application easier to extend and review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it when setting up a React project, choosing its folder layout, or checking conventions for components, hooks, routes, providers, and API code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/react-application-structure
Install

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.

Any agent
npx skills add soulcodex/agentic --skill react-application-structure
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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-application-structure

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/react-application-structure"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/react-application-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 734 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00063 $0.00734
Opus 5.5 $0.00025 $0.00294
Sonnet 5.5 $0.00013 $0.00147
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

react-application-structure 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 3mo 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.

skills/ui/react-application-structure/SKILL.md · 108 lines

How it starts

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

React Application Structure Skill

Step 1 — Directory Layout (Feature-Based)

Organise by feature, not by file type. Co-locate everything a feature needs:

src/
  app/
    providers/
      QueryProvider.tsx
      RouterProvider.tsx
  features/
    auth/
      components/
        AuthLoginForm.tsx
      hooks/
        useAuth.ts
      state/
        auth.store.ts
      api/
        auth.api.ts
      types/
        auth.types.ts
  components/
    ui/
      Button.tsx
      Modal.tsx
  routes/
    index.tsx
  lib/
    http.ts
    env.ts
  styles/
  main.tsx

Step 2 — Component and Hook Conventions

  • Use function components with TypeScript; no class components.
  • Keep components thin; move reusable logic to custom hooks.
  • Name hooks with the use prefix and keep single responsibility.
  • Keep side effects in hooks/components where they are consumed; avoid hidden global effects.
  • Use alias imports for cross-directory modules and ESM import/export syntax only.
interface Props {
  userId: string
  readonly?: boolean
}

export function UserCard({ userId, readonly = false }: Props) {
  const { user } = useAuthUser(userId)
  return <section>{readonly ? user.name : <strong>{user.name}</strong>}</section>
}

Step 3 — State Management Boundaries

  • Local transient UI state: useState / useReducer.
  • Shared server state: TanStack Query (queries + mutations).
  • Shared client state across features: Zustand or Redux Toolkit slice per domain.
  • Do not duplicate server state into client stores unless offline/derived behaviour requires it.

Step 4 — Routing and Entry Points

  • Use a typed router setup (react-router-dom data routers or framework router).
  • Keep route definitions in routes/ and route-level loaders/actions with route modules.
  • Lazy-load route components where possible.
  • Route guards should be centralized helper wrappers, not repeated inline logic.

Step 5 — Data and API Layer

  • Keep API clients in features/*/api or shared lib/http.ts.
  • Normalize error handling in one place (interceptor or query/mutation wrapper).
  • Validate API payloads at boundaries (for example Zod schemas) before wider app use.

Read the full file on GitHub · 108 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. 3mo ago First seen · 108 lines · 63 tokens per session scan A d09b913e8a43

Subscribe to this mod's changes

react-application-structure is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 13d ago), licensed MIT. It adds 63 tokens to every session and 734 once invoked, about $0.0003 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-31.

Related

react-application-structure compared with skills from other repositories

react-application-structure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-application-structuresoulcodex/agenticSkill1013d agoMITA63Claude Code, Codex
agent-upkeepNVIDIA/elementsSkill122todayApache-2.0A115Claude Code, Codex
agent-dependenciesNVIDIA/elementsSkill122todayApache-2.0A73Claude Code, Codex
agent-debug-ciNVIDIA/elementsSkill122todayApache-2.0A80Claude Code, Codex
audit-ciNVIDIA/elementsSkill122todayApache-2.0A78Claude Code, Codex
authoring-projectsNVIDIA/elementsSkill122todayApache-2.0A97Claude Code, Codex
audit-consolidationNVIDIA/elementsSkill122todayApache-2.0A126Claude Code, Codex