crud
8
总安装量
8
周安装量
#33612
全站排名
安装命令
npx skills add https://github.com/chachamaru127/claude-code-harness --skill crud
Agent 安装分布
opencode
8
gemini-cli
8
antigravity
8
github-copilot
8
codex
8
amp
8
Skill 文档
CRUD Skill
Auto-generates CRUD functionality for specified entities (tables) at production-ready level.
Quick Reference
- “Create CRUD for task management” â
/crud tasks - “Want search and pagination too” â Includes all together
- “Include permissions (who can view/edit)” â Sets up authorization/rules together
Deliverables
- CRUD + validation + authorization + tests, complete production-safe set
- Minimize diff to match existing DB/code
Features:
- Validation (Zod) auto-add
- Auth/authorization (Row Level Security) auto-config
- Relations (one-to-many, many-to-many) support
- Pagination, search, filters
- Auto-generated test cases
Auto-invoke Skills
This skill must explicitly invoke the following skills with the Skill tool:
| Skill | Purpose | When to Call |
|---|---|---|
impl |
Implementation (parent skill) | CRUD feature implementation |
verify |
Verification (parent skill) | Post-implementation verification |
Execution Flow
Detailed steps are described in the phases below.
Phase 1: Entity Analysis
- Parse entity name from $ARGUMENTS
- Detect existing schema (Prisma, Drizzle, raw SQL)
- Infer field types and relations
Phase 2: CRUD Generation
- Generate model/schema if needed
- Create API endpoints (REST or tRPC)
- Add validation schemas (Zod)
- Configure authorization rules
Phase 3: Test Generation
- Create unit tests for each endpoint
- Add integration tests
- Generate test fixtures
Phase 4: Verification
- Run type check
- Run tests
- Verify build
Supported Frameworks
| Framework | Detection | Generated Files |
|---|---|---|
| Next.js + Prisma | prisma/schema.prisma |
API routes, Prisma client |
| Next.js + Drizzle | drizzle.config.ts |
API routes, Drizzle queries |
| Express | express in package.json |
Controllers, routes |
| Hono | hono in package.json |
Route handlers |
Output Structure
src/
âââ lib/
â âââ validations/
â âââ {entity}.ts # Zod schemas
âââ app/api/{entity}/
â âââ route.ts # GET (list), POST (create)
â âââ [id]/
â âââ route.ts # GET, PUT, DELETE
âââ tests/
âââ {entity}.test.ts # Test cases
Related Skills
impl– Feature implementationverify– Build verificationauth– Authentication/authorization