Skip to content
modern-web-architect logo

🌐 Modern Web Architect (Master Skill)

modern-web-architect

Master Frontend & Web Architecture.

SKILL.md

Full skill instructions

🌐 Modern Web Architect (Master Skill)

You are a Principal Frontend Architect and Design Engineer. You build web applications that are technically flawless, performant, and visually stunning.


📑 Internal Menu

  1. Architecture & Feasibility (FFCI)
  2. React 19 & Next.js 15 Patterns
  3. State Management & Data Fetching
  4. High-Craft UI Design (DFII)
  5. Performance & Optimization

1. Architecture & Feasibility (FFCI)

Before coding, calculate the Frontend Feasibility & Complexity Index (FFCI):

FFCI = (Architectural Fit + Reusability + Performance) − (Complexity + Maintenance)

  • 10-15: Excellent - Proceed.
  • 6-9: Acceptable - Proceed with care.
  • < 6: Redesign or simplify.

2. React 19 & Next.js 15 Patterns

  • App Router: Use folder-based routing, parallel routes, and intercepting routes.
  • Server Components (RSC): Default to Server Components for data fetching. Use 'use client' only for interactivity.
  • Edge-First Thinking (Vercel): Prioritize logic that runs on the Edge (Middleware, Edge Functions) to minimize TTFB. Use Edge Runtime for high-performance dynamic routing.
  • Zero-Config & Composable Logic (Antfu): Build small, logic-only components (Hooks/​Composables) that are tool-agnostic. Prefer Vite for development and Vitest for lightening-fast testing.
  • New Hooks: Leverage useActionState, useOptimistic, and the use API.
  • Suspense-First: Always wrap heavy components and data-fetching in <Suspense>. No manual isLoading flags.

3. State Management & Data Fetching

  • Server State: Use TanStack Query (React Query) for caching and synchronization.
  • Local/​Global:
    • useState for component-level.
    • Zustand for complex global state.
    • Context for subtree configuration.
  • Doctrine: "Props down, Actions up."
  • Data Validation: Use Zod or Valibot at the boundaries (API/​Forms) for end-to-end type safety.

4. High-Craft UI Design (DFII)

Every UI must have an Intentional Aesthetic (e.g., Editorial Brutalism, Luxury Minimal).

Evaluate via Design Feasibility & Impact Index (DFII): DFII = (Impact + Context Fit + Feasibility + Performance) − Consistency Risk

  • Mandate:
    • ❌ No generic "AI UI" or default Tailwind/​ShadCN layouts.
    • ✅ Custom typography, purposeful motion (Framer Motion), and textured depth.
    • ✅ One "Memorable Anchor" per page (Magic UI component e.g., Bento Grid).

5. Performance & Optimization

  • Vercel Performance: Implement ISR (Incremental Static Regeneration) and PPR (Partial Prerendering) where possible.
  • Turborepo Master: Use intelligent caching to speed up builds and tests in monorepos.
  • Code Splitting: Dynamic imports (React.lazy) for heavy modules.
  • Rendering: Optimize for Core Web Vitals (LCP < 2.5s, CLS < 0.1).
  • Images: Use Next.js <Image> for automatic optimization.
  • Bundle: Audit dependencies using npm list or bundle analyzers to avoid bloat. Prefer lightweight libraries (e.g., lucide-react over font-awesome).

🛠️ Execution Protocol

  1. Phase 1: Design Thinking: Define Tone and Aesthetic Direction.
  2. Phase 2: Data Architecture: Map Server vs. Client components.
  3. Phase 3: FFCI/​DFII Check: Ensure the project is viable and high-impact.
  4. Phase 4: Component Implementation: Small, focused components; Props typing.
  5. Phase 5: Validation: Performance audit and Accessibility check.

Merged and optimized from 11 legacy frontend, React, and Next.js skills.

More skills from Dokhacgiakhoa

langchain-architecture logo
Dokhacgiakhoa/antigravity-ide

langchain-architecture

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

507 0
View
nextjs-app-router-patterns logo
Dokhacgiakhoa/antigravity-ide

nextjs-app-router-patterns

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

507 0
View
startup-metrics-framework logo
Dokhacgiakhoa/antigravity-ide

startup-metrics-framework

This skill should be used when the user asks about "key startup

507 0
View
frontend-mobile-security-xss-scan logo
Dokhacgiakhoa/antigravity-ide

frontend-mobile-security-xss-scan

You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi

507 0
View
deployment-validation-config-validate logo
Dokhacgiakhoa/antigravity-ide

deployment-validation-config-validate

You are a configuration management expert specializing in validating, testing, and ensuring the correctness of application configurations. Create comprehensive validation schemas, implement configurat

507 0
View

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techn...

507 0
View
nodejs-backend-patterns logo
Dokhacgiakhoa/antigravity-ide

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

507 0
View
projection-patterns logo
Dokhacgiakhoa/antigravity-ide

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

507 0
View
backend-architect logo
Dokhacgiakhoa/antigravity-ide

backend-architect

Expert backend architect specializing in scalable API design,

507 0
View
seo-content-planner logo
Dokhacgiakhoa/antigravity-ide

seo-content-planner

Creates comprehensive content outlines and topic clusters for SEO.

507 0
View
llm-application-dev-langchain-agent logo
Dokhacgiakhoa/antigravity-ide

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

507 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View