api-crud-generator

api-crud-generator is a skill for Claude Code, Codex from stevesolun/micro-skills. It costs 43 tokens per session (1,874 once invoked), scanned A, original, MIT.

A generator for REST APIs that let software create, read, update, and delete records. It includes validation, error handling, authentication middleware, tests, and OpenAPI documentation.

In plain words
What is it for?
Use it when adding API endpoints or CRUD resources to Node.js, Python, Go, or Ruby projects, after it detects the project's framework and follows its existing structure.
Why use it?
It removes the need to hand-build the repeated parts of a backend resource API. It also helps keep the endpoint behaviour, security checks, tests, and API description together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding API endpoints or CRUD resources to Node.js, Python, Go, or Ruby projects, after it detects the project's framework and follows its existing structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stevesolun/micro-skills/original
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add stevesolun/micro-skills --skill original
Clone the repo
git clone --depth 1 https://github.com/stevesolun/micro-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stevesolun/micro-skills/original.svg)](https://agentmods.dev/skills/stevesolun/micro-skills/original)
Your own site
<a href="https://agentmods.dev/skills/stevesolun/micro-skills/original"><img src="https://agentmods.dev/badge/skills/stevesolun/micro-skills/original.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,874 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.
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.00043 $0.01874
Opus 5 $0.00022 $0.00937
Sonnet 5 $0.00009 $0.00375
Haiku 4.5 $0.00004 $0.00187

Measured 7d ago against content hash 2476b1dd7aa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

api-crud-generator 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 7d 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.

examples/api-crud-skill/original/SKILL.md · 257 lines

How it starts

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

API CRUD Generator

Generate production-ready CRUD REST API endpoints. This skill creates complete resource endpoints with validation, authentication, error handling, pagination, and tests.

When to Use

Trigger when the user asks to:

  • Create API endpoints for a resource
  • Build REST CRUD operations
  • Generate backend routes with validation
  • Add a new resource/entity to an existing API

Tech Stack Detection

Before generating code, detect the project's tech stack:

  1. Check for package.json -> Node.js (Express, Fastify, Nest)
  2. Check for requirements.txt or pyproject.toml -> Python (FastAPI, Django, Flask)
  3. Check for go.mod -> Go (Gin, Echo, Chi)
  4. Check for Gemfile -> Ruby (Rails, Sinatra)
  5. If unclear, ask the user which framework to use.

Read the existing project structure to match conventions:

  • File naming (camelCase vs snake_case vs kebab-case)
  • Directory structure (routes/, controllers/, handlers/)
  • Import style (ES modules vs CommonJS vs relative paths)
  • Existing middleware patterns
  • Database ORM in use (Prisma, TypeORM, SQLAlchemy, GORM, ActiveRecord)

Resource Definition

For each resource, determine:

  1. Resource name (singular and plural forms)
  2. Fields with types and constraints:
    • Required vs optional
    • String length limits
    • Number ranges
    • Enum values
    • Unique constraints
    • Default values
  3. Relationships to other resources (hasMany, belongsTo, manyToMany)
  4. Which fields are searchable/filterable
  5. Which fields should be excluded from responses (passwords, internal IDs)

Endpoint Generation

Generate these endpoints for each resource:

GET /resources

  • Pagination: ?page=1&limit=20 with max limit of 100
  • Sorting: ?sort=createdAt&order=desc
  • Filtering: ?status=active&category=tech
  • Search: ?q=search+term across searchable fields
  • Response format:
{
  "data": [...],
  "meta": {
    "total": 150,
    "page": 1,
    "limit": 20,
    "totalPages": 8
  }
}

GET /resources/:id

  • Return 404 with { "error": "Resource not found" } if not exists
  • Include related resources if ?include=comments,author is specified

Read the full file on GitHub · 257 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. 7d ago First seen · 257 lines · 43 tokens per session scan A 2476b1dd7aa7

Subscribe to this mod's changes

api-crud-generator is a skill published in the GitHub repository stevesolun/micro-skills (11 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 1,874 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories