agentleFS
hemapriyan-rkhemapriyan-rk/claude-rigor-skills/skills/frontend-architecture/SKILL.md

frontend-architecture

Skill1 starsChanged 51 days agoMITView on GitHub

Design frontend architecture — rendering strategy (SSR/SSG/ISR/CSR), state management boundaries, component data flow, and performance budgets — as structural/technical decisions, not visual styling. Use when architecting a new frontend app or reviewing an existing one for state-management or rendering-strategy problems. This is not about aesthetics, layout, or typography — use the visual design skill for that; this skill is about where state lives and how data flows.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backend-architecture, mobile-design and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoldenWing-360Skill

    backend-architecture

    Design backends that survive redeploys, server reboots, and modest scaling. Covers stateless application servers, state placement (object storage, managed databases, Redis), immutable deploy artifacts, health checks, graceful shutdown, database migrations that don't lock the world, and the twelve-factor baseline. Invoke when designing a new backend, when uploads disappear after a redeploy, or when productionizing a vibe-coded prototype.

    Also in 3 projects that use this

  • xenitV1Skill

    mobile-design

    Mobile-first design thinking and decision-making for iOS and Android apps. Touch interaction, performance patterns, platform conventions. Teaches principles, not fixed values. Use when building React Native, Flutter, or native mobile apps.

    Also in 3 projects that use this

  • xenitV1Skill

    clean-code

    Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

    Also in 3 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 3 projects that use this

  • JetBrainsSkill

    webapp-testing

    Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

    Also in 3 projects that use this

  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check semantic structure and keyboard/screen-reader navigation at design time — retrofitting accessibility after the component tree is …

    line 33

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Architecture

Most frontend architecture problems aren't visual — they're state living in the wrong place, or a rendering strategy picked by habit instead of by the actual requirement. This skill forces both decisions explicitly.

Step 1 — Rendering strategy, chosen by requirement, not default

Pick SSR/SSG/ISR/CSR based on the actual needs: does this route need SEO (rules out pure CSR), does content update per-request or can it be built ahead of time (SSG/ISR) or does it need per-request personalization (SSR/CSR)? A team defaulting to one strategy across an entire app regardless of per-route requirements is a common, avoidable cost.

Step 2 — State management boundaries, stated explicitly

Separate three categories and say which is which for the app being designed:

  • Local component state — belongs to one component, doesn't need to escape it.
  • Shared app state — genuinely needs to be read/written from multiple, unrelated parts of the tree.
  • Server state (cache) — data that actually lives on a server and is being cached client-side.

The most common frontend architecture failure is treating server data as if it were client app state — teams end up hand-rolling cache invalidation, staleness, and refetch logic that a dedicated server-state library already solves. If the app doesn't clearly separate these, that's the finding to raise first, before any component-level review.

Step 3 — Component data flow

State the direction data flows and how: prop drilling for shallow trees, context for broadly-needed low-frequency-change data, a state library for high-frequency shared state. Distinguish presentational ("dumb") components from stateful containers, and check the boundary is actually where it's claimed to be — a "presentational" component reaching into global state directly is a sign the boundary has already eroded.

Step 4 — Performance budget, as numbers

State explicit targets: bundle size ceiling, Time-to-Interactive/Largest-Contentful-Paint targets. Decide what's code-split versus eagerly loaded based on those numbers, not on "it feels big." A budget nobody measured against isn't a budget.

Step 5 — Accessibility as a first-class constraint

Check semantic structure and keyboard/screen-reader navigation at design time — retrofitting accessibility after the component tree is built is far more expensive and usually incomplete. This isn't a separate audit pass; it's part of the same architecture decision as Step 3.

Output

# Frontend architecture: [app/feature]
## Rendering strategy per route/section, and why
## State boundaries (local / shared / server-cache) — explicit
## Component data-flow pattern and where the presentational/stateful boundary sits
## Performance budget (numbers) and what's code-split
## Accessibility approach

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.