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 agentmods add skills/soulcodex/agentic/react-application-structurenpx skills add soulcodex/agentic --skill react-application-structuregit clone --depth 1 https://github.com/soulcodex/agenticWhat 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 | $0.00063 | $0.00734 |
| Opus 5 | $0.00032 | $0.00367 |
| Sonnet 5 | $0.00013 | $0.00147 |
| Haiku 4.5 | $0.00006 | $0.00073 |
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 2d 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 — 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
useprefix 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/exportsyntax 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-domdata 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/*/apior sharedlib/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.
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.
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.
- 2d ago First seen · 108 lines · 63 tokens per session scan A d09b913e8a43
react-application-structure is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 734 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.
Other skills, from other repositories
beui
Pick and install beUI (@beui) animated React components from the shadcn registry. Use when building motion UI, agent/chat interfaces, toasts, docks, bottom sheets, drawers, popovers, sliders, loaders, 404 pages, or any beui.dev component. Maps user intent to exact @beui install slugs instead of inventing custom…
beui-pro
Choose, inspect, install, and compose licensed beUI Pro premium React blocks from the authenticated shadcn registry. Use when building or improving landing pages with beUI Pro, installing @beui-pro items, selecting premium heroes, features, pricing, social proof, CTAs, navigation, footers, or other page sections, or…
agent-upkeep
Perform one small, scoped maintenance improvement to the Elements monorepo and open a single reviewable pull request. Use this skill for scheduled or unattended upkeep runs that improve unit test coverage for one file, fix one behavioral bug in one module, or move one off ESLint rule toward enforcement to reduce…
agent-dependencies
Perform one conservative dependency or toolchain upgrade in the Elements monorepo and open a validated pull request. Use for nightly or unattended dependency maintenance, outdated package checks, first-party actions/ GitHub Actions updates, and pinned mise tool updates. Use the github-dependabot skill instead when the…
agent-debug-ci
Investigate failed scheduled or nightly GitHub Actions runs on the default branch, determine whether the failure is reproducible and repository-owned, implement the smallest evidence-backed fix, validate it, and open a pull request. Use when a failed nightly CI event starts an agent, or when the standard CI or…
audit-ci
Run and analyze Elements cold CI performance profiles and propose evidence-backed build, test, lint, and dependency-graph improvements. Use whenever asked to profile or benchmark pnpm run ci, rerun ci:profile, create a CI performance audit, compare CI timings, find bottlenecks or the completion path, investigate a CI…