new-module
Skill0 starsChanged 15 days agoMITView on GitHub
Add a new feature module (model/schema, validation, service, controller, route, index, router registration, API doc) to an existing Express backend, matching its conventions exactly. Use when the user asks to add a feature, resource, entity, CRUD, endpoint group or module to a backend that already exists.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- sanitypress/skillstheir own version, first seen Nov 22, 2026
- kuldeeps48/agentic-engineeringtheir own version, first seen Nov 16, 2026
- ingsergiovt/claude-code-hexagonal-kittheir own version, first seen Nov 1, 2026
- ricci-labs/twisetheir own version, first seen Oct 20, 2026
- lepresk/groundworktheir own version, first seen Oct 15, 2026
- nextflow-io/trainingtheir own version, first seen Oct 8, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- nextflow-io/training★ 283same name
- luk-s12/legion★ 2same name
- ingsergiovt/claude-code-hexagonal-kit★ 1same name
- sanitypress/skills★ 1same name
- kuldeeps48/agentic-engineering★ 0same name
- lepresk/groundwork★ 0same name
- ricci-labs/twise★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- ai-integrationSkill
- api-docsSkill
- auth-sessionsSkill
- backend-conventionsSkill
- backend-reviewSkill
- create-backendSkill
- deploy-dockerSkill
- mongoose-mongodbSkill
- nextjs-api-routesSkill
- prisma-postgresSkill
- redis-cacheSkill
- scheduled-jobsSkill
- security-hardeningSkill
- session-logSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Add one complete module to an existing backend.
- Distinctive: line 13
Read, in this order, and match what you find over anything below:
- Distinctive: line 23
Before writing, state in a few lines and wait if anything is unclear:
- Distinctive: line 47
If the server can run locally, hit each new route once and report real status codes.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
New Module
Add one complete module to an existing backend. If no backend exists yet, use create-backend instead.
1. Learn the project first
Read, in this order, and match what you find over anything below:
CLAUDE.md/AGENTS.mdat the repo root and in the server folder.package.json→ which database (mongoose vs@prisma/client), Redis, Zod version.src/router/index.js→ mount style and prefix.- One existing module end to end (route, controller, service, schema, index) — or
src/modules/_template/if present. src/shared/index.js→ the exact names ofauthenticate, role middleware,validateRequest,httpResponse,logger.- How
req.useris shaped (req.user.idfor owner-scoped data, or a tenant id such asreq.user.storeId/req.user.orgId) — this decides the scope argument.
2. Confirm the contract
Before writing, state in a few lines and wait if anything is unclear:
- Fields, scope field, indexes.
- Endpoints (GET/POST only), roles per endpoint, request and response shapes.
- What existing tables/collections, caches or modules it touches and what could break.
3. Build in this order
- Data
- Mongoose:
src/models/<name>.model.js—isActive,{ timestamps: true }, indexed scope field,{ scope: 1, isActive: 1 }index, index for every filter/sort field, default export withmongoose.models.X ||guard. - Prisma: model in
prisma/schema.prisma—isActive,createdAt,updatedAt,@@index([scope, isActive]),@@map("snake_plural"), and the back-relation field on the scope model (vendors Vendor[]onUser); thennpm run db:generate && npm run db:migrate -- --name add_<name>. Never edit an applied migration.
- Mongoose:
- Validation
validations/<name>.schema.js— one inline-exported Zod schema per input (body, query, params). Coerce query values. Partial updates require at least one field. - Service
services/<name>.service.js— scope id as first argument, explicit field selection,isActive: trueon every read,Promise.allfor independent queries, no queries in loops, thrown errors withstatusCode, cache invalidation on every write if the entity is cached. Named exports at the bottom. - Controller
controllers/<name>.controller.js—asyncHandler+ try/catch, one service call,logger.infoon state changes,logger.errorwitherror,stack,userId,requestId,httpError(req, res, error, error.statusCode || 500). Named exports at the bottom. - Route
routes/<name>.route.js—authenticate → role → validateRequest → controller. Update =POST /:id, delete =POST /:id/remove. - Index
index.js— export<name>Routesthe same way other modules do. - Register in
src/router/index.js. - Docs —
api/<name>.mdand a row inapi/README.mdif the project keeps API docs (seeapi-docs). If it uses Swagger/OpenAPI instead, update that.
Reference implementations: ../create-backend/templates/mongodb-example.md and ../create-backend/templates/postgres-example.md — a complete vendor module, each file under a ## \<path>`heading. For an AI feature, model it onsrc/modules/assistant/in../create-backend/templates/ai.md (prompt/, tools/, evals/`).
4. Verify
npm run lint(or the project's lint script) passes.- The app starts cleanly with
npm run devand the new routes are mounted. - If the server can run locally, hit each new route once and report real status codes. If it cannot, say so.
- Re-read your diff for: comments,
console.log, PUT/PATCH/DELETE, missingisActive, missing selection, double-wrappeddata, unindexed filters.
Report the files created/changed and the endpoint table.
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.

