Agent skill

Database Migration

by exelearning in exelearning/exelearning

Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades.

AGPL-3.0Auto-check passedDatabases

Install Database Migration

skills CLI
$ npx skills add exelearning/exelearning --skill database-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install exelearning/exelearning database-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/exelearning/exelearning.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/database-migration .claude/skills/database-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-migration
GitHub stars
145
Token cost
~532 tokens
SKILL.md length
243 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades.

  • Works in 5 steps: Add the next unused ordered migration… → Kysely 0.29 imports Migrator, Migration… → Implement up and the corresponding down… → …
  • Tasks that involve Database migrations
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Database Migration is an agent skill from exelearning/exelearning. Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database migrations. The repository describes itself as: eXeLearning is an AGPL-licensed free/libre tool to create and publish open educational resources. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Database migrations

Example prompts

  • “/database-migration”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Add the next unused ordered migration and register it in the static registry in index.ts.
  2. Kysely 0.29 imports Migrator, Migration and MigrationProvider from kysely/migration, not the
  3. Implement up and the corresponding down contract, explicitly accounting for irrecoverable data
  4. Use existing auto-increment, binary type, column/table existence and returning helpers. The schema
  5. Update src/db/types.ts and affected queries when the schema contract changes. Preserve legacy Symfony

What it can do on your machine

Read from SKILL.md and the folder at commit 319b5d2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Migration loads about 532 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 243 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~532

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from exelearning/exelearning at commit 319b5d2, republished under its AGPL-3.0 licence (© exelearning). 243 words, ~532 tokens.

Download SKILL.mdSave it as .claude/skills/database-migration/SKILL.md (or your agent's skills folder).
name
database-migration
description
Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades.

Database migrations

Start with src/db/migrations/index.ts, the latest numbered migration, src/db/helpers.ts, src/db/dialect.ts, src/db/types.ts, and affected queries/tests.

  1. Add the next unused ordered migration and register it in the static registry in index.ts. Adding a file alone does not register it. Preserve previously applied names/order; do not renumber history.
  2. Kysely 0.29 imports Migrator, Migration and MigrationProvider from kysely/migration, not the package root. Keep the static provider for bundled/standalone builds; do not replace it with filesystem scanning.
  3. Implement up and the corresponding down contract, explicitly accounting for irrecoverable data changes rather than promising lossless rollback. Historical migrations must remain independent of evolving application table types; use the established migration typing/helpers.
  4. Use existing auto-increment, binary type, column/table existence and returning helpers. The schema builder does not erase SQLite/PostgreSQL/MySQL differences. Check FK rebuild and nullable-ID patterns in migrations 003–005 before modifying related columns.
  5. Update src/db/types.ts and affected queries when the schema contract changes. Preserve legacy Symfony detection and migration-tracking initialization, as well as a fresh install and ordinary upgrade.

Test up, down, preservation of existing data, repeat/partial upgrade behavior where relevant, and registry ordering. Use src/db/migrations/kysely-subpath.spec.ts for import compatibility. Use isolated in-memory SQLite where sufficient; disposable file-backed DBs are appropriate for worker, locking or persistence behavior. They are not forbidden. Test dialect-sensitive changes against the actual supported engines with the existing DB matrix; do not claim three-engine coverage from mocks alone. Run verify-change final code gates and document a durable schema decision when required.

© exelearning, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/database-migration of exelearning/exelearning.

Open the folder on GitHubat commit 319b5d2

Compare with similar skills

Database Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Migration this skillexelearning/exelearning145—~532Automated safety check: PassAGPL-3.0
Evolving The Data ModelTriliumNext/Trilium38k—~2.1kAutomated safety check: PassAGPL-3.0
Creating Database MigrationsNangoHQ/nango13k—~449Automated safety check: PassCustom licence
Openwrt Package UpdateNethServer/nethsecurity191—~841Automated safety check: PassCustom licence
Free Willsyahiidkamil/Software-Engineer-AI-Agent-Atlas397—~3.4kAutomated safety check: PassNone
Ecto Migrationsoperately/operately576—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Evolving The Data Model

    TriliumNext/Trilium

    A skill your agent uses when adding a DB migration or a new column/field to a Becca entity in Trilium ("add a migration", "new column on notes/attributes", "ALTER TABLE", "add a field to…

    38k GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • A skill your agent uses when adding or editing Nango database migrations - covers migration directory selection, timestamped .cjs naming, matching recent migration style, down migration decisions…

    13k GitHub stars~449 tokensUpdated today
    DatabasesAuto-check passed
  • Openwrt Package Update

    NethServer/nethsecurity

    A skill your agent uses when updating any forked OpenWrt package in a NethSecurity workspace from the upstream openwrt/packages feed.

    191 GitHub stars~841 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Free Will

    syahiidkamil/Software-Engineer-AI-Agent-Atlas

    Deliberate-choice procedure for a medium-to-high-stakes engineering fork — when the first plausible solution (the instinct, the default next-token pull) would be costly to get wrong.

    397 GitHub stars~3.4k tokensUpdated 3 mo ago
    DatabasesAuto-check passed
  • Ecto Migrations

    operately/operately

    Rules for Operately schema migrations (app/priv/repo/migrations/) and data migrations (app/lib/operately/data/change.ex).

    576 GitHub stars~1.2k tokensUpdated today
    DatabasesAuto-check passed
  • DB Migrate

    simstudioai/sim

    Author or review a Drizzle DB migration for zero-downtime safety — expand/contract phasing, backward-compatibility with the deployed app version, and writing the -- migration-safe acknowledgment the…

    30k GitHub stars~2k tokensUpdated today
    DatabasesAuto-check passed

More from exelearning/exelearning

All 17 skills in this repo
  • E2E Test

    exelearning/exelearning

    Write or debug repository Playwright specs, including isolated projects, preview frames and multi-user fixtures.

    145 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Frontend Module

    exelearning/exelearning

    Change vanilla JavaScript UI modules in public/app/, including DOM state, events and localization.

    145 GitHub stars~867 tokensUpdated today
    Auto-check passed
  • I18n

    exelearning/exelearning

    Add or change source-level localized strings using (), c() or the Nunjucks trans filter; not catalog extraction.

    145 GitHub stars~812 tokensUpdated today
    Auto-check passed
  • Idevice

    exelearning/exelearning

    Create or modify an eXeLearning iDevice, including edition/export data, legacy compatibility, assets, TypeScript bundles and teardown.

    145 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Verify Change

    exelearning/exelearning

    Choose and run the appropriate eXeLearning checks for a diff, including the final code gates or guidance-only validation.

    145 GitHub stars~676 tokensUpdated today
    Auto-check passed
  • Websocket Yjs

    exelearning/exelearning

    Change eXeLearning shared document mutations, WebSocket rooms, snapshots, reconnects or concurrent editing behavior.

    145 GitHub stars~759 tokensUpdated today
    Auto-check passed

Categories

Questions about Database Migration

What does Database Migration do?

Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades. Database Migration is an agent skill from exelearning/exelearning. Add or change eXeLearning Kysely schema migrations, the migration registry or legacy database upgrades.

When should I use Database Migration?

Database Migration fits situations like: tasks that involve Database migrations.

How do I install Database Migration in Claude Code?

Run `npx skills add exelearning/exelearning --skill database-migration -a claude-code`. Or copy the skill folder (.agents/skills/database-migration in exelearning/exelearning) into .claude/skills/database-migration in your project. Claude Code loads it when a task matches its description.

How do I install Database Migration in Codex?

Run `npx skills add exelearning/exelearning --skill database-migration -a codex`. Or copy the skill folder (.agents/skills/database-migration in exelearning/exelearning) into .agents/skills/database-migration in your project. Codex loads it when a task matches its description.

Can I use Database Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add exelearning/exelearning --skill database-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-migration, .gemini/skills/database-migration, .github/skills/database-migration and .opencode/skills/database-migration in your project.

What does Database Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Database Migration is instructions for the agent only.

Does Database Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Database Migration use?

Database Migration is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Database Migration use?

About 532 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Database Migration?

Skills that share tags, products or a category with Database Migration: Evolving The Data Model (TriliumNext/Trilium, 38k stars), Creating Database Migrations (NangoHQ/nango, 13k stars), Openwrt Package Update (NethServer/nethsecurity, 191 stars) and Free Will (syahiidkamil/Software-Engineer-AI-Agent-Atlas, 397 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Migration?

exelearning (a GitHub organization) maintains it in exelearning/exelearning, which has 145 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: exelearning/exelearning on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.