runic-migrate

A guide for Runic, a tool that tracks and applies schema changes to graph databases. A graph database stores connected entities and relationships, while a schema describes their allowed structure.

In plain words
What is it for?
Use it when working with Runic commands, migration files, configuration, automatic migration generation, branching, merging, or supported graph databases such as Neo4j and Memgraph.
Why use it?
It helps developers create, configure, test, upgrade, downgrade, and merge versioned database changes without managing them manually.

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/jenreh/appkit/runic-migrate
Any agent
npx skills add jenreh/appkit --skill runic-migrate
Clone the repo
git clone --depth 1 https://github.com/jenreh/appkit

Made for: Claude Code, Codex.

Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00099 $0.01739
Opus 5 $0.00049 $0.00870
Sonnet 5 $0.00020 $0.00348
Haiku 4.5 $0.00010 $0.00174

Measured 3d ago against content hash c765e368757f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

runic-migrate 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 3d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (examples/01_range_index.py, examples/02_unique_constraint.py, examples/03_irreversible_rename.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/runic-migrate/SKILL.md · 163 lines

How it starts

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

Runic — Graph Schema Migration Tool

Runic is an Alembic-style migration framework for graph databases (FalkorDB, Memgraph, Neo4j, ArcadeDB, Apache AGE). It tracks schema versions in a version node inside each graph and drives upgrades/downgrades via Python scripts stored in versions/.

  • FalkorDB version node label: (:_FalkorMigrateVersion)
  • All other backends: (:_RunicMigrateVersion)

For real migration file examples see examples/. For the full op.* API and SchemaManifest see references/op-api.md. For autogenerate, programmatic SDK, testing, and branching see references/advanced.md. For the initial migration workflow (dev bootstrap → baseline → production) see references/initial-migration.md. For annotated migration patterns (rename, relabel, seed, constraint guard) see references/migration-patterns.md.


Quick-start

pip install runic          # or: uv add runic

runic init                 # scaffold runic/ directory
# edit runic/env.py to point at your graph database instance
runic revision -m "create user index"
# edit the generated versions/*.py (see examples/ for patterns)
runic upgrade head

Directory layout (after runic init)

runic/
├── env.py            # executed on every CLI call; configures adapter + context
├── script.py.mako    # Mako template for new revision files
└── versions/
    ├── .gitkeep
    └── <rev_id>_<slug>.py

Default config: runic/env.py — override with --config path/to/env.py.

When you init to a non-default location, runic writes a .runic file in the working directory containing the path to env.py. Subsequent commands use this as a fallback when the default runic/env.py does not exist. Commit .runic.


env.py

import os
from runic.migrate import context
from runic.migrate.adapters import create_adapter

adapter = create_adapter(
    "falkordb",
    url=os.getenv("FALKORDB_URL", "falkor://localhost:6379"),
    graph_name=os.getenv("FALKORDB_GRAPH", "my_graph"),
)
context.configure(adapter)

Read the full file on GitHub · 163 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. 3d ago First seen · 163 lines · 99 tokens per session scan A c765e368757f

Subscribe to this mod's changes

runic-migrate is a skill published in the GitHub repository jenreh/appkit (4 stars, last pushed 7d ago), licensed MIT. It adds 99 tokens to every session and 1,739 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories