next-best-practices

next-best-practices is a skill for Claude Code from neverinfamous/memory-journal-mcp. It costs 49 tokens per session (1,229 once invoked), scanned A, original, MIT.

A set of performance and structure guidelines for Next.js and React, tools for building web interfaces and websites. It covers routing, server and browser code, data loading, caching, page conventions, and browser performance measures.

In plain words
What is it for?
Use it when creating or reviewing Next.js pages, routes, layouts, server components, client components, middleware, data loading, caching, or Core Web Vitals.
Why use it?
It helps avoid invalid component boundaries, unnecessary browser-side code, slow pages, oversized JavaScript bundles, and incorrect Next.js file structures.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when creating or reviewing Next.js pages, routes, layouts, server components, client components, middleware, data loading, caching, or Core Web Vitals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/next-best-practices
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 neverinfamous/memory-journal-mcp --skill next-best-practices
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code.

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-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/next-best-practices/github.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/next-best-practices)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/next-best-practices"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/next-best-practices/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-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/next-best-practices"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/next-best-practices.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 1,229 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.00049 $0.01229
Opus 5 $0.00024 $0.00615
Sonnet 5 $0.00010 $0.00246
Haiku 4.5 $0.00005 $0.00123

Measured 9d ago against content hash 5ab77f9e6607, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

next-best-practices 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 9d 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.

skills/next-best-practices/SKILL.md · 87 lines

How it starts

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

Next.js Best Practices

Apply these rules when writing or reviewing Next.js code.

Auto-Load Mechanism

This skill is configured with user-invocable: false to avoid trigger collisions with other Next.js/React skills. It acts as an implicit dependency that provides detailed file convention and RSC rules when navigating Next.js architectures.

1. File Conventions & Routing

  • App Router: Always use the app/ directory.
  • Middleware: Use middleware.ts at the root for routing logic.
  • Parallel/Intercepting: Use @folder for parallel routes and (.) for intercepting routes (e.g. modals).
  • Default: Use default.tsx for fallbacks in parallel routes.

2. RSC Boundaries & Directives

  • Directives: Use 'use client' strictly at the boundary where client interactivity/hooks are required. Use 'use server' for Server Actions.
  • Caching: Use 'use cache' (Next.js 15+) for caching functions or components.
  • Async Client Components: Async React Client Components are invalid. You cannot await inside a Client Component; use use(promise) instead.
  • Serialization: Props passed from Server to Client components must be serializable (no classes/functions without Server Actions).

3. Async APIs (Next.js 15+)

  • Dynamic APIs: params, searchParams, cookies(), and headers() are now ASYNC and must be awaited before use.
  • Route Handlers: The request object in Route Handlers should be used carefully; prefer Server Actions for mutations.

4. Functions & Error Handling

  • Navigation: Use useRouter(), usePathname(), useSearchParams(), useParams() from next/navigation.
  • Errors: Use error.tsx for React error boundaries. Use redirect() or notFound() for control flow.
  • Catch Blocks: Use unstable_rethrow inside generic catch blocks to avoid catching internal Next.js thrown errors (like redirect).

5. Data Patterns

  • Waterfalls: Avoid data waterfalls by using Promise.all() for independent fetches, or preloading data.
  • Client Fetching: Use SWR or React Query for client-side data fetching. Do not use useEffect for data fetching.

Read the full file on GitHub · 87 lines

Files

What ships with it

60 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. 9d ago First seen · 87 lines · 49 tokens per session scan A 5ab77f9e6607

Subscribe to this mod's changes

next-best-practices is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 1,229 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

framework-expert

Unified framework expertise bundle. Lazy-loads relevant framework patterns (React, Vue, Angular, Next.js, Node.js, Python, Laravel, Go, Flutter, React Native, TypeScript) based on detected tech stack.

nguyenthienthanh/aura-frog · 48 tokens

design-expert

UI/UX design expertise — component design, design system selection, responsive layout. Includes auto-detection from package.json and Context7 integration for library docs.

nguyenthienthanh/aura-frog · 35 tokens

design-tokens

Generate a cohesive color-token system from ONE OKLCH brand hue — primary/secondary/background/foreground/muted/border with semantic light + dark, emitted as a Tailwind v4 @theme block or a CSS-variables fallback. Use when starting a design system, defining brand colors, setting up theming/dark-mode, or replacing…

nguyenthienthanh/aura-frog · 81 tokens

motion-design

Restrained, accessible web motion — Framer Motion declarative patterns and CSS-only staggered reveals for high-impact moments, always bundle-aware and reduced-motion-safe. Use when adding animation/transitions to a UI (entrance reveals, list stagger, page/route transitions, micro-interactions) or when motion feels…

nguyenthienthanh/aura-frog · 74 tokens

react-best-practices

React development guidelines with hooks, component patterns, state management, and performance optimization.

myths-labs/muse · 22 tokens

frontend-aesthetics

Anti-AI-slop taste layer for UI output — distinctive typography, dominant+accent color hierarchy, and implementation-matched polish. Use when building or restyling a UI/landing/component that should look designed rather than defaulted, or when the user asks for something 'beautiful', 'distinctive', 'less generic', or…

nguyenthienthanh/aura-frog · 78 tokens