next-best-practices

next-best-practices is a skill for Claude Code from hugocarreira/agentrc. It costs 41 tokens per session (1,157 once invoked), scanned A, original, no licence file.

A set of guidance for building Next.js applications, including file organization, server and client code boundaries, data access, caching, metadata, errors, routes, and asset optimization.

In plain words
What is it for?
Use it while creating or reviewing Next.js files, routes, data flows, metadata, error handling, caching, and performance settings.
Why use it?
It helps you make common Next.js decisions consistently and avoid mistakes in how the framework handles pages, data, caching, images, fonts, and errors.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it while creating or reviewing Next.js files, routes, data flows, metadata, error handling, caching, and performance settings.

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

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/hugocarreira/agentrc/next-best-practices/github.svg)](https://agentmods.dev/skills/hugocarreira/agentrc/next-best-practices)
Your own site
<a href="https://agentmods.dev/skills/hugocarreira/agentrc/next-best-practices"><img src="https://agentmods.dev/badge/skills/hugocarreira/agentrc/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/hugocarreira/agentrc/next-best-practices"><img src="https://agentmods.dev/badge/skills/hugocarreira/agentrc/next-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,157 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 unknown 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.00041 $0.01157
Opus 5 $0.00020 $0.00579
Sonnet 5 $0.00008 $0.00231
Haiku 4.5 $0.00004 $0.00116

Measured 10d ago against content hash 684547bbe1e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 167 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 10d ago First seen · 167 lines · 41 tokens per session scan A 684547bbe1e4

Subscribe to this mod's changes

next-best-practices is a skill published in the GitHub repository hugocarreira/agentrc (5 stars, last pushed 3mo ago), with no licence file. It adds 41 tokens to every session and 1,157 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-31.

Related

Other skills, from other repositories

cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). PROACTIVE ACTIVATION: Use this skill automatically when working in Next.js projects that have cacheComponents: true in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best…

sangrokjung/claude-forge · 183 tokens

frontend-code-review

Trigger when the user requests a review of frontend files (e.g., .tsx, .ts, .js). Support both pending-change reviews and focused file reviews while applying the checklist rules.

sangrokjung/claude-forge · 42 tokens

docs-release-notes

Use when a change needs a user-visible release-note, changelog, or changeset entry — "add a release note", "add a changeset for this", "what goes in the changelog?", "write up what shipped", "note this for the next release" — or when finalizing a branch whose customer-visible features, bug fixes, or UI changes should…

The01Geek/prflow · 106 tokens

ag-referencia-design-presentation

Taxonomia de 86 layouts apresentacao/marketing (hero, pricing, auth, nav, CTA, etc) adaptada do VibeUI. Consultar ANTES de landing pages, onboarding, auth screens.

andregusman-raiz/a-gusman-claude · 50 tokens

ag-referencia-motion

Motion/animação de UI: gate de frequência, 3 curvas canônicas, durações <300ms, springs, interruptibilidade, 13 receitas prontas (RECIPES.md). Carregar ANTES de animar qualquer componente, revisar motion ou escolher lib de animação.

andregusman-raiz/a-gusman-claude · 63 tokens

ag-referencia-prompt-guide

Guia canonico de prompts para gerar UI em Claude/Cursor/Lovable/v0. Estrutura 6 blocos (Contexto/Layout/Estilo/Refs/Constraints/Entregavel). Invocar ANTES de pedir geracao de UI.

andregusman-raiz/a-gusman-claude · 58 tokens