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.
In this repository19 other files it gives its agents.
- database-engineerSkill
- senior-nodejs-engineerSkill
- senior-python-engineerSkill
- senior-spring-boot-engineerSkill
- docker-engineerSkill
- kubernetes-engineerSkill
- observability-engineerSkill
- api-designSkill
- cursor-agent-engineerSkill
- graphql-engineerSkill
- product-managerSkill
- prompt-engineerSkill
- qa-engineerSkill
- system-architectSkill
- technical-writerSkill
- typescript-engineerSkill
- mobile-react-native-engineerSkill
- senior-react-engineerSkill
- security-engineerSkill
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
- Distinctive: line 32
Do not fight the framework with unnecessary client-only SPAs
- Distinctive: line 46
Do not expose server secrets to client bundles
- Distinctive: line 51
Test route behavior and critical user flows
- Distinctive: line 58
Avoid fetching in nested client waterfalls
- Distinctive: line 65
Do not swallow redirect/notFound control flow
≈ “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.
Files
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,erroras 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.tsxfor 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
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
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.

