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

Good fit It is for adding a new entity or resource with fields, relationships, and optional features such as soft deletion, status values, or search.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jotjunior/cstk/go-add-entity
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-add-entity

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.5 $0.00014 $0.02576
Sonnet 5.5 $0.00007 $0.01288
Haiku 4.5 $0.00003 $0.00644

Measured 1mo ago against content hash 32f5516e71d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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., ServiceGroup → service_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. 1mo 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 (24 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 6,440 once invoked, about $0.0001 per session on Opus 5.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

fiber-rest-api

Use when adding or changing a Go HTTP endpoint — Fiber v2 or v3 (detect which), thin handlers, central error mapping, boundary validation; the same rules apply to net/http, chi, echo or gin.

makifbaysal/tasktrooper · 47 tokens

go-hexagonal-architecture

Use when adding a use case, port, repository or adapter in a Go service — where each piece goes, how errors and transactions cross layers, and how to check the import direction.

makifbaysal/tasktrooper · 43 tokens

zerolog-observability

Use when adding logging to Go code - the repository's logger with structured fields, request-scoped correlation, correct levels, no secrets or double-logging.

makifbaysal/tasktrooper · 36 tokens

backend-language-decision

Use when starting a backend task that could be built in more than one language - follow the repository's stack, or for a greenfield service choose between Go, Java, C#/.NET, TypeScript on Node.js and Rust from the task's shape.

makifbaysal/tasktrooper · 56 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

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