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.
npx skills add OKHP3/skillz --skill data-migration-best-practicesgit clone --depth 1 https://github.com/OKHP3/skillzWrote 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.
[](https://agentmods.dev/skills/okhp3/skillz/data-migration-best-practices)<a href="https://agentmods.dev/skills/okhp3/skillz/data-migration-best-practices"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/data-migration-best-practices/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.
<a href="https://agentmods.dev/skills/okhp3/skillz/data-migration-best-practices"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/data-migration-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.00950 |
| Opus 5.5 | $0.00030 | $0.00380 |
| Sonnet 5.5 | $0.00015 | $0.00190 |
| Haiku 4.5 | $0.00007 | $0.00095 |
Grade A, and why
data-migration-best-practices 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.
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.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Data Migration Best Practices
Treat migration as a temporary production system with explicit correctness, capacity, observability, and retirement criteria. It changes persisted behavior and is not automatically a refactoring.
Workflow
- Define source authority, target contract, transformations, invariants, data classification, and tolerated downtime/staleness.
- Choose a stable snapshot boundary or high-water mark and start durable capture of live changes before they can escape the snapshot.
- Expand the target schema compatibly; keep old and new application versions interoperable during rolling deployment.
- Backfill in bounded, idempotent, resumable batches with deterministic progress and explicit bad-row handling.
- Apply captured deltas without allowing stale snapshot data to overwrite newer writes.
- Reconcile availability, counts, identities, values, and domain invariants against a declared watermark.
- Cut over only when freshness and discrepancy gates pass; monitor and retain a reversal or forward-repair path.
- Contract old fields, code paths, capture infrastructure, and temporary permissions only after an observation window.
Decision Rules
- Prefer direct transactional SQL for small same-database transformations that fit the lock and deployment budget.
- Prefer an offline bulk importer for heterogeneous stores or transformations that need application code.
- Prefer lazy/on-read migration only when incomplete migration is acceptable indefinitely and concurrent misses use atomic upsert.
- Combine a bounded snapshot with Outbox, CDC, or event capture when writes must continue during a long migration.
- Use expand-and-contract for online schema changes: add compatible shape, deploy tolerant readers/writers, populate, validate, switch authority, then remove legacy shape.
- Use forward repair rather than destructive rollback once new writes cannot be losslessly represented by the old model.
Safety Invariants
- Preserve a stable source identity and transformation version for every target row.
- Make reruns harmless through upserts, compare-and-set/version guards, or processed-range records.
- Advance checkpoints only after the batch transaction commits; never use offset pagination over a changing source.
- Order by an immutable key and use keyset/range batches. Multiple workers need disjoint ranges or durable claims.
- Bound reads, writes, concurrency, retries, memory, and lock time against live-traffic capacity.
- Quarantine malformed or constraint-violating rows with redacted diagnostics; never convert infrastructure failure into valid empty data.
- Parameterize queries and keep credentials out of commands, source files, logs, and process arguments.
- Record who approved cutover, the exact watermark, artifacts, checksums, code/schema versions, and repair decisions.
What ships with it
5 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.
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.
- 2mo ago Changed · +8 lines e4403a992e0f
- 2mo ago First seen · 63 lines · 74 tokens per session scan A 3df0130041c7
data-migration-best-practices is a skill published in the GitHub repository OKHP3/skillz (4 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 950 once invoked, about $0.0003 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-09-03.
data-migration-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| data-migration-best-practicesOKHP3/skillz | Skill | 4 | 3d ago | MIT | A | 74 | Claude Code, Codex |
| architecturefabiandistler/agents | Skill | 2 | yesterday | none | A | 62 | Claude Code |
| web-backend-builder0x-Professor/Agent-Skills-Hub | Skill | 12 | 9mo ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| web-database-validator0x-Professor/Agent-Skills-Hub | Skill | 12 | 9mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |
| ecto-patternsoliver-kriska/claude-elixir-phoenix | Skill | 579 | today | MIT | A | 51 | Claude Code |
| 312-frameworks-spring-data-jdbcjabrena/plinth | Skill | 470 | today | Apache-2.0 | A | 110 | Claude Code, Codex |
| couple-photo-orchestratoranbeime/skill | Skill | 10k | yesterday | none | A | 45 | Claude Code, Codex |