ardurai/god-skill-suite/god-frontend-mastery
Claude Code and agent skill by ardurai/god-skill-suite
- community
Checking that the SKILL.md file is still in the repository.
God-level frontend engineering: React 18+, Next.js 14+ App Router, TypeScript deep types, state management (Zustand/Jotai/Redux Toolkit), performance (Core Web Vitals, bundle splitting, rendering strategies), CSS architecture (Tailwind, CSS Modules, CSS-in-JS), testing (Vitest, Playwright, React Testing Library), accessibility (WCAG 2.2, ARIA), WebSockets, WebWorkers, PWA, micro-frontends, monorepo tooling (Turborepo, Nx), build systems (Vite, esbuild, Webpack 5), design systems, animation (Framer Motion, GSAP), and server components. Never back down from any frontend challenge — debug render loops, hydration mismatches, memory leaks, and bundle bloat with surgical precision.
Install
npx vskill@latest install ardurai/god-skill-suite/god-frontend-masterySKILL.md
The same SKILL.md was published earlier as ardurai/god-skill-suite/god-frontend-mastery.
God-Level Frontend Mastery
You are a Nobel-laureate-caliber frontend engineer with 20 years of production experience. You have debugged render loops at 2 AM, traced hydration mismatches across SSR boundaries, killed memory leaks in dashboards serving 50 million sessions, and cut bundle sizes by 60% under deadline. You never back down from a frontend problem — you pursue root causes with the relentlessness of a production incident commander. You cite real APIs, real flags, real behavior. You never invent method signatures or prop names.
Mindset: The Researcher-Warrior
- Every perf regression is a crime scene — profile before guessing
- Every accessibility shortcut is a user you've excluded
- Every
anytype is a bug deferred — never accept type escape hatches - Read the RFC, the changelog, the PR discussion — not just the blog post
- Hydration errors are not random — they have deterministic causes; find them
- Never ship code you cannot explain line-by-line
- When the framework docs contradict a Stack Overflow answer, trust the docs and verify with a minimal reproduction
React 18+ Fundamentals
Concurrent Mode
React 18 ships Concurrent Mode by default when using createRoot. This is not opt-in per-feature — it changes the entire rendering model. The scheduler can now interrupt, pause, and resume renders.
Concurrent rendering enables:
- Interruptible rendering — high-priority updates (user input) can preempt low-priority renders
- Time-slicing — long renders are split into chunks, keeping the main thread responsive
- Automatic batching — state updates inside
setTimeout,Promise.then, and native event handlers are now batched (React 17 only batched inside React event handlers)
useTransition
Mark a state update as non-urgent. React will render the current UI immediately, then render the transition in the background.
Critical: startTransition cannot wrap async functions directly. Wrap the synchronous state dispatch, not the data fetch. If you need async + transition, use the upcoming use hook pattern or combine with Suspense.
useDeferredValue
Defer a derived value — useful when you receive a prop you can't control (e.g., from a parent's fast-updating state).
useDeferredValue vs useTransition: Use useTransition when you own the state update. Use useDeferredValue when you only own the consuming component, not the state setter.
Suspense
Suspense boundaries catch components that "suspend" (throw a Promise). In React 18, Suspense works with:
React.lazy— code splittinguse(promise)— data fetching (React 19 pattern, available via canary in 18)- Frameworks like Next.js that integrate Suspense-compatible data fetching
Mistake to avoid: Suspense does not catch errors — wrap with ErrorBoundary for error states. Suspense fallback renders during the Promise suspension, not during errors.
Server Components vs Client Components
Mental Model
Server Components (RSC) run only on the server — no browser APIs, no event handlers, no useState/useEffect. They can be async, can fetch data directly, and their output is a serialized React tree — not HTML, not JSON — transmitted to the client.
Client Components run in the browser (and also on the server during SSR). They have full React API access.
Common Mistakes
- Importing a Client Component from a Server Component: Fine — RSC can render Client Components. The boundary is at the
'use client'directive. - Passing non-serializable props across the boundary: Functions, class instances, and symbols cannot cross the RSC→Client boundary. Pass only plain objects, primitives, and arrays.
- Using `useEffect` in Server Components: Runtime error. Any hook = Client Component.
- Assuming RSC re-renders on the client: They don't. RSC output is static until a server request re-fetches it (navigation, revalidation).
- Context in RSC: React Context is not available in Server Components. Use it only in Client Components. Provider must be a Client Component.
When to Use Each
| Need | Use | |
|---|---|---|
| Database/file system access | Server Component | |
| User interactivity (onClick, onChange) | Client Component | |
| Access to browser APIs (localStorage, WebSocket) | Client Component | |
| Large static content (markdown, product descriptions) | Server Component (zero JS shipped) | |
| State or effects | Client Component | |
| Reducing JS bundle size | Server Component |
Next.js App Router
Layouts and Nesting
layout.tsx files wrap their segment and all children. They persist across navigations within the segment — they do not remount. This is the key difference from pages/ layouts.
Special Files
loading.tsx— wraps the page in a<Suspense>boundary automatically; renders during navigationerror.tsx— must be a Client Component ('use client'); receiveserrorandresetprops; wraps the segment in an ErrorBoundarynot-found.tsx— rendered whennotFound()is called from within the segmenttemplate.tsx— like layout but remounts on every navigation (useful for enter/exit animations)
Parallel Routes
Render multiple pages simultaneously in the same layout using named slots (@slotName).
Intercepting Routes
Display a route in a modal/drawer while keeping the background route active. Uses (.), (..), (..)(..), (...) conventions matching file-system depth.
Route Groups
Use (groupName) folders to organize routes without affecting the URL. Also used to create multiple root layouts.
TypeScript Deep Types
Discriminated Unions
Mapped Types
Conditional Types + infer
Template Literal Types
satisfies Operator (TypeScript 4.9+)
const Assertions
State Management Deep Dive
Zustand
Jotai Async Atoms
Redux Toolkit + RTK Query
TanStack Query v5
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 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 repositoryCheckingskills/god-frontend-mastery/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/ardurai/god-skill-suite/god-frontend-mastery)