orbital-express: Skill for Claude Code

.claude/skills/add-migration/SKILL.md

add-migration is a skill for Claude Code from Hackbyrd/orbital-express. It costs 65 tokens per session (1,192 once invoked), scanned A, original, MIT.

A guide for creating database migrations in a Sequelize and PostgreSQL project. A migration is a versioned change that updates the real database, such as adding a table, column, index, or constraint.

In plain words
What is it for?
Planning, generating, naming, applying, and rolling back schema changes while updating related models and test fixtures.
Why use it?
It prevents the application’s models and the real development or production database from getting out of sync.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Hackbyrd/orbital-express's own configuration. It tells Claude Code how to work on orbital-express itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything orbital-express configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./node_modules/.bin/sequelize migration:create --name create-<Model>-model.

Reuse

Borrowing it

Nothing to install: this file belongs to Hackbyrd/orbital-express. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Hackbyrd/orbital-express/main/.claude/skills/add-migration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Hackbyrd/orbital-express

Made for: Claude Code.

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 add-migration

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hackbyrd/orbital-express/add-migration"><img src="https://agentmods.dev/badge/skills/hackbyrd/orbital-express/add-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,192 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.00065 $0.01192
Opus 5.5 $0.00026 $0.00477
Sonnet 5.5 $0.00013 $0.00238
Haiku 4.5 $0.00006 $0.00119

Measured 2mo ago against content hash f287cfe0ab48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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.

.claude/skills/add-migration/SKILL.md · 44 lines

How it starts

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

Write a migration

Migrations are the source of truth for the real database (dev/prod). The test DB is built from the models via sync, so when you add a column also add it to the model. Read README "Migrations" + "Database Conventions".

Before generating or editing, plan the schema, constraints, indexes, backfill, rollback, model changes, and fixture impact and get sign-off. For feature work, confirm the complete feature folder with yarn repair <Feature> --dry-run, then yarn repair <Feature>; repair never overwrites.

Filename convention (critical — it documents the change)

  • New table: <timestamp>-create-<Model>-model.js (Model singular PascalCase)
  • Alter table: <timestamp>-add-cols-<colA>-and-<colB>-to-<TablePlural>-tbl.js
  • Add index: <timestamp>-add-index-<colA>_<colB>-to-<TablePlural>-tbl.js

Generate the file, then fill it. Two documented ways (both produce a timestamped file you then rename to the convention above):

  • yarn model — for a NEW table; yarn migration — for ALTERing a table. Both create a generically-named file in migrations/ — rename it to the convention.
  • Or call the CLI directly with the right name (no rename needed):
    ./node_modules/.bin/sequelize migration:create --name create-<Model>-model
    ./node_modules/.bin/sequelize migration:create --name add-cols-<col>-to-<TablePlural>-tbl
    

Rules

  • Wrap up and down in queryInterface.sequelize.transaction(async t => { ... }, { transaction: t }) on every call.
  • Never delete columns/tables or rename in place (rollback safety). To rename: add new column, copy data, drop the old one much later. We don't auto-destroy data.
  • IDs: DataTypes.UUID with no DB-level default (the model's defaultValue: () => uuidv7() always provides the ID before insert). FK column types must match the referenced PK type.
  • Named indexes, {Table}_{col}_{idx|unique}, matching the model's indexes array exactly. {Table} is the exact explicit static PascalCase plural tableName, including irregular plurals—not naive <Feature>s. addIndex(table, [cols], { name, unique, transaction: t }).
  • Foreign keys: references: { model, key }, explicit onDelete/onUpdate. For self-referencing or composite FKs use addConstraint(table, { fields, type:'foreign key', name, references:{ table, field }, onDelete, onUpdate, transaction: t }).
  • Flattened ownership: when data is nested, carry every ancestor's id onto the descendant — not just the immediate parent, but the parent's parent, on up to the top-level owner (e.g. userId). It looks redundant on purpose: it flattens the hierarchy so you can query "all X for any ancestor" (and scope security to userId) as a single indexed where with no joins. The duplication can't drift because a composite FK enforces it (parent needs a UNIQUE (id, userId); child FKs (parentId, userId) → parent (id, userId), so Postgres rejects any mismatch). See README "Carry the Owner Foreign Key Down to Every Descendant".
  • You may (and are encouraged to) run data-backfill SQL in the migration after addColumn — e.g. populate a new NOT NULL column from an existing one so it's ready immediately, instead of a separate script.
  • Column order in createTable attrs: id → FKs → vendor IDs → custom → deletedAt/createdAt/updatedAt.
  • Timestamps: all times are UTC. createdAt/updatedAt/deletedAt are auto-managed by the model (timestamps: true) but must be defined explicitly in the migration attrs.
  • ENUMs: type name is ALL CAPS, no underscores/spaces/dashes (e.g. ORDERSTATUS); values are ALL_CAPS_WITH_UNDERSCORES (e.g. PENDING_REVIEW). Keep ENUM values in sync with the matching constants.js array.
  • Booleans is/has/can/does; FK cols <entity>Id; vendor IDs prefixed.
  • Add-index migration filename: <timestamp>-add-index-<colA>_<colB>-to-<TablePlural>-tbl.js.

Read the full file on GitHub · 44 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. 2mo ago First seen · 44 lines · 65 tokens per session scan A f287cfe0ab48

Subscribe to this mod's changes

add-migration is a skill published in the GitHub repository Hackbyrd/orbital-express (15 stars, last pushed 2mo ago), licensed MIT. It adds 65 tokens to every session and 1,192 once invoked, about $0.0003 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

alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.

google/skills · 72 tokens

postgresql-table-design

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

wshobson/agents · 37 tokens

db-repair

Auto-fix gbrain's Postgres access so the brain stays available. When any gbrain command or MCP tool result carries a GBRAINDBACCESS marker (or an operator reports the brain database is down), run the hardcoded gbrain db-repair ladder: diagnose, apply the safe tier, verify. The action is ALWAYS the hardcoded command …

garrytan/gbrain · 96 tokens

volcengine-rds-postgresql

A tool for operating PostgreSQL databases hosted by Volcano Engine's managed database service. PostgreSQL is a relational database used to store structured application data.

bytedance/agentkit-samples · 63 tokens

analyzing-insights-across-teams

Analyze PostHog insights, dashboards, or teams beyond the current project by querying the prod Postgres replicas synced into the dogfood data warehouse (US project 2, "PostHog App + Website"). Use when asked to analyze insights across all teams or projects, another team's insights, or fleet-wide insight/dashboard…

PostHog/posthog-foss · 115 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens