agentsclimarketplace

Fullstack

Skill hilmifawwazsaad/NextJS-js-Boilerplate/.agents/fullstack

Build fullstack features in a single Next.js (App Router) JavaScript project — spanning UI, Route Handlers, Server Actions, and/or DB. Not for pure UI (use frontend skill) or external API servers (use backend skill).From its SKILL.md

Install
npx -y skills add hilmifawwazsaad/NextJS-js-Boilerplate --skill fullstack

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.5 KB, 691 tokens by cl100k_base, as published. Nobody here has run it

Read .agents/software-principles/SKILL.md first.

Pre-Code Checklist

  1. Map data flow: origin (DB / external API / form input)
  2. Mutation strategy: Server Action (form/page-tied) vs. Route Handler (REST/webhook)
  3. Auth requirement at every server entry point
  4. All four UI states: loading · error · empty · ideal

Server/Client Boundary

NeedSolutionLocation
Fetch + render dataasync Server Componentapp/**/page.jsx
Form / page mutationServer Action 'use server'app/**/actions.js
REST endpoint / webhookRoute Handlerapp/api/**/route.js
Interactivity / hooksClient Component 'use client' — push to leavescomponents/
Auth + route guardMiddlewaremiddleware.js
Shared business logicServices / utilitieslib/ · services/ · utils/

Extensions: .jsx for JSX · .js everything else.

UI Layer

Apply all rules from frontend skill. Key additions:

  • Pass only serializable, non-sensitive data as props to Client Components
  • Wrap slow async Server Components in <Suspense>
  • error.jsx must be 'use client'
  • redirect() throws — never call inside try/catch

Server Actions (app/**/actions.js)

File must start with 'use server'. Required order:

  1. Validate input
  2. Check auth/session
  3. Call service layer — no business logic inline
  4. revalidatePath() or revalidateTag() after mutation
  5. Return typed result — follow project convention for shape

Route Handlers (app/api/**/route.js)

Follow existing response shape convention. If none, pick one and apply consistently. Never mix shapes across handlers.

Required regardless of shape: success/error distinguishable · validation errors include field-level detail · no stack traces or internal paths exposed.

Handler order: validate input → auth check → service call → return envelope.

Data Layer (lib/db.js · services/*.js)

  • All DB access in service layer — never inline in handlers or components
  • Connection pooling always on. Parameterized queries or ORM — no string SQL
  • unstable_cache() or cache() for expensive repeated reads
  • revalidateTag() preferred over revalidatePath() for precision

Security (non-negotiable)

  • Auth check first in every Server Action and Route Handler — before any logic
  • middleware.js guards routes via cookies() or token check
  • Secrets server-only — never NEXT_PUBLIC_ for sensitive values
  • Parameterized queries. Hash passwords (bcrypt/argon2)
  • Rate-limit auth and mutation-heavy endpoints

Never Do

  • DB queries or secrets in Client Components / NEXT_PUBLIC_ vars
  • Trust unvalidated input in actions or handlers
  • Sensitive data as Client Component props (exposed in JS bundle)
  • Business logic inline in route handlers or page components
  • Skip any of the four UI states

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,852. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.