new-resource

new-resource is a skill for Claude Code, Codex from KhaledSaeed18/node-express-boilerplate. It costs 53 tokens per session (1,442 once invoked), scanned A, original, MIT.

A step-by-step guide for adding a complete API resource, meaning a related set of endpoints for one kind of data such as comments. It covers the database model, types, validation, storage, business logic, routes, application setup, API documentation, and tests.

In plain words
What is it for?
Use it when adding a new entity, model, resource, or group of endpoints to a TypeScript API that uses Prisma and the listed application layers.
Why use it?
It helps keep all parts of a new API feature consistent instead of adding an endpoint while overlooking its database, documentation, or tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { validateBody } from '../lib/validate';.

Good fit Use it when adding a new entity, model, resource, or group of endpoints to a TypeScript API that uses Prisma and the listed application layers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/node-express-boilerplate
agentmods
npx agentmods add skills/khaledsaeed18/node-express-boilerplate/new-resource

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-resource

README.md
[![agentmods](https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/new-resource/github.svg)](https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/new-resource)
Your own site
<a href="https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/new-resource"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/new-resource/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-resource

Your own site · 80×15
<a href="https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/new-resource"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/new-resource.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01442
Opus 5.5 $0.00021 $0.00577
Sonnet 5.5 $0.00011 $0.00288
Haiku 4.5 $0.00005 $0.00144

Measured 2mo ago against content hash 2a11bce02600, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-resource scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/new-resource/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When the user asks to add a new resource (e.g. "add a comments resource"), follow this exact sequence. Ask for the resource name if not provided.

Variables

  • <Name> = PascalCase singular (e.g. Comment)
  • <name> = camelCase singular (e.g. comment)
  • <names> = camelCase plural (e.g. comments)

Step 1 — Prisma Schema (prisma/schema.prisma)

Add the new model first so TypeScript types are available for every subsequent step.

Requirements:

  • id String @id @default(cuid())
  • All fields with appropriate types and nullability
  • Foreign key relations with onDelete: Cascade on the child side
  • createdAt DateTime @default(now()) and updatedAt DateTime @updatedAt
  • @@index on every foreign key column and commonly filtered fields
  • @@map("snake_case_table_name")

Then immediately run:

pnpm prisma:migrate
pnpm prisma:generate

Step 2 — Types (src/types/<name>.types.ts)

Define DTOs before writing any other layer:

export interface Create<Name>DTO { /* fields */ }
export interface Update<Name>DTO { /* partial fields */ }
export interface <Name>ResponseDTO { /* safe fields to return, no password etc. */ }

Export from src/types/index.ts.


Step 3 — Validation (src/validations/<name>.validation.ts)

Create Zod v4 schemas. Pattern from src/validations/note.validation.ts:

import { z } from 'zod';
import { validateBody } from '../lib/validate';
import type { RequestHandler } from 'express';

export const create<Name>Schema = z.object({ /* fields */ });
export type Create<Name>Input = z.infer<typeof create<Name>Schema>;
export const create<Name>Validation: RequestHandler = validateBody(create<Name>Schema);

export const update<Name>Schema = z.object({ /* fields, all optional for PATCH */ });
export type Update<Name>Input = z.infer<typeof update<Name>Schema>;
export const update<Name>Validation: RequestHandler = validateBody(update<Name>Schema);

Step 4 — Repository (src/repository/<name>.repository.ts)

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 190 lines · 53 tokens per session scan A 2a11bce02600

Subscribe to this mod's changes

new-resource is a skill published in the GitHub repository KhaledSaeed18/node-express-boilerplate (36 stars, last pushed 4d ago), licensed MIT. It adds 53 tokens to every session and 1,442 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

new-resource compared with skills from other repositories

new-resource next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-resourceKhaledSaeed18/node-express-boilerplateSkill364d agoMITA53Claude Code, Codex
prisma-8prisma/ormSkill48kyesterdayApache-2.0A220Claude Code, Codex
mail-timeveliovgroup/mail-timeSkill1439d agoBSD-3-ClauseA195Claude Code, Codex
webiny-api-opensearch-catalogwebiny/webiny-jsSkill8.0kyesterdaynoneA19Claude Code, Codex
nodejs-drizzlej4flmao/agent-skillsSkill383d agoMITA85Claude Code, Codex
nodejs-prismaj4flmao/agent-skillsSkill383d agoMITA79Claude Code, Codex
query-grammarkavo-labs/kavoSkill17yesterdayMITA83Claude Code