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…
Create SQLx migration files with sqlx migrate add <name. An agent skill from macro-inc/macro.
$ npx skills add macro-inc/macro --skill sqlx-migration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install macro-inc/macro sqlx-migration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/sqlx-migration .claude/skills/sqlx-migration && rm -rf skills-srcUse ~/.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/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .claude/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add macro-inc/macro --skill sqlx-migration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install macro-inc/macro sqlx-migration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.pi/skills/sqlx-migration .agents/skills/sqlx-migration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .agents/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macro-inc/macro --skill sqlx-migration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install macro-inc/macro sqlx-migration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.pi/skills/sqlx-migration .cursor/skills/sqlx-migration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .cursor/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/macro-inc/macro.git --path .pi/skills/sqlx-migration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add macro-inc/macro --skill sqlx-migration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install macro-inc/macro sqlx-migration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.pi/skills/sqlx-migration .gemini/skills/sqlx-migration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .gemini/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install macro-inc/macro sqlx-migrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add macro-inc/macro --skill sqlx-migration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.pi/skills/sqlx-migration .github/skills/sqlx-migration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .github/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macro-inc/macro --skill sqlx-migration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install macro-inc/macro sqlx-migration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.pi/skills/sqlx-migration .opencode/skills/sqlx-migration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sqlx-migration" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-migration into .opencode/skills/sqlx-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-migration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sqlx-migrationCreate SQLx migration files with sqlx migrate add <name. An agent skill from macro-inc/macro.
Sqlx Migration is an agent skill from macro-inc/macro. Create SQLx migration files with sqlx migrate add <name. Use when asked to add, create, or generate a sqlx/sqlx-cli database migration.
Its SKILL.md is about 330 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: Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory. The licence is AGPL-3.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 49418e7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadEditGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
cargojustFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sqlx Migration loads about 334 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 151 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Edit, Glob, GrepAutomated 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.
The full file from macro-inc/macro at commit 49418e7, republished under its AGPL-3.0 licence (© macro-inc). 151 words, ~334 tokens.
.claude/skills/sqlx-migration/SKILL.md (or your agent's skills folder).Use the SQLx CLI to create migration files instead of manually creating timestamped files.
Identify the project or crate root where SQLx migrations should live.
migrations/ directory.Convert the requested migration description to a short snake_case name, for example create_users_table.
Run just setup_test_envs from the project root
Run the SQLx CLI from crates/macro_db_client folder:
cargo sqlx migrate add name_of_migrationReplace name_of_migration with the actual snake_case migration name.
Do not manually add timestamps or hand-create migration filenames; sqlx migrate add generates the correct timestamped file.
After the command succeeds, read the generated migration file and add the requested SQL changes there.
If sqlx is not installed or not on PATH, stop and tell the user to install sqlx-cli rather than manually creating the migration file.
© macro-inc, 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
Just SKILL.md in .pi/skills/sqlx-migration of macro-inc/macro.
Open the folder on GitHubat commit 49418e7
Sqlx 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sqlx Migration this skillmacro-inc/macro | 4.6k | — | ~334 | Automated safety check: Notes | AGPL-3.0 | |
| Evolving The Data ModelTriliumNext/Trilium | 38k | — | ~2.1k | Automated safety check: Pass | AGPL-3.0 | |
| Creating Database MigrationsNangoHQ/nango | 13k | — | ~449 | Automated safety check: Pass | Custom licence | |
| Openwrt Package UpdateNethServer/nethsecurity | 191 | — | ~841 | Automated safety check: Pass | Custom licence | |
| Free Willsyahiidkamil/Software-Engineer-AI-Agent-Atlas | 401 | — | ~3.4k | Automated safety check: Pass | None | |
| Ecto Migrationsoperately/operately | 577 | — | ~1.2k | Automated safety check: Pass | Custom licence |
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…
NangoHQ/nango
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…
NethServer/nethsecurity
A skill your agent uses when updating any forked OpenWrt package in a NethSecurity workspace from the upstream openwrt/packages feed.
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.
operately/operately
Rules for Operately schema migrations (app/priv/repo/migrations/) and data migrations (app/lib/operately/data/change.ex).
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…
macro-inc/macro
Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.
macro-inc/macro
Add or change an in-app feature tour (a view's guided flyover) in the web app.
macro-inc/macro
Define a frontend feature flag with defineFlag and wire its readers.
macro-inc/macro
Run the Macro app on Cursor Cloud and pick up edits. An agent skill from macro-inc/macro.
macro-inc/macro
Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped.
macro-inc/macro
Enforce hexagonal architecture in the Rust backend. An agent skill from macro-inc/macro.
Categories
Create SQLx migration files with sqlx migrate add <name. An agent skill from macro-inc/macro. Sqlx Migration is an agent skill from macro-inc/macro. Create SQLx migration files with sqlx migrate add <name.
Sqlx Migration fits situations like: generate a sqlx/sqlx-cli database migration; tasks that involve Database migrations.
Run `npx skills add macro-inc/macro --skill sqlx-migration -a claude-code`. Or copy the skill folder (.pi/skills/sqlx-migration in macro-inc/macro) into .claude/skills/sqlx-migration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add macro-inc/macro --skill sqlx-migration -a codex`. Or copy the skill folder (.pi/skills/sqlx-migration in macro-inc/macro) into .agents/skills/sqlx-migration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add macro-inc/macro --skill sqlx-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/sqlx-migration, .gemini/skills/sqlx-migration, .github/skills/sqlx-migration and .opencode/skills/sqlx-migration in your project.
Going by SKILL.md and its folder, Sqlx Migration needs the command-line tools its instructions call (cargo and just). Its frontmatter pre-approves these tools: Bash, Read, Edit, Glob, Grep.
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.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Sqlx 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.
About 334 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sqlx 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, 401 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
macro-inc (a GitHub organization) maintains it in macro-inc/macro, which has 4,590 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 8, 2026.
Source: macro-inc/macro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.