Add new entity with full CRUD to existing feature
Add a new entity with full CRUD operations to an existing feature. Use this when you need complete data infrastructure for a new resource within a feature.
/plugin marketplace add venturo-id/venturo-claude/plugin install venturo-go@venturo-toolsAdd a new entity with complete CRUD operations to an existing feature.
Use this when:
profile entity to user_management featureDon't use when:
/venturo-go:new-feature/venturo-go:add-endpointAsk these questions:
features/ directory)product, order, profile)/products, /orders)Present plan and ask for confirmation.
Execute these 9 phases in order:
phases/new-entity/01-migration.mdphases/new-entity/02-domain-entity.mdphases/new-entity/03-dtos.mdphases/new-entity/04-repository.mdphases/new-entity/05-service.mdphases/new-entity/06-handler.mdphases/new-entity/07-routes.mdphases/shared/code-quality.mdphases/shared/documentation.mdSimple CRUD Entity:
Entity with Relationships:
Entity with State Machine:
Entity with Soft Delete:
DeletedAt fieldEntity with Audit Trail:
CreatedBy, UpdatedByentity.{entity}.go (singular)request.{entity}.go, response.{entity}.gohttp.{entity}.gorepo.{entity}.goservice.{entity}.goerrors.{feature}.go (shared)User: /venturo-go:add-entity
Claude: Which feature?
- user_management
- email_sender
User: user_management
Claude: Entity name? (singular)
User: profile
Claude: Database table name?
User: user_profiles
Claude: Does table exist?
User: No
Claude: What fields?
User:
- bio: text
- avatar_url: string
- phone: string, unique
- user_id: uuid, foreign key
[Presents plan, proceeds with phases]
make gen-crud