go-add-entity

go-add-entity is a skill for Claude Code from JotJunior/cstk. It costs 35 tokens per session (6,440 once invoked), scanned A, original, MIT.

A generator that adds a complete CRUD feature to an existing Go microservice. CRUD means creating, reading, updating, and deleting records; the generator adds the related code, database migration, and wiring.

In plain words
What is it for?
It is for adding a new entity or resource with fields, relationships, and optional features such as soft deletion, status values, or search.
Why use it?
It removes the repetitive work of implementing a new entity across the service's domain, storage, API, and setup layers while following existing conventions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the cstk-language-go plugin — 7 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jotjunior/cstk/go-add-entity
Any agent
npx skills add JotJunior/cstk --skill go-add-entity
Clone the repo
git clone --depth 1 https://github.com/JotJunior/cstk

Made for: Claude Code.

Or install cstk-language-go, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-add-entity

README.md
[![agentmods](https://agentmods.dev/badge/skills/jotjunior/cstk/go-add-entity.svg)](https://agentmods.dev/skills/jotjunior/cstk/go-add-entity)
Your own site
<a href="https://agentmods.dev/skills/jotjunior/cstk/go-add-entity"><img src="https://agentmods.dev/badge/skills/jotjunior/cstk/go-add-entity.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.06440
Opus 5 $0.00017 $0.03220
Sonnet 5 $0.00007 $0.01288
Haiku 4.5 $0.00003 $0.00644

Measured 6d ago against content hash 32f5516e71d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

go-add-entity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cstk-language-go/skills/go-add-entity/SKILL.md · 796 lines

How it starts

The opening of the file, as written. The whole thing — 796 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Add Entity

Generate a complete CRUD vertical slice for a new entity in an existing GOB Go microservice. This creates 8-10 files following all project conventions.

Trigger Phrases

"add entity", "new entity", "nova entidade", "add CRUD", "adicionar recurso", "add resource"

Arguments

$ARGUMENTS should specify:

  • Service name (e.g., gob-member-service) — required
  • Entity name (e.g., ServiceGroup, Topic) — required, in PascalCase
  • Fields/columns — list of fields with types (can be informal, will be normalized)
  • Relations (optional) — foreign keys to other entities
  • Features (optional) — e.g., "with soft delete", "with status enum", "with search"

Pre-Flight Reads

Before generating ANY code, read these files from the target service (in parallel):

  1. go.mod — module path (e.g., github.com/gob/gob-process-service)
  2. internal/factory/factory.go — existing repos, factory pattern in use
  3. internal/repository/repository.go — existing interfaces, import paths
  4. migrations/ (ls directory) — next migration number
  5. cmd/api/main.go — wiring point, existing services/handlers, route groups
  6. internal/dto/dto.go — existing shared types (ErrorResponse, Response, Pagination)
  7. internal/domain/ (ls directory) — existing domain models for reference

Also determine:

  • Schema name from service-to-schema mapping (see go-add-migration skill)
  • Table name: plural snake_case of entity (e.g., ServiceGroupservice_groups)
  • Next migration number: highest existing + 1, zero-padded to 3 digits

Files to Generate

1. Domain Model — internal/domain/{entity_snake}.go

package domain

import (
    "time"
    "github.com/google/uuid"
)

// {Entity} represents a {description}.
type {Entity} struct {
    ID          uuid.UUID  `json:"id" db:"id"`
    // ... fields with both json and db tags ...
    CreatedAt   time.Time  `json:"created_at" db:"created_at"`
    UpdatedAt   *time.Time `json:"updated_at,omitempty" db:"updated_at"`
}

Read the full file on GitHub · 796 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 796 lines · 35 tokens per session scan A 32f5516e71d7

Subscribe to this mod's changes

go-add-entity is a skill published in the GitHub repository JotJunior/cstk (23 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 6,440 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

golang-pro

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming…

Jeffallan/claude-skills · 95 tokens

golang-graphql

Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports github.com/99designs/gqlgen or github.com/graph-gophers/graphql-go.

samber/cc-skills-golang · 77 tokens

layered-architecture-types

Enforce primitive-at-edges / strong-types-in-Business layering and the toBus/fromBusResponse/toDB converter pattern. Use when writing, editing, or auditing Go files under app/, business/domain/, or .../stores/db.

ardanlabs/service · 56 tokens

golang-grpc

Provides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gRPC servers/clients, writing proto files, setting up interceptors, handling gRPC errors with status codes, configuring TLS/mTLS, testing with bufconn, or…

samber/cc-skills-golang · 72 tokens

golang-swagger

Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example…

samber/cc-skills-golang · 146 tokens

goframe-v2

GoFrame development skill. TRIGGER when writing/modifying Go files, implementing services, creating APIs, or database operations. DO NOT TRIGGER for frontend/shell scripts.

hashgraph-online/awesome-codex-plugins · 40 tokens