# Crud

> Crud is an open-source agent skill for developer tools. Scaffolds CRUD endpoints, Zod validation and tests for an entity in your codebase. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/main/skills/crud
- **Repository:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **GitHub stars:** 42
- **License:** MIT
- **Skill name:** crud
- **Collection:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through generating create, read, update and delete functionality for a named entity, such as a database table. It first looks at the existing schema, which may be Prisma, Drizzle or raw SQL, and infers field types and relations. It then produces API endpoints, Zod validation schemas and authorization rules, aiming to match the existing database and code with minimal changes to what is already there.

The workflow continues into test generation, covering unit tests for each endpoint, integration tests and fixtures, followed by a type check, a test run and a build check. The skill lists support for Next.js with Prisma or Drizzle, Express and Hono, and its output layout places schemas under a lib folder, route handlers under an app api folder and tests under a tests folder.

The skill is marked as explicit-only and is meant to be invoked by name rather than loaded automatically. It expects a project with one of the supported frameworks and calls out to sibling skills named impl and verify for implementation and verification steps.

## When your agent uses it

> Explicit helper for CRUD scaffolding and API endpoint generation. Do NOT load for: UI components, form design, database schema discussion, or general implementation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/crud)
- [Asks for: Read, Write, Edit, Bash, Grep, Glob](https://github.com/maxwell2732/claudecode-research-harness-workflow/blob/HEAD/skills/crud/SKILL.md)
- [License: MIT](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/crud)

## Features

- **Entity schema detection:** Reads an existing Prisma, Drizzle or raw SQL schema to infer field types and relations for the entity.
- **REST endpoint generation:** Creates list, create, read, update and delete route handlers for the entity.
- **Zod validation schemas:** Adds input validation schemas for the entity's create and update operations.
- **Authorization rule setup:** Configures access rules so the generated endpoints respect who can view or edit records.
- **Pagination and search:** Includes listing support with pagination, search and filters in the generated endpoints.
- **Generated test cases:** Produces unit tests per endpoint, integration tests and fixtures for the new entity.

## Good for

- Create CRUD endpoints for a tasks table in a Next.js and Prisma app
- Add a Zod-validated API for a new entity in an Express project
- Generate tests for list, create, update and delete routes
- Scaffold a Hono route set for a new resource with search and pagination

## Install

### Claude Code

This skill ships in the `claudecode-research-harness-workflow` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow
```

Or copy only this skill to `~/.claude/skills/crud`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/crud &&
cp -R "$tmp/skills/crud" ~/.claude/skills/crud &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/crud` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/crud` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/crud &&
cp -R "$tmp/skills/crud" ~/.agents/skills/crud &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/crud` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/crud` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/crud &&
cp -R "$tmp/skills/crud" ~/.cursor/skills/crud &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/crud` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/maxwell2732/claudecode-research-harness-workflow.git --path skills/crud
```

Or copy the folder to `~/.gemini/skills/crud` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/crud`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/crud &&
cp -R "$tmp/skills/crud" ~/.copilot/skills/crud &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/crud` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git
```

Then copy `claudecode-research-harness-workflow/skills/crud` into your agent's skills folder as `crud`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which frameworks does Crud support?

The skill lists Next.js with Prisma, Next.js with Drizzle, Express and Hono, each detected from files such as prisma/schema.prisma, drizzle.config.ts or the package.json dependencies.

### When should Crud not be used?

The description says not to load it for UI components, form design, database schema discussion or general implementation work.

### Does Crud change my existing code?

It states that it aims to minimize the diff to match existing database and code, and it generates validation, route, and test files under a structured src layout.

### Is Crud triggered automatically?

It is marked as user-invocable false with model invocation disabled, so it runs only when explicitly requested.

### How do I install Crud in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/crud to use it in all your projects, or to .claude/skills/crud in one project. Or install the claudecode-research-harness-workflow plugin, which includes it: /plugin marketplace add maxwell2732/claudecode-research-harness-workflow, then /plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow.

### Does Crud run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Crud?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Crud?

The closest alternatives to Crud are Backend patterns, Openapi to application code, JSON schema, Openapi spec generator and API GraphQL GRPC.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Backend patterns](https://ai-powered.com/skills/backend-patterns): Backend patterns is an open-source agent skill for developer tools.
- [Openapi to application code](https://ai-powered.com/skills/openapi-to-application-code): Openapi to application code is an open-source agent skill for developer tools.
- [JSON schema](https://ai-powered.com/skills/json-schema): JSON schema is an open-source agent skill for developer tools.
- [Openapi spec generator](https://ai-powered.com/skills/openapi-spec-generator): Openapi spec generator is an open-source agent skill for developer tools.
- [API GraphQL GRPC](https://ai-powered.com/skills/api-graphql-grpc): API GraphQL GRPC is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [API design](https://ai-powered.com/skills/api-design): API design is an open-source agent skill for developer tools.
- [API design](https://ai-powered.com/skills/api-design-nabwinsaud): API design is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/crud
