skills/react-app/SKILL.md
Use when creating, modifying, refactoring, reviewing, or organizing a React web app that uses Tailwind or utility-first CSS. Trigger for requests involving React pages, routes, layouts, components, feature UI, styling systems, app shells, frontend folder structure, UI architecture, import boundaries, thin routes, component placement, or avoiding catch-all folders such as `components` and `lib`. Especially relevant when deciding whether code belongs in foundations, primitives, patterns, features, pages, shell, or shared utilities.
npx skillsauth add yysun/awesome-agent-world react-appInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to keep React + Tailwind apps organized around clear ownership, thin route composition, and one-way imports.
src/ tree, import aliases, Tailwind setup, component conventions, and test scripts.components or lib when a clearer layer exists.| Layer | Purpose | Allowed contents | Disallowed contents |
|---|---|---|---|
| src/foundations/ | Visual foundations | design tokens, Tailwind imports, base styles | React components, domain logic |
| src/primitives/ | Generic UI controls | buttons, inputs, cards, form controls | business logic, API calls |
| src/patterns/ | Reusable UI compositions | headers, panels, form sections, list shells | business logic, API calls |
| src/features/ | Domain UI and behavior | product-specific views, hooks, state, feature composition | generic shared UI that belongs lower |
| src/pages/ | Route entry points | page orchestration, route-level assembly | deep feature logic, generic UI libraries |
| src/shell/ | App framing | layout chrome, providers, navigation shell | feature-owned domain behavior |
| src/shared/ | Sidecar shared code | API clients, schemas, helpers, generic utilities | UI-layer imports |
Use this decision order for new files and moved code:
src/foundations/.src/primitives/.src/patterns/.src/features/.src/pages/ or src/shell/.src/shared/.When in doubt, keep code in the owning feature first and only extract downward once it is clearly generic.
Keep imports one-way. Higher layers may import lower layers; lower layers must not import higher layers.
foundations <- primitives <- patterns <- features <- pages
foundations <- primitives <- patterns <- features <- shell
shared -> usable by any layer
Enforce these constraints:
foundations imports from no app UI layer.primitives may import foundations and shared.patterns may import foundations, primitives, and shared.features may import patterns, lower UI layers, and shared.pages and shell may compose feature work, but must not own feature logic.shared must never import from UI layers.pages.Follow the host project's existing import style. Do not introduce aliases just for this skill.
className extension points.text-xs: labels, badges, metadata, uppercase markerstext-sm: body copy, helper text, inputs, buttons, small headingstext-base: section and component titlestext-lg: page titles and prominent headingstext-2xl: stat valuesFor each requested change:
primitives or patterns.features and shared contracts in src/shared/ or the backend/service layer.Before finishing:
features or shared/server-owned contracts.testing
Scaffold, review, audit, and validate skill-based AI workspaces for agent hosts. Use when the user wants an AI workspace built around SKILL.md plus event handlers, references, templates, scripts, data, and output instead of AGENTS.md; when they want knowledge distillation workflows packaged as a reusable skill; or when they want to convert an AGENTS.md workspace pattern into a skill-owned workspace.
tools
<what this skill does>. Use when the user asks for <trigger phrases>, <task contexts>, or <expected workflow>.
tools
Create, review, audit, and validate AI workspaces for agent hosts such as Codex, Copilot, Gemini, and similar desktop or CLI runtimes. Use when the user asks to design an agent-ready repo, scaffold AGENTS.md and event handlers, create an API-backed or domain knowledge workspace, audit AGENTS.md or SKILL.md quality, or improve how a repo exposes behavior to coding agents.
development
Use when user needs to plan, storyboard, review, critique, or rewrite a presentation outline or slide deck, including SCR presentations, BBP/Beyond Bullet Points presentations, scene-based decks, headline development, bitmap visual generation, and handoffs to Markdown, Marp, or PPTX production.