v0.x-to-crud-lib
OfficialMigrate CRUD handlers to forge/pkg/crud
Software Engineering#code generation#crud#pagination#forge#error semantics#handler migration#order-by validation
Authorreliant-labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill resolves repetitive, per-RPC CRUD lifecycle code by migrating generated CRUD handlers to delegate that lifecycle logic to forge/pkg/crud, while preserving the existing observable behavior and error wording.
Core Features & Use Cases
- Thin per-RPC delegations: Rewrites generated handlers_crud_gen.go so each CRUD RPC becomes a single call into forge/pkg/crud with a small op struct describing auth, tenant scoping, entity mapping, persistence, and response packing.
- Behavioral fingerprints preserved: Keeps the same error envelopes and messages for Create/Get/List/Update/Delete, including cursor decoding errors, required-field validation messages, page-size defaults/clamps, and order-by validation semantics.
- Safe generator boundary: Regenerates only handlers that the generator owns (generated CRUD methods), skipping hand-written sibling overrides to avoid clobbering custom implementations.
Quick Start
Run forge generate to rewrite handlers_crud_gen.go for every service that has auto-generated CRUD RPCs so they delegate to forge/pkg/crud.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: v0.x-to-crud-lib Download link: https://github.com/reliant-labs/forge/archive/main.zip#v0-x-to-crud-lib Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.