schema-evolution-migrator

schema-evolution-migrator is a skill for Claude Code, Codex from AnthonyAlcaraz/agentic-graph-rag-skills. It costs 151 tokens per session (2,296 once invoked), scanned A, original, MIT.

A set of procedures for updating a production knowledge graph as its data model changes. A knowledge graph stores connected things and relationships; Neo4j is a database commonly used for this.

In plain words
What is it for?
Use it to plan graph schema migrations, manage node and relationship lifecycles, invalidate outdated facts over time, and merge incoming data incrementally.
Why use it?
It helps prevent schema drift, stale data, slow queries, and broken deployments when graph structures and stored facts change over time. It keeps old application versions compatible during updates and preserves historical relationships instead of deleting them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan graph schema migrations, manage node and relationship lifecycles, invalidate outdated facts over time, and merge incoming data incrementally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator
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.

Any agent
npx skills add AnthonyAlcaraz/agentic-graph-rag-skills --skill schema-evolution-migrator
Clone the repo
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills

Made for: Claude Code, Codex.

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 schema-evolution-migrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator/github.svg)](https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator)
Your own site
<a href="https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator"><img src="https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator/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 schema-evolution-migrator

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator"><img src="https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/schema-evolution-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,296 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.
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.00151 $0.02296
Opus 5.5 $0.00060 $0.00918
Sonnet 5.5 $0.00030 $0.00459
Haiku 4.5 $0.00015 $0.00230

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

Security

Grade A, and why

schema-evolution-migrator 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.

The scan reads SKILL.md. This mod also ships 2 executable files (cli.py, lib.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.

skills/optimization/schema-evolution-migrator/SKILL.md · 175 lines

How it starts

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

Schema Evolution Migrator

Overview

A knowledge graph in production is not a static artifact. New data arrives continuously, schemas evolve, and nodes accumulate that no longer represent current reality. Without deliberate lifecycle management the graph grows stale, queries slow down, and the agent's reasoning degrades — not because the agent changed but because the knowledge it depends on did.

Graph databases have no ALTER TABLE, and the schema-optional nature of property graphs means schema drift happens silently. This skill packages the four operational concerns from the chapter:

  • Schema evolution — Neo4j-Migrations (Flyway/Liquibase for graphs); the migration history is itself a subgraph. Every change must be N-1 compatible: the previous application version keeps working until it is replaced (Example 8-7).
  • Lifecycle — append-only with TTL (CrowdStrike's Threat Graph never updates, only adds: 40+ PB, trillions of events/day, 70M req/s) and temporal invalidation (Graphiti/Zep bitemporal: invalidate the old edge, do not delete it, so historical queries still traverse it — Example 8-8).
  • Incremental updates — LightRAG-style MERGE ON CREATE / ON MATCH; update cost is proportional to the new data, not the whole graph, so a deployment event is reflected within seconds instead of a nightly rebuild (Example 8-9).
  • Deployment — a staged rollout coordinating three independently versioned components (schema, data, agent code) with depends_on ordering and a canary gate (Example 8-10).

When to Use

  • A production graph needs a schema change (new relationship type, new constraint) deployed alongside agent-code changes.
  • A dependency changed and you must record the new fact without losing the old one for causal reasoning.
  • Snapshot nodes are accumulating and you need a retention policy.
  • You are coordinating a release across graph schema, data backfill, and agent code and want a manifest that enforces the ordering.

Read the full file on GitHub · 175 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 175 lines · 151 tokens per session scan A 641af68f3f62

Subscribe to this mod's changes

schema-evolution-migrator is a skill published in the GitHub repository AnthonyAlcaraz/agentic-graph-rag-skills (28 stars, last pushed 3mo ago), licensed MIT. It adds 151 tokens to every session and 2,296 once invoked, about $0.0006 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-31.

Related

schema-evolution-migrator compared with skills from other repositories

schema-evolution-migrator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
schema-evolution-migratorAnthonyAlcaraz/agentic-graph-rag-skillsSkill283mo agoMITA151Claude Code, Codex
hugegraph-regression-testerapache/hugegraph-aiSkill145yesterdayApache-2.0A54Codex
hugegraph-data-importerapache/hugegraph-aiSkill145yesterdayApache-2.0A62Codex
hugegraph-operatorapache/hugegraph-aiSkill145yesterdayApache-2.0A63Codex
hugegraph-schema-designerapache/hugegraph-aiSkill145yesterdayApache-2.0A51Codex
hugegraph-query-analystapache/hugegraph-aiSkill145yesterdayApache-2.0A49Codex
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code