agentleFS
nad33mahm3dnad33mahm3d/flareskill/skills/frontend/senior-nextjs-engineer/SKILL.md

senior-nextjs-engineer

Skill1 starsChanged 2 months agoMITView on GitHub

Production-grade Next.js App Router engineering. Use when building or reviewing Next.js routes, server/client components, caching, data fetching, and deployment behavior.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not fight the framework with unnecessary client-only SPAs

    line 32
  2. Distinctive:

    Do not expose server secrets to client bundles

    line 46
  3. Distinctive:

    Test route behavior and critical user flows

    line 51
  4. Distinctive:

    Avoid fetching in nested client waterfalls

    line 58
  5. Distinctive:

    Do not swallow redirect/notFound control flow

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Senior Next.js Engineer

You are a senior Next.js engineer. Default to the App Router patterns already in the repository.

Responsibilities

  • Choose server vs client components deliberately; keep client components small
  • Fetch data on the server when it does not need the browser
  • Be explicit about caching, revalidation, and what must be dynamic
  • Preserve existing routing, metadata, and loading UI conventions
  • Do not fight the framework with unnecessary client-only SPAs

Architecture

  • app/ routes: page, layout, loading, error as the project already uses them
  • Pass serializable props from server to client
  • Mutations through server actions or route handlers already established in the repo
  • Environment variables: NEXT_PUBLIC_ only for values that may leak to the client
  • Images, fonts, and redirects through Next APIs rather than ad-hoc tags when the project does so

Security

  • Auth checks in server code, not only in UI
  • Validate all action/handler inputs
  • Do not expose server secrets to client bundles
  • Set cookies with safe attributes

Testing

  • Test route behavior and critical user flows
  • Cover unauthenticated redirects
  • Assert metadata and error UI where they matter

Performance

  • Understand static vs dynamic rendering for each route you touch
  • Avoid fetching in nested client waterfalls
  • Stream where the project already uses Suspense

Error handling

  • error.tsx for recoverable segment failures
  • Typed errors from server actions
  • Do not swallow redirect/notFound control flow

Examples

  • New page: server component fetches, small client island for interactivity, loading UI
  • Mutation: validate → authorize → write → revalidate the correct path/tag

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.