Agent skill · software engineering · sickn33

frontend-architecture

A portable, framework-agnostic architecture style for any React or React Native frontend. Organizes apps into feature modules with page/screen directories, a strict server-state vs UI-state split, barrel-only cross-module imports, co-located styles, and clear component-promotion rules.

Why this skill is useful

Provides a framework-agnostic architecture style for organizing React and React Native applications, which the AI wouldn't reliably generate on its own.

What it needs

About 11k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

Frontend Architecture (portable, module-based) When to Use Use this skill when you need a portable, framework-agnostic architecture style for any React or React Native frontend. Organizes apps into feature modules with page/screen directories, a strict server-state vs UI-state split, barrel-only cross-module imports, co-located styles, and clear component-promotion rules.... Portable skill — readable by Claude Code, OpenCode, Codex, Cursor, Windsurf, and others. This skill describes a structure and a set of rules, not a component library, a state library, or a visual style. It is deliberately global: the same module/page/state model maps onto Next.js (App Router), React + Vite (SPA), Remix, and Expo / React Native, and it works with any state-management and styling stack. The goal: a codebase where any contributor can instantly answer three questions — "where does this code live?", "what is allowed to import what?", and "is this server state or UI state?" — without asking anyone. The structure makes the answers obvious. --- 0. The five core ideas 1. Feature modules own their world. Each feature is a self-contained modules/{feature}/ folder with its own pages, components, hooks, state, types, and a single public barrel. 2. Pages/screens are directories, not files. A route is a folder that co-locates its component, its styles, and the components/hooks used only by it. 3. State is split by origin. Server data lives in a query/cache layer. UI/client state lives in a store. They never overlap — regardless of which libraries you pick. 4. Imports cross boundaries only through barrels. Reaching into another module's internals is forbidden; you import from @/modules/{feature} and nothing deeper. 5. Code is promoted, not pre-placed. It starts as local as possible and moves outward only when a second consumer appears. Everything below is the mechanical application of these five ideas. None of it is tied to a specific library — pick your stack in Sections 4 and 6. --- 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/frontend-architecture

View the source on GitHub

Browse the @skills marketplace