n8n:db-migrations

A guide for writing n8n database migrations. A database migration is a controlled code change that updates stored data structures, such as tables, columns, indexes, or relationships.

In plain words
What is it for?
Use it when changing files in the database migration package or adding a column, table, index, foreign key, or backfill.
Why use it?
It helps database changes be added in the expected TypeORM format and handles related data updates such as backfills.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/n8n-io/n8n/db-migrations
Any agent
npx skills add n8n-io/n8n --skill db-migrations
Clone the repo
git clone --depth 1 https://github.com/n8n-io/n8n

Made for: Claude Code, Codex.

Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00064 $0.10660
Opus 5 $0.00032 $0.05330
Sonnet 5 $0.00013 $0.02132
Haiku 4.5 $0.00006 $0.01066

Measured yesterday against content hash 550b571706d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

n8n:db-migrations 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 yesterday.

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.

.agents/skills/db-migrations/SKILL.md · 798 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. yesterday First seen · 798 lines · 64 tokens per session scan A 550b571706d3

Subscribe to this mod's changes

n8n:db-migrations is a skill published in the GitHub repository n8n-io/n8n (202,853 stars, last pushed 2d ago), with no licence file. It adds 64 tokens to every session and 10,660 once invoked, about $0.0003 per session on Opus 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

coss

Helps implement coss UI components correctly. Use when building UIs with coss primitives (buttons, dialogs, selects, forms, menus, tabs, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior. Covers imports, accessibility…

usekaneo/kaneo · 80 tokens

verify

Build/launch/drive recipe for verifying Kaneo changes end-to-end on a local dev instance.

usekaneo/kaneo · 21 tokens

notebooklm

This skill should be used when the user wants to query their Google NotebookLM notebooks for citation-backed, source-grounded answers, or manage notebooks, sources, and Studio content (audio, report, video, infographic, presentation, data table, flashcards, quiz, mind map). It drives the @roomi-fields/notebooklm-mcp…

roomi-fields/notebooklm-mcp · 118 tokens

agent-search

Use Agent Search MCP for free-first English and Chinese web search with compact evidence and minimal tool calls. Trigger for factual discovery, claim verification, Chinese web results, selected-page extraction, provider failures, freshness limits, or search token and spend controls. Choose freesearch…

lennney/agent-search-mcp · 74 tokens

openclaw

Use when setting up a multi-channel personal AI assistant gateway bridging chat platforms (Telegram, Discord, WhatsApp, WeChat) with LLM backends. OpenClaw: multi-channel AI assistant gateway for unified personal AI access.

znlgis/opengis-skills · 50 tokens

sofagent-fde

前线部署与知识工程专家。梳理企业业务流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。 不写应用代码——把企业业务规则、组织架构、系统边界转译成 sofagent 的数据层和约束层。.

KongFangXun/sofagent · 93 tokens