agentsclimarketplace

Backend

Skill hilmifawwazsaad/ExpressJS-ts-Boilerplate/.agents/backend

Generate production-grade Express.js + TypeScript code with Layered Architecture. Routes, handlers, services, repositories, middlewares, validations, utils — no UI.From its SKILL.md

Install
npx -y skills add hilmifawwazsaad/ExpressJS-ts-Boilerplate --skill backend

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.1 KB, 647 tokens by cl100k_base, as published. Nobody here has run it

Pre-Code Checklist

  1. Which layer? Map need to exactly one row in the Architecture table
  2. Call direction: routes → handlers → services → repositories — no skipping, no reversing
  3. Error to throw? Use typed class from utils/errors.ts, never raw new Error()

Architecture

LayerFileConstraint
Path + HTTP methodroutes/[name].route.tsAttach middleware + handler only — no logic
Auth, rate limitingmiddlewares/[name].middleware.tsAlways call next() or next(err)
Body / params / query validationvalidations/[name].validation.tsZod schema · export z.infer as named type
Request → responsehandlers/[name].handler.ts< 20 lines · try/catch/next(err) · no DB
Business logicservices/[name].service.tsNo req/res · throw on not-found, never return null
DB queriesrepositories/[name].repository.tsOnly layer allowed to touch DB
Entity interfaces and enumsmodels/[name].model.tsDomain types only
Env vars, DB connectionconfig/env.ts · config/database.tsAll process.env here only
Helpers, errors, response formatutils/Domain-agnostic — no layer imports
Express + shared type augmentationtypes/express.d.tsreq.user augmentation here only

TypeScript

  • strict: true enforced in tsconfig.json
  • unknown not any — if any is necessary, add an inline comment
  • Unused params: prefix with _ — _req, _res, _next
  • Types from Zod only: type T = z.infer<typeof schema> — never write duplicate interfaces
  • All src/ imports via @/ alias — never relative ../../

Response & Errors

sendSuccess(res, data) · sendCreated(res, data, msg) from utils/response.ts. For errors: next(err).

Errors from utils/errors.ts only — never throw new Error(): NotFoundError · UnauthorizedError · ForbiddenError · ConflictError · ValidationError

Never Do

  • Logic in routes/ · DB in handlers/ · req/res in services/
  • process.env outside config/env.ts
  • Return null for missing data — throw NotFoundError
  • any without inline comment · manual types duplicating a Zod schema
  • Expose raw err.message or stack trace to client
  • Log secrets, tokens, or passwords
  • Import libraries not in package.json

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 325,949. 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.