Skip to content
Back to skills

Web Frontend Architecture

ASecurity

Frontend architecture — rendering modes (CSR, SSR, SSG, streaming, islands), routing and code splitting, state categories (server, URL, local, global), performance budgets (Core Web Vitals), micro-frontends trade-offs, security (XSS, CSP). Use to structure frontends or choose rendering approaches (frontend architecture, SSR, code splitting, Core Web Vitals).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgofrontendsecurityperformance

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add vectora-os/kit --skill web-frontend-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Frontend Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Frontend Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-web-frontend-architecture/badge)](https://www.skillsdirectory.com/skills/vectora-os-web-frontend-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-frontend-architecture
description: Frontend architecture — rendering modes (CSR, SSR, SSG, streaming, islands), routing and code splitting, state categories (server, URL, local, global), performance budgets (Core Web Vitals), micro-frontends trade-offs, security (XSS, CSP). Use to structure frontends or choose rendering approaches (frontend architecture, SSR, code splitting, Core Web Vitals).
metadata:
  category: languages-frameworks
---

# Web frontend architecture

## Purpose

Structure frontends for performance, maintainability and safety.

**Use when:** new frontends or major frontend restructuring.

**Not for:** single components; tokens and the component library (`design-system`).

## Inputs

- Product needs, SEO, performance budgets.

## Outputs

- Frontend architecture note, budgets, structure.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "web frontend architecture"` for prior decisions, patterns and anti-patterns.
- [Performance standard](../../../standards/performance.md)

## Steps

1. **Rendering.** Pick rendering mode per route by SEO and interactivity.
   Done when each route has a mode.
2. **State.** Classify state; keep server state in a cache library, filters in the URL.
   Done when no global store for server data.
3. **Budgets.** Set bundle and Web Vitals budgets as CI checks.
   Done when budgets enforced.
4. **Security.** CSP, no `innerHTML` with untrusted data, dependency hygiene.
   Done when CSP deployed.

## Best practices

- Route-level code splitting by default.
- Design tokens as the single styling source.

## Common mistakes

- Micro-frontends for a single team.
- Global state for everything.

## Example

Marketing SSG, dashboard CSR with route splitting; LCP budget 2.5 s in CI via Lighthouse.

## Reusable prompt

```text
Apply the Web frontend architecture skill (.agents/skills/web-frontend-architecture/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Propose the frontend architecture: rendering per route, state categories, budgets and security headers.
Return: Frontend architecture note, budgets, structure..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.