next-best-practices SKILL.md skillA

next-best-practices from tekkiiiii/the-agency is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add tekkiiiii/the-agency/next-best-practices@git:20261007.04729ed

Pins git:20261007.04729ed in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
tekkiiiii/the-agency
Path
skills/next-best-practices/SKILL.md
Versions recorded
2
Latest version
git:20261007.04729ed, committed Oct 7, 2026
First version recorded
May 8, 2026
Size
3,817 bytes
Repository stars
6
License
none declared

Next.js best-practice rules for writing or reviewing Next.js code. Use when working on a Next.js app: file conventions and route segments, RSC boundaries (invalid async client components, non-serializable props), async API patterns (Next 15+), runtime selection, directives, error handling, and the v16 middleware→proxy rename. Topic detail files load on demand.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Next.js Best Practices

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

## File Conventions

See file-conventions.md for:
- Project structure and special files
- Route segments (dynamic, catch-all, groups)
- Parallel and intercepting routes
- Middleware rename in v16 (middleware → proxy)

## RSC Boundaries

Detect invalid React Server Component patterns.

See rsc-boundaries.md for:
- Async client component detection (invalid)
- Non-serializable props detection
- Server Action exceptions

## Async Patterns

Next.js 15+ async API changes.

See async-patterns.md for:
- Async params and searchParams
- Async cookies() and headers()
- Migration codemod

## Runtime Selection

See runtime-selection.md for:
- Default to Node.js runtime
- When Edge runtime is appropriate

## Directives

See directives.md for:
- 'use client', 'use server' (React)
- 'use cache' (Next.js)

## Functions

See functions.md for:
- Navigation hooks: useRouter, usePathname, useSearchParams, useParams
- Server functions: cookies, headers, draftMode, after
- Generate functions: generateStaticParams, generateMetadata

## Error Handling

See error-handling.md for:
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tekkiiiii/the-agency/next-best-practices@sha256:9e17e3e4a9df592a

The line at the top of this page pins the label git:20261007.04729ed, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_h4tudtfx3z75ixon.svg)](https://markdownregistry.com/a/art_h4tudtfx3z75ixon)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between May 8, 2026 and Oct 7, 2026, about one every 152 days. Its first recorded version is graded C and its latest A.

versioncommittedcommitsizeaudit
git:20261007.04729ed latest2026-10-07 04729ed 3,817 BA view · diff
git:20260508.65c1b0b2026-05-08 65c1b0b 3,367 BC view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3817 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tekkiiiii/the-agency · 6 stars · license none declared · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_h4tudtfx3z75ixon
GET https://markdownregistry.com/api/v1/resolve?ref=tekkiiiii/the-agency/next-best-practices
GET https://markdownregistry.com/api/v1/blob/9e17e3e4a9df592a586d2a43505f6b4fed23e3c849988b19cdb1326854d9bf57

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from tekkiiiii/the-agency

CLAUDE.md CLAUDE.md file
tekkiiiii/the-agency · CLAUDE.md
git:20261020.f5c49ca · audit A · 6 stars
dept-resume SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/dept-resume/SKILL.md · Read dept-state.md and spawn a Dept Head with a lean briefing. Department-operations parallel of /pd-resume.
v1.0.0 · audit A · 6 stars
dept-save-state SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/dept-save-state/SKILL.md · Write dept-state.md and member-roster.md at end of department session. Department-operations parallel of /save-state.
v1.0.0 · audit A · 6 stars
dept-status SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/dept-status/SKILL.md · Read-only department status digest. No spawns. Shows active coords, pipelines, open issues, and incoming tasks.
v1.0.0 · audit A · 6 stars
dept-wrap SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/dept-wrap/SKILL.md · Freeze department state at session end. Writes dept-state.md, updates member-roster.md, archives scratch files…
v1.0.0 · audit A · 6 stars
room-manager-digest SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/room-manager-digest/SKILL.md · Use on /room-manager-digest, a 12h cron, or when a dept head wants a fresh report. Reads each dept room's rolling.md…
git:20261009.e24f09d · audit A · 6 stars
room-manager SKILL.md skill
tekkiiiii/the-agency · agents-archive/dept-sunset-2026-10-08/skills/room-manager/SKILL.md · Use on /room-manager, every 10 minutes as a background loop, or when new room activity is suspected (handoff file…
git:20261009.e24f09d · audit A · 6 stars
obsidian-vault SKILL.md skill
tekkiiiii/the-agency · agents-archive/rev001-curator-2026-10-12/skills/obsidian-vault/SKILL.md · Use to forward decisions, project learnings, skill creations and generated assets to the Obsidian vault, and to read it…
git:20261013.24ed2e2 · audit A · 6 stars
_hidden SKILL.md skill
tekkiiiii/the-agency · scripts/tests/fixtures/jev/router-skills/_hidden/SKILL.md · underscore dirs are never routable
git:20261014.27c93aa · audit B · 6 stars
content-polish SKILL.md skill
tekkiiiii/the-agency · scripts/tests/fixtures/jev/router-skills/content-polish/SKILL.md · Polish drafted content to publish-ready in one pass; English and Vietnamese.
git:20261014.27c93aa · audit B · 6 stars
frontend SKILL.md skill
tekkiiiii/the-agency · scripts/tests/fixtures/jev/router-skills/frontend/SKILL.md · Use when building frontend UIs: "build a landing page", "make a dashboard", "write a React component". Not for…
git:20261014.27c93aa · audit B · 6 stars
nested-skill SKILL.md skill
tekkiiiii/the-agency · scripts/tests/fixtures/jev/router-skills/frontend/nested-skill/SKILL.md · nested dirs are out of the depth-1 universe
git:20261014.27c93aa · audit B · 6 stars

Every file in tekkiiiii/the-agency

Other files named next-best-practices

next-best-practices SKILL.md skill
figueroaignacio/ignaciofigueroa.dev · .agents/skills/next-best-practices/SKILL.md · Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route…
git:20260429.b0d7cdc · audit A · 6 stars
next-best-practices SKILL.md skill
sutchan/agent-skills-hub · skills/next-best-practices/SKILL.md · Next.js 最佳实践——文件约定、RSC 边界、数据模式、异步 API、metadata、错误处理、路由处理器、图片/字体优化、打包。
git:20261007.ab00264 · audit A · 2 stars

Browse by kind, by grade A, or by owner.