verify-nextjs-fullstack
Skill4 starsChanged 3 months agoMITView on GitHub
Verification checklist for a full-stack Next.js backend — Drizzle, Auth.js, route handlers, server actions, Redis/BullMQ.
- Reads credentials
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- actionableSkill
- astro-bootstrapSkill
- astro-patternsSkill
- autopilotSkill
- axon-code-intelSkill
- brainstormingSkill
- commit-conventionsSkill
- cross-repo-contextSkill
- django-bootstrapSkill
- django-patternsSkill
- executeSkill
- find-sessionSkill
- flutter-bootstrapSkill
- flutter-patternsSkill
- full-featureSkill
- intelSkill
- nextjs-bootstrapSkill
- nextjs-fullstack-bootstrapSkill
- nextjs-fullstack-patternsSkill
- nextjs-mui-bootstrapSkill
- nextjs-patternsSkill
- nextjs-shadcn-bootstrapSkill
- orchestratorSkill
- phase-breakdownSkill
- plan-and-scopeSkill
- prdSkill
- reactSkill
- recallSkill
- reflectSkill
- relaySkill
- rememberSkill
- scaffoldSkill
- scratchSkill
- tailwindSkill
- ux-specSkill
- ux-to-promptsSkill
- verify-astroSkill
- verify-djangoSkill
- verify-flutterSkill
- verify-nextjs-muiSkill
- verify-nextjs-shadcnSkill
- verify-nextjsSkill
- verifySkill
- visual-feedbackSkill
- work-disciplineSkill
- worktreesSkill
- wrapSkill
- write-as-friendSkill
- write-as-humanSkill
- writing-clearlySkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 14
Run through each section. Flag issues as PASS, WARN, or FAIL.
≈ “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
Skill: Verify Next.js Full-Stack
Purpose
Systematic verification checklist for the backend layer of a full-stack Next.js project — Drizzle, Auth.js, Route Handlers, Server Actions, Redis, and BullMQ. Use alongside verify-nextjs.md (which covers frontend concerns).
Verification Process
Run through each section. Flag issues as PASS, WARN, or FAIL.
1. Tests
- Tests exist for new/changed services, route handlers, and server actions
vitestpasses with no failures- Service unit tests mock db/redis, not service functions themselves
- Route handler integration tests cover success and error paths
- Factory functions produce realistic test data (not "test123" placeholders)
2. Database (Drizzle)
- Migrations are generated and match schema changes (
drizzle-kit generate) - No migration conflicts with main branch
- New columns have sensible defaults or are nullable where appropriate
- Indexes exist on fields used in filters/lookups
- Queries use Drizzle query builder — no raw SQL without justification
- Relational queries use
with(not manual joins) where appropriate - All queries are scoped (filtered by user/tenant) — no unscoped data access
3. Route Handlers (API)
- Auth checked via
auth()on protected endpoints - Request bodies validated with Zod before processing
- Response shapes are consistent:
{ page, count, num_pages, results }for collections, object for singles,{ error }for failures - Appropriate HTTP status codes (201 for creation, 404 for not found, etc.)
- No business logic in handlers — delegated to services
- Pagination configured for list endpoints
4. Server Actions
"use server"directive at top of file- Auth checked via
auth()before mutations - Input validated with Zod before processing
- Return
ActionResult<T>pattern — not void or raw throws revalidatePath/revalidateTagcalled after mutations- No
redirect()inside try/catch blocks - No business logic in actions — delegated to services
5. Service Layer
- Business logic lives in
server/services/, not in handlers or actions - Services are plain functions receiving data as arguments
- Services do not import from
next/headersor Next.js request APIs - Service functions are independently testable
6. Auth (Auth.js)
- Auth.js configuration in
lib/auth.ts - Protected routes check
auth()— no manual cookie/token parsing - Middleware matcher correctly identifies public vs protected routes
- Session type extensions in
types/next-auth.d.tsif custom fields added - No sensitive user data stored in session (fetch from DB when needed)
7. Redis & Queues (if applicable)
- Redis keys follow naming convention:
{app}:{domain}:{id} - All cache keys have TTL set — no indefinite caching
- BullMQ job payloads are small and serializable (IDs, not full objects)
- Workers call services — no business logic in job processors
- Failed jobs have retry configuration with exponential backoff
8. Security
- No secrets or API keys in client code or committed to git
AUTH_SECRETis set and not a default value in production- Database credentials use environment variables, not hardcoded strings
- User input is validated (Zod) before database operations
- SQL injection prevented (using Drizzle query builder, not raw SQL)
- Rate limiting on sensitive endpoints (login, registration)
9. Development Environment
docker-compose.ymlincludes all required services (app, db, redis, worker if full)Makefileincludes database commands (db-generate,db-migrate,dbshell,dbreset)- No
npm/npxcommands used directly on host .env.localhas all required variables documented- Migrations can run cleanly from scratch (
dbreset+db-migrate)
10. Code Quality
- No commented-out code
- No
console.logleft in (except workers where it's intentional logging) - ESLint passes
- TypeScript compiles cleanly (
tsc --noEmit) - Consistent naming conventions (services, actions, routes)
Output
Produce a verification-report.md:
# Verification Report: [Feature/Phase]
Date: [date]
Reviewer: Claude (automated)
## Summary: [PASS/WARN/FAIL]
## Details
### Tests: [PASS/WARN/FAIL]
- [notes]
### Database: [PASS/WARN/FAIL]
- [notes]
### Route Handlers: [PASS/WARN/FAIL]
- [notes]
### Server Actions: [PASS/WARN/FAIL]
- [notes]
### Service Layer: [PASS/WARN/FAIL]
- [notes]
### Auth: [PASS/WARN/FAIL]
- [notes]
### Redis & Queues: [PASS/WARN/FAIL]
- [notes]
### Security: [PASS/WARN/FAIL]
- [notes]
### Dev Environment: [PASS/WARN/FAIL]
- [notes]
### Code Quality: [PASS/WARN/FAIL]
- [notes]
## Issues Found
1. [FAIL] Description + suggested fix
2. [WARN] Description + recommendation
## Recommended Actions
- [ ] Fix: ...
- [ ] Consider: ...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.

