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 50 tokens per session (6,504 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. Also seen: reads .claude/ paths.

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 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,504 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.00050 $0.06504
Opus 5.5 $0.00020 $0.02602
Sonnet 5.5 $0.00010 $0.01301
Haiku 4.5 $0.00005 $0.00650

Measured 3d ago against content hash 2e5edac33c60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3d 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 · 540 lines

How it starts

The opening of the file, as written. The whole thing — 540 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 ---
apps/api/src/domains/projects/projects.controller.ts
apps/api/src/domains/projects/projects.service.ts
apps/api/src/domains/projects/project.repository.ts
apps/api/src/domains/projects/projects.module.ts
apps/api/src/domains/projects/project.entity.ts
apps/api/src/domains/rbac/platform-role.service.ts
apps/api/src/domains/rbac/platform-role.repository.ts
apps/api/src/domains/agents/agents.controller.ts
apps/api/src/domains/agents/agent.factory.ts
apps/api/src/domains/rbac/rbac.constants.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 · 540 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. 3d ago Changed 2e5edac33c60
  2. 17d ago Changed · -15 lines · -1 tokens per session 759544b42076
  3. 1mo ago Changed · +2 lines 1713c8f0eb27
  4. 1mo ago Changed · +18 lines · +2 tokens per session b1459eed6fa7
  5. 1mo 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 (23 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 6,504 once invoked, about $0.0002 per session on Opus 5.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

crud-generator compared with skills from other repositories

crud-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crud-generatorbayesimpact/bayes-platformSkill23yesterdayMITA50Claude Code
langbot-devlangbot-app/LangBotSkill19kyesterdayApache-2.0A136Claude Code, Codex
trigger-realtime-and-frontendtriggerdotdev/trigger.devSkill17k3d agoApache-2.0A148Claude Code, Codex
devtools-event-clientTanStack/devtoolsSkill510yesterdayMITA79Claude Code, Codex
airflow-pluginsastronomer/agentsSkill4584d agoApache-2.0A147Claude Code
walkeros-create-destinationelbwalker/walkerOSSkill3492d agoMITA77Claude Code
walkeros-create-sourceelbwalker/walkerOSSkill3492d agoMITA65Claude Code