Skip to content
Back to skills

Crud Implementation

ASecurity

Complete workflow guide for implementing new CRUD entities. Use when adding a new resource, implementing full CRUD operations, or needing an overview of the database-to-API flow. Triggers: "new entity", "add resource", "implement CRUD", "create table and API". Orchestrates add-database-table, add-domain-entity, and add-api-endpoint skills.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
databasesgobashsqlapidatabase

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill crud-implementation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crud Implementation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crud Implementation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-crud-implementation/badge)](https://www.skillsdirectory.com/skills/majiayu000-crud-implementation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crud-implementation
description: Complete workflow guide for implementing new CRUD entities. Use when adding a new resource, implementing full CRUD operations, or needing an overview of the database-to-API flow. Triggers: "new entity", "add resource", "implement CRUD", "create table and API". Orchestrates add-database-table, add-domain-entity, and add-api-endpoint skills.
---

# CRUD Implementation Workflow

Entry point for implementing a new entity with full CRUD operations.

## Workflow Overview

```
┌─────────────────────┐     ┌─────────────────────┐     ┌─────────────────────┐
│  add-database-table │ --> │  add-domain-entity  │ --> │  add-api-endpoint   │
│                     │     │                     │     │                     │
│  - Migration SQL    │     │  - Domain model     │     │  - Usecase          │
│  - Constant tables  │     │  - Repository       │     │  - Proto definition │
│  - SQLBoiler gen    │     │  - Marshaller       │     │  - gRPC handler     │
└─────────────────────┘     └─────────────────────┘     └─────────────────────┘
```

## Quick Start

| Step | Skill | Key Command |
|------|-------|-------------|
| 1 | **add-database-table** | `make migrate.create` then `make migrate.up` |
| 2 | **add-domain-entity** | `make generate.mock` |
| 3 | **add-api-endpoint** | `make generate.buf` |

## Before You Start

1. Know the entity name and its fields
2. Identify relationships to existing entities
3. Determine which API actor (admin/public/debug)

## Step-by-Step

### Step 1: Database Layer

Use the **add-database-table** skill for:
- Creating migration file with table DDL
- Adding indexes and foreign keys
- Creating constant tables for enum fields
- Running `make migrate.up` to generate SQLBoiler

### Step 2: Domain Layer

Use the **add-domain-entity** skill for:
- Domain model with constructor and update methods
- Repository interface with query structs
- Marshaller (DB model <-> domain model)
- Repository implementation

### Step 3: API Layer

Use the **add-api-endpoint** skill for:
- Usecase input/output structs
- Interactor interface and implementation
- Protocol Buffers messages and RPCs
- gRPC handler and marshaller
- DI registration

## Final Verification

```bash
make lint.go && make test
```

## Related Skills

- **code-investigation** - Analyze existing patterns before implementation
- **review-pr** - Self-review before creating PR
- **create-pull-request** - PR creation with proper format

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.