frontend-web-playbook

frontend-web-playbook is a skill for Claude Code, Codex from tienenwu/fables. It costs 95 tokens per session (1,379 once invoked), scanned A, original, MIT.

A practical guide for building and debugging React and Next.js web interfaces. It covers component state, data from APIs or databases, production builds, browser-visible settings, and common performance and rendering problems.

In plain words
What is it for?
Use it when adding or refactoring components, choosing state and data-fetching approaches, investigating unnecessary re-renders, or preparing a production deployment.
Why use it?
It helps prevent issues that a development server may not reveal, such as hydration mismatches, exposed client settings, slow page bundles, and stale data. It also explains where different kinds of state should live.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or refactoring components, choosing state and data-fetching approaches, investigating unnecessary re-renders, or preparing a production deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tienenwu/fables/frontend-web
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tienenwu/fables --skill frontend-web
Clone the repo
git clone --depth 1 https://github.com/tienenwu/fables

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-web-playbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/tienenwu/fables/frontend-web/github.svg)](https://agentmods.dev/skills/tienenwu/fables/frontend-web)
Your own site
<a href="https://agentmods.dev/skills/tienenwu/fables/frontend-web"><img src="https://agentmods.dev/badge/skills/tienenwu/fables/frontend-web/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-web-playbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/tienenwu/fables/frontend-web"><img src="https://agentmods.dev/badge/skills/tienenwu/fables/frontend-web.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.01379
Opus 5.5 $0.00038 $0.00552
Sonnet 5.5 $0.00019 $0.00276
Haiku 4.5 $0.00010 $0.00138

Measured 3mo ago against content hash ffd76224851d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-web-playbook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

en/frontend-web/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🌐 繁體中文(canonical) · English mirror

React / Next.js Frontend Judgment Handbook

Core Principles

  1. A green dev server proves nothing: hydration, env-var injection, bundle size, SEO metadata, and minification only show their true behavior under next build && next start — any change on the production path must be verified with a production build.
  2. Remote data and UI state are two different things: server state (from an API/DB — it goes stale, needs caching, needs refetching) belongs to React Query/SWR; client state (pure view toggles, input fields) uses useState/zustand. Mixing the two is the root of most "data out of sync" bugs.
  3. Put state at the lowest layer that uses it: default to local, lift only when it hurts, go global last. Reaching for a global store too early is entropy, not architecture.
  4. A re-render is a symptom, not the disease: first use the Profiler to measure which component re-renders and why, then decide whether to memo; scattering useMemo/useCallback on gut feel is just noise.
  5. Anything that enters the client bundle is visible to the user: NEXT_PUBLIC_-prefixed variables, strings hardcoded into components, whole libraries imported into a Client Component — assume it is public first, then prove it deserves to be public.

Task Triage

Situation Path Read first
New screen/feature First decide where data comes from, who owns state, what needs "use client", then write the UI references/architecture-state.md
Write/change a component, extract a component, styling First settle the semantic boundary and props contract, then act references/components-styling.md
Janky screen, too many re-renders, oversized bundle Do not scatter memo first — measure first references/rendering-performance.md
Fetch remote data, caching, loading/error states Separate server state from client state references/architecture-state.md §1
Ship to production / deploy / diagnose "fine in dev, blows up in prod" Run the mandatory checklist line by line references/release-checklist.md
hydration mismatch, env vars, SEO Assume a build-time difference first, do not thrash references/release-checklist.md

Read the full file on GitHub · 56 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 56 lines · 95 tokens per session scan A ffd76224851d

Subscribe to this mod's changes

frontend-web-playbook is a skill published in the GitHub repository tienenwu/fables (4 stars, last pushed 4mo ago), licensed MIT. It adds 95 tokens to every session and 1,379 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

frontend-web-playbook compared with skills from other repositories

frontend-web-playbook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-web-playbooktienenwu/fablesSkill44mo agoMITA95Claude Code, Codex
uniwinduni-stack/uniwindSkill1.8ktodayMITA130Claude Code, Codex
framework-shadcn-tailwind-uiKainiko943/beautiful-uiSkill147mo agoMITA44Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
ui-checkstyleopen-metadata/OpenMetadataSkill16ktodayApache-2.0A122Claude Code
tamagui-v6-configtamagui/tamaguiSkill14k4d agoMITA76Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14k4d agoMITA48Claude Code, Codex