go-add-migration

go-add-migration is a skill for Claude Code from JotJunior/cstk. It costs 17 tokens per session (1,517 once invoked), scanned A, original, MIT.

A helper for creating PostgreSQL database migration files for GOB microservices. A migration is a versioned change to a database structure or its starting data.

In plain words
What is it for?
Use it to add tables, columns, indexes, seed data, or other schema changes to a GOB service.
Why use it?
It follows the service’s naming, numbering, schema, and project conventions, reducing mistakes when changing a database.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to add tables, columns, indexes, seed data, or other schema changes to a GOB service.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jotjunior/cstk/go-add-migration/github.svg)](https://agentmods.dev/skills/jotjunior/cstk/go-add-migration)
Your own site
<a href="https://agentmods.dev/skills/jotjunior/cstk/go-add-migration"><img src="https://agentmods.dev/badge/skills/jotjunior/cstk/go-add-migration/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-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/jotjunior/cstk/go-add-migration"><img src="https://agentmods.dev/badge/skills/jotjunior/cstk/go-add-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,517 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.00017 $0.01517
Opus 5.5 $0.00007 $0.00607
Sonnet 5.5 $0.00003 $0.00303
Haiku 4.5 $0.00002 $0.00152

Measured 1mo ago against content hash 86af6fed3312, 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-migration 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-migration/SKILL.md · 188 lines

How it starts

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

Go Add Migration

Create properly named PostgreSQL migration files for a GOB microservice following all project conventions.

Trigger Phrases

"add migration", "new migration", "criar migration", "nova migration", "create migration"

Arguments

$ARGUMENTS should specify:

  • Service name (e.g., gob-member-service) — required
  • Migration type (create_table, add_column, create_index, seed, alter_table, custom) — inferred from description
  • Description — what the migration does (e.g., "create notifications table", "add phone column to members", "seed default categories")

Pre-Flight Checks

Before generating files, read:

  1. Existing migrations — ls services/{service}/migrations/ to determine the next 3-digit sequence number
  2. go.mod — services/{service}/go.mod to confirm the service exists and get module path
  3. Schema name — derive from the service-to-schema mapping below

Service-to-Schema Mapping

Service Schema
gob-auth-service auth
gob-member-service member
gob-lodge-service lodge
gob-session-service session
gob-process-service process
gob-election-service election
gob-bulletin-service bulletin
gob-partnership-service partnership
gob-audit-service audit
gob-report-service report
gob-notification-service notification
gob-financial-service financial
gob-assistance-service assistance
gob-whatsapp-service whatsapp
gob-migration-service migration

If the service is not listed, extract the schema name from the service name by removing the gob- prefix and -service suffix.

Migration Numbering

  • List all files in services/{service}/migrations/
  • Find the highest existing number prefix (e.g., 012_xxx.up.sql → 12)
  • The new migration number is highest + 1, zero-padded to 3 digits (e.g., 013)
  • Generate both .up.sql and .down.sql files

File naming: {NNN}_{description_in_snake_case}.up.sql and {NNN}_{description_in_snake_case}.down.sql

Read the full file on GitHub · 188 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 · 188 lines · 17 tokens per session scan A 86af6fed3312

Subscribe to this mod's changes

go-add-migration is a skill published in the GitHub repository JotJunior/cstk (24 stars, last pushed 3d ago), licensed MIT. It adds 17 tokens to every session and 1,517 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.