seiyajapon/ia-handbooks/frontend-architecture
Claude Code and agent skill by seiyajapon/ia-handbooks
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install seiyajapon/ia-handbooks/frontend-architectureSKILL.md
The same SKILL.md was published earlier as seiyajapon/ia-handbooks/frontend-architecture.
Frontend Architecture Skill
Use this skill when designing, reviewing, or refactoring the architecture of a frontend application: SPA, web client, mobile web, or any browser-rendered UI. Triggers: frontend architecture, component architecture, state management, module boundaries, feature modules, lazy loading, frontend layers.
What frontend architecture is
Frontend architecture is the structural decision about how a UI client is organised: what components exist, how they relate, where state lives, how data flows from APIs to screens, how features are isolated.
It is its own architectural family because:
- The runtime is the browser (or webview, mobile shell), with constraints absent in backends (bundle size, hydration, SSR, accessibility).
- The user is the primary actor, not other systems.
- State management is a first-order concern, often dominating the design.
- Components are the unit of composition, not classes or modules in the backend sense.
What it is and is not
Frontend architecture is NOT:
- A synonym of MVC, MVP, or MVVM. Those are UI structuring patterns; frontend architecture is the system-level decision.
- A synonym of a framework (React, Vue, Angular, Svelte). Frameworks impose conventions; the architecture is the rules enforced on top.
- The same as backend architecture. Hexagonal/clean/onion can inform frontends but do not transfer directly; the forces are different.
- "Component design". Component design is one part; module organisation, state management, data flow, routing, and bundling are others.
Non-negotiable rule
Never start frontend work from "what components to build".
The mandatory order is:
- Identify the features (business capabilities the UI serves).
- Decide the module boundaries (one module per feature, or per route group, or per domain capability).
- Decide where state lives (per component, per feature, global).
- Decide the data flow (where API calls happen, where data is cached, how state updates propagate).
- Decide routing (lazy-loaded feature modules, route guards).
- Decide shared layers (UI primitives, design system, utilities).
- Only then discuss components, hooks, services, and concrete framework features.
Hard rules
Feature isolation
Code for one feature lives together. Cross-feature imports go through explicit shared modules, not through reaching into another feature's internals.
State ownership
State lives at the lowest level where it is needed. Lifting state higher than necessary causes prop drilling and unnecessary re-renders. Lifting too low causes inconsistency.
Components are composable, not god-objects
A component does one thing: render based on props/state, handle one kind of event, or compose other components. A component with twenty props and a hundred lines of logic is doing too much.
API calls are not in components
API access is in a service layer, a hook, or a query library. Components consume the result.
Business rules are not in the frontend
The frontend may have UI logic (when to show a button, how to format a date) but business rules (what is allowed, what is computed, what is valid) live on the backend. The frontend may duplicate them for UX, but the backend is authoritative.
Forbidden shortcuts
- "The framework is the architecture."
- "Each component is a microservice."
- "Redux is the architecture."
- "We will figure out state later."
- "Business rules in the frontend are fine because the backend also checks."
Mandatory review behavior
When reviewing a frontend:
- Are features isolated, with no cross-feature imports?
- Is state ownership explicit (per component, per feature, global)?
- Are API calls confined to a service layer or query library, not in components?
- Are components composable, with single responsibilities?
- Is routing structured (lazy-loaded feature modules, guards)?
- Are shared modules genuinely shared, not feature-specific code that leaked?
- Is the bundle size monitored?
When this skill applies
- Any non-trivial SPA, web client, or rich UI application.
When this skill does not apply
- Backend services (use the appropriate backend architecture skill).
- Server-rendered HTML with no client-side state (a layered backend with template rendering is enough).
- Trivial UIs (a single page, a form, a script).
References
references/01-foundations.mdfor what frontend architecture is, when it applies.references/02-feature-modules.mdfor module boundaries and feature isolation.references/03-state-management.mdfor state ownership patterns and trade-offs.references/04-data-flow.mdfor API integration, caching, optimistic updates.references/05-routing-and-lazy-loading.mdfor navigation, code splitting, route guards.references/06-shared-layers.mdfor UI primitives, design system, utilities.references/07-relationship-with-other-disciplines.mdfor frontend vs MVC/MVP/MVVM, vs Flux/Redux, vs backend architectures.references/08-anti-patterns.mdfor fat components, prop drilling, business in the frontend.references/09-review-checklist.mdfor reviewing a frontend codebase.references/10-user-preferences.mdfor Francisco's project conventions.
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
- SKILL.md in the repositoryCheckinghandbook_v3/handbook/skills/software-architecture/frontend-architecture/SKILL.md
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
[](https://verified-skill.com/skills/seiyajapon/ia-handbooks/frontend-architecture)