bayes-platform: Skill for Claude Code

.claude/skills/crud-generator/SKILL.md

crud-generator is a skill for Claude Code from bayesimpact/bayes-platform. It costs 49 tokens per session (6,215 once invoked), scanned A, original, MIT.

A generator for standard create, read, update, and delete files from an existing database entity. CRUD means creating, viewing, changing, and deleting records.

In plain words
What is it for?
Use it to generate NestJS API files and React/Redux frontend files for selected entity operations, including end-to-end tests.
Why use it?
It avoids repeatedly writing the same server and web code for a new entity and keeps the generated pieces consistent.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is bayesimpact/bayes-platform's own configuration. It tells Claude Code how to work on bayes-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bayes-platform configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { ContextResolver, ResolvableRequest } from "../context-resolver.interface".

Reuse

Borrowing it

Nothing to install: this file belongs to bayesimpact/bayes-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bayesimpact/bayes-platform/main/.claude/skills/crud-generator/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bayesimpact/bayes-platform

Made for: Claude Code.

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 crud-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/bayesimpact/bayes-platform/crud-generator/github.svg)](https://agentmods.dev/skills/bayesimpact/bayes-platform/crud-generator)
Your own site
<a href="https://agentmods.dev/skills/bayesimpact/bayes-platform/crud-generator"><img src="https://agentmods.dev/badge/skills/bayesimpact/bayes-platform/crud-generator/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 crud-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/bayesimpact/bayes-platform/crud-generator"><img src="https://agentmods.dev/badge/skills/bayesimpact/bayes-platform/crud-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00049 $0.06215
Opus 5 $0.00024 $0.03107
Sonnet 5 $0.00010 $0.01243
Haiku 4.5 $0.00005 $0.00622

Measured 2d ago against content hash d59b0ebe1af4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

crud-generator scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- [ ] Register the API implementation in apps/web/src/external/axios.services.ts:
.claude/skills/crud-generator/SKILL.md · 535 lines

How it starts

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

Generate all CRUD-related files for a new feature based on an existing entity file and a selected list of operations.

Invocation format

The user provides:

  1. Entity file path — absolute or repo-relative path to the existing .entity.ts file (e.g. apps/api/src/domains/widgets/widget.entity.ts)
  2. Methods — a comma- or space-separated list of operations to generate: Create, GetAll, GetOne, Update, Delete

Example invocations:

/crud-generator apps/api/src/domains/widgets/widget.entity.ts Create GetAll Update Delete
/crud-generator entity=apps/api/src/domains/widgets/widget.entity.ts methods=Create,Update

Parse the entity file path and method list from $ARGUMENTS.


Step 1 — Parse inputs

Extract:

  • entityFilePath — the provided entity file (e.g. apps/api/src/domains/widgets/widget.entity.ts)
  • methods — the list of requested operations (default to all four if none are given: Create, GetAll, Update, Delete)
  • Derive names:
    • featureName = folder name (e.g. widgets)
    • entityName = PascalCase singular (e.g. Widget)
    • entityNamePlural = camelCase plural (e.g. widgets)
    • entityNameKebab = kebab-case singular (e.g. widget)
    • entityNameKebabPlural = kebab-case plural (e.g. widgets)
    • routePrefix = the URL segment (e.g. widgets)
    • featureDir = directory of the entity file (e.g. apps/api/src/domains/widgets/)
    • webFeatureDir = apps/web/src/features/{entityNameKebabPlural}/
    • contractsDir = packages/api-contracts/src/{entityNameKebabPlural}/

Step 2 — Read the entity file and reference examples

Read these files to understand the entity shape and codebase patterns before generating anything:

# Entity to scaffold from (user-provided)
{entityFilePath}

# --- BACKEND reference files (agents module) ---
apps/api/src/domains/agents/agents.controller.ts
apps/api/src/domains/agents/agents.service.ts
apps/api/src/domains/agents/agents.module.ts
apps/api/src/domains/agents/agent.entity.ts
apps/api/src/domains/agents/agent.factory.ts
apps/api/src/domains/agents/agent.guard.ts
apps/api/src/domains/agents/agent.policy.ts
apps/api/src/domains/agents/e2e-tests/create-one.spec.ts
apps/api/src/domains/agents/e2e-tests/auth.spec.ts

# --- API CONTRACTS reference files ---
packages/api-contracts/src/agents/agents.dto.ts
packages/api-contracts/src/agents/agents.routes.ts
packages/api-contracts/src/helpers.ts

# --- FRONTEND reference files (agents feature) ---
apps/web/src/features/agents/agents.models.ts
apps/web/src/features/agents/agents.spi.ts
apps/web/src/features/agents/external/agents.api.ts
apps/web/src/features/agents/agents.thunks.ts
apps/web/src/features/agents/agents.slice.ts
apps/web/src/features/agents/agents.selectors.ts
apps/web/src/features/agents/agents.middleware.ts

Read the full file on GitHub · 535 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. 2d ago First seen · 535 lines · 49 tokens per session scan A d59b0ebe1af4

Subscribe to this mod's changes

crud-generator is a skill published in the GitHub repository bayesimpact/bayes-platform (18 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 6,215 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.

Related

Other skills, from other repositories

nextjs-app-router

Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient/HydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.

trpc/trpc · 74 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

with-tanstack-query

Compose Angular Query with signal-owned Table filtering, sorting, and pagination state using reactive query options, manual row-model boundaries, direct query data, server counts, and valid injection context.

TanStack/table · 42 tokens

langbot-dev

Develop, build, and debug the LangBot core backend and web frontend. Use when working inside the LangBot repository — backend (Python/Quart, src/langbot/pkg), the Vite/React web UI, HTTP API controllers/services, Alembic migrations, or the MCP server. Covers the dev environment (uv, pnpm), repo layout, the API auth…

langbot-app/LangBot · 136 tokens

trigger-realtime-and-frontend

Trigger.dev client/frontend surface: subscribe to runs in realtime (runs.subscribeToRun and the @trigger.dev/react-hooks hook useRealtimeRun), consume metadata and AI/text streams in React (useRealtimeStream), trigger tasks from the browser (useTaskTrigger, useRealtimeTaskTrigger), and mint scoped frontend credentials…

triggerdotdev/trigger.dev · 148 tokens

airflow-plugins

Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use when building anything custom inside Airflow 3.1+ that involves Python and a browser-facing interface - creating an Airflow plugin, adding a custom UI page or…

astronomer/agents · 147 tokens