next-ts-playbook

next-ts-playbook is a skill for Claude Code, Codex from toffyui/ccteams. It costs 49 tokens per session (3,408 once invoked), scanned A, original, MIT.

A working guide for building Next.js websites with the App Router, TypeScript, and Tailwind CSS. It explains where code runs, how caching works, and how to check the result with a real build.

In plain words
What is it for?
Use it when adding or changing Next.js routes, pages, layouts, data loading, caching, or styles.
Why use it?
It helps avoid common problems such as putting browser code on the server, stale data, blank loading states, and hydration errors, where the server and browser show different output.

Skill for Claude CodeCodex

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

Good fit Use it when adding or changing Next.js routes, pages, layouts, data loading, caching, or styles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toffyui/ccteams/next-ts-playbook
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 toffyui/ccteams --skill next-ts-playbook
Clone the repo
git clone --depth 1 https://github.com/toffyui/ccteams

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 next-ts-playbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/toffyui/ccteams/next-ts-playbook/github.svg)](https://agentmods.dev/skills/toffyui/ccteams/next-ts-playbook)
Your own site
<a href="https://agentmods.dev/skills/toffyui/ccteams/next-ts-playbook"><img src="https://agentmods.dev/badge/skills/toffyui/ccteams/next-ts-playbook/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 next-ts-playbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/toffyui/ccteams/next-ts-playbook"><img src="https://agentmods.dev/badge/skills/toffyui/ccteams/next-ts-playbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,408 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 187
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00049 $0.03408
Opus 5.5 $0.00020 $0.01363
Sonnet 5.5 $0.00010 $0.00682
Haiku 4.5 $0.00005 $0.00341

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

Security

Grade A, and why

next-ts-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.

teams/next-ts/skills/next-ts-playbook/SKILL.md · 228 lines

How it starts

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

Next.js App Router Playbook

This is the literal procedure to follow for any change in a Next.js (App Router)

  • TypeScript + Tailwind project. The single most expensive class of mistake in this stack is putting code on the wrong side of the server/client boundary — so the loop forces you to locate that boundary before you write anything.

Operating loop

  1. Pin the versions before anything else. Read package.json for the next and react versions and skim next.config.(js|mjs|ts) for redirects, rewrites, images.remotePatterns, and experimental flags. Caching defaults flipped between majors (see decision tree C) — advice that is correct for 14 is wrong for 15.
  2. Map the route segment. For the route you're touching, list which of page.tsx, layout.tsx, loading.tsx, error.tsx, not-found.tsx, route.ts exist (ls app/<segment>/). A route.ts and a page.tsx cannot coexist in the same segment. Note whether loading.tsx/error.tsx are missing — async pages without them hang blank or crash the segment.
  3. Locate the change on the RSC/client boundary. Before writing, record the baseline: grep -rn '"use client"' app/ src/ 2>/dev/null | wc -l. Decide which side your change lives on using decision tree A. Every "use client" you add must be justified in your report.
  4. Read two sibling files (a neighboring page and a neighboring component) and mirror their naming, import style, and data-fetching pattern. Do not introduce a second convention.
  5. Data on the server. Initial data is fetched in the Server Component with async/await. Mutations go through Server Actions that (a) validate their input and (b) call revalidatePath/revalidateTag. useEffect fetching is only for data that genuinely depends on client-only state.
  6. Write cache intent explicitly. Every fetch for data that matters carries { cache: 'force-cache' | 'no-store' } or next: { revalidate: N } — never rely on the default, because the default changed between Next 14 and 15.
  7. Type the boundaries. Props, Server Action inputs, and route-handler payloads get explicit types. External input (searchParams, FormData, fetched JSON) is narrowed or zod-parsed, never cast.
  8. Run the verification recipe (below) and report real output. next build is part of it — it statically catches boundary violations that tsc cannot.

Read the full file on GitHub · 228 lines

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 · 228 lines · 49 tokens per session scan A 34d66e0ae836

Subscribe to this mod's changes

next-ts-playbook is a skill published in the GitHub repository toffyui/ccteams (49 stars, last pushed 3mo ago), licensed MIT. It adds 49 tokens to every session and 3,408 once invoked, about $0.0002 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-30.

Related

next-ts-playbook compared with skills from other repositories

next-ts-playbook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
next-ts-playbooktoffyui/ccteamsSkill493mo agoMITA49Claude Code, Codex
custom-featuresTanStack/tableSkill29k7d agoMITA35Claude Code, Codex
fast-typescript-checkinternet-development/www-sacredSkill1.6k14d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k14d agoMITA0Claude Code, Codex
adding-personhog-rpcPostHog/posthogSkill41ktodaynoneA88Claude Code, Codex
splitting-oversized-modulesPostHog/posthogSkill41ktodaynoneA197Claude Code, Codex
developing-the-cliPostHog/posthogSkill41ktodaynoneA186Claude Code, Codex