create-and-cleanup-migration

create-and-cleanup-migration is a skill for Claude Code, Codex from openclaw/clawhub. It costs 50 tokens per session (1,531 once invoked), scanned A, original, MIT.

A workflow for completing Convex production migrations, which change data in a live Convex-backed app. It covers creating temporary migration code, testing it, running it, checking the results, and removing the temporary code.

In plain words
What is it for?
Use it for backfills, data cleanup, schema changes, table reshaping, or one-time maintenance functions in Convex. It supports the full path from implementation through production cleanup.
Why use it?
It reduces the risk of incomplete or unsafe data changes by requiring dry runs, progress handling, confirmation before destructive actions, and verification after execution.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it for backfills, data cleanup, schema changes, table reshaping, or one-time maintenance functions in Convex. It supports the full path from implementation through production cleanup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openclaw/clawhub/create-and-cleanup-migration
About the project

ClawHub is a public registry where OpenClaw users publish, version, search, and install text-based agent skills and OpenClaw packages. It provides web browsing, a CLI-oriented API, moderation, vector search, and artifact hosting for code plugins, bundle plugins, and experimental whole-agent packages. The catalogue skills and agents are entries that can be discovered or used through this registry.

openclaw/clawhub · 9,399 stars · on GitHub · clawhub.ai

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 openclaw/clawhub --skill create-and-cleanup-migration
Clone the repo
git clone --depth 1 https://github.com/openclaw/clawhub

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 create-and-cleanup-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/openclaw/clawhub/create-and-cleanup-migration.svg)](https://agentmods.dev/skills/openclaw/clawhub/create-and-cleanup-migration)
Your own site
<a href="https://agentmods.dev/skills/openclaw/clawhub/create-and-cleanup-migration"><img src="https://agentmods.dev/badge/skills/openclaw/clawhub/create-and-cleanup-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,531 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00050 $0.01531
Opus 5 $0.00025 $0.00766
Sonnet 5 $0.00010 $0.00306
Haiku 4.5 $0.00005 $0.00153

Measured 8d ago against content hash e3ccfa15780f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

create-and-cleanup-migration 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 8d 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.

.agents/skills/create-and-cleanup-migration/SKILL.md · 176 lines

How it starts

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

Create And Cleanup Migration

Drive a ClawHub Convex migration from implementation through production cleanup, with explicit operator gates before destructive execution and before removing the temporary migration code.

When To Use

  • A Convex production data migration, backfill, destructive cleanup, schema narrowing, table reshaping, or one-off maintenance function is needed.
  • Temporary Convex code must be created, deployed, run, verified, and then removed after it is no longer useful.
  • The user asks for the full lifecycle: implement migration, PR, deploy, dry run, apply, verify, cleanup PR, deploy cleanup.

Required Companion Guidance

  1. Start with convex-migration-helper.
  2. Read convex/_generated/ai/guidelines.md before editing Convex code.
  3. Default to @convex-dev/migrations for production data changes.
  4. If not using @convex-dev/migrations, write down why the component is unnecessary and provide equivalent:
    • dry-run support
    • cursor batching
    • resumable/progress behavior
    • destructive confirmation token
    • real Convex runtime validation
  5. Use clawhub-convex for repository-specific file placement and runtime targeting. Use clawhub-production-release for production deploy phases.

Safety Rules

  • Never run a destructive production apply step until after presenting dry-run results and receiving explicit user confirmation in the current thread.
  • Before implementing anything, classify the requested "migration" as one of: code deploy, existing Convex function run, operator import/export command, schema narrowing, data cleanup, or cleanup-code removal. Do not invent a new Convex migration function when the issue or PR specifies an operator command such as convex import --replace.
  • Never remove migration code until after presenting apply/verification results and receiving explicit user confirmation in the current thread.
  • Keep production commands pointed at the explicit deployment name when known; do not rely on generic --prod if this repo's guidance says to verify the actual deployment.
  • If the migration can affect visibility, moderation, ownership, billing, installability, or public API output, call that out before the apply gate.
  • Preserve resume cursors, run IDs, PR URLs, deploy URLs, and final stats in the handoff.

Read the full file on GitHub · 176 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. 8d ago First seen · 176 lines · 50 tokens per session scan A e3ccfa15780f

Subscribe to this mod's changes

create-and-cleanup-migration is a skill published in the GitHub repository openclaw/clawhub (9,399 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,531 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.