yysun/awesome-agent-world/react-app

Claude Code and agent skill by yysun/awesome-agent-world

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install yysun/awesome-agent-world/react-app

SKILL.md

React Tailwind Layered Web

Use this skill to keep React + Tailwind apps organized around clear ownership, thin route composition, and one-way imports.

Core Rules

  • Inspect the existing project first: routing framework, src/ tree, import aliases, Tailwind setup, component conventions, and test scripts.
  • Keep the top-level router thin.
  • Keep route files thin; they should mostly compose shell, page, and feature workspaces.
  • Keep domain contracts explicit; do not invent browser-only domain behavior when ownership belongs to shared contracts or the backend.
  • Prefer the lowest valid layer; do not promote code upward just because it might be reused later.
  • Do not create or grow catch-all folders like components or lib when a clearer layer exists.
  • Match existing naming, exports, aliases, and test patterns unless they violate the boundaries below.

Layer Map

LayerPurposeAllowed contentsDisallowed contents
src/foundations/Visual foundationsdesign tokens, Tailwind imports, base stylesReact components, domain logic
src/primitives/Generic UI controlsbuttons, inputs, cards, form controlsbusiness logic, API calls
src/patterns/Reusable UI compositionsheaders, panels, form sections, list shellsbusiness logic, API calls
src/features/Domain UI and behaviorproduct-specific views, hooks, state, feature compositiongeneric shared UI that belongs lower
src/pages/Route entry pointspage orchestration, route-level assemblydeep feature logic, generic UI libraries
src/shell/App framinglayout chrome, providers, navigation shellfeature-owned domain behavior
src/shared/Sidecar shared codeAPI clients, schemas, helpers, generic utilitiesUI-layer imports

Placement Rules

Use this decision order for new files and moved code:

  1. If it is styles, tokens, or Tailwind/base CSS only, place it in src/foundations/.
  2. If it is a generic standalone control, place it in src/primitives/.
  3. If it is a reusable UI composition built from primitives, place it in src/patterns/.
  4. If it knows about a product domain, workflow, or business state, place it in src/features/.
  5. If it only wires routes, page assembly, or app framing, place it in src/pages/ or src/shell/.
  6. If it is non-UI shared logic, place it in src/shared/.

When in doubt, keep code in the owning feature first and only extract downward once it is clearly generic.

Import Rules

Keep imports one-way. Higher layers may import lower layers; lower layers must not import higher layers.

text
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.
  • No layer may import from pages.
  • Avoid lateral imports between unrelated features; use explicit shared contracts or keep the code inside the owning feature.

Follow the host project's existing import style. Do not introduce aliases just for this skill.

React + Tailwind Guidance

  • Use function components.
  • Prefer Tailwind utilities with className extension points.
  • Establish a clear visual direction early and preserve it.
  • Use existing primitives and patterns before creating new ones.
  • Keep accessibility attributes, focus states, loading states, empty states, and error states with the owning component or feature.
  • Keep typography consistent:
  • text-xs: labels, badges, metadata, uppercase markers
  • text-sm: body copy, helper text, inputs, buttons, small headings
  • text-base: section and component titles
  • text-lg: page titles and prominent headings
  • text-2xl: stat values

Working Sequence

For each requested change:

  1. Start from the user-facing outcome.
  2. Identify the owning route, shell, feature, or shared contract.
  3. Place each new file in the lowest valid layer.
  4. Extract repeated generic UI downward into primitives or patterns.
  5. Keep domain behavior in features and shared contracts in src/shared/ or the backend/service layer.
  6. Keep pages and routing code thin.
  7. Update nearby barrels/index files only when the host project already uses them.
  8. Add the required source-file header block to every source file you create or edit when the host project requires it.
  9. Run the narrowest useful UI validation: typecheck, lint, unit tests, component tests, or browser/e2e checks as appropriate.

Done Check

Before finishing:

  • New code sits in the correct layer.
  • Imports follow the allowed boundaries.
  • Router and route files remain thin.
  • Domain behavior stays in features or shared/server-owned contracts.
  • Styling stays consistent with the chosen visual direction.
  • New UI includes necessary loading, empty, error, disabled, and responsive states for the requested workflow.
  • Normal UI validation for the host app has been run, or the reason it could not be run is stated.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yysun/awesome-agent-world/react-app/badge)](https://verified-skill.com/skills/yysun/awesome-agent-world/react-app)

Something wrong with this skill or its page? Tell us.