← 返回 Skills 市场
clawkk

Data Move

作者 clawkk · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
115
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install data-move
功能描述
Deep data migration workflow—scope, mapping, validation, batching and ordering, dual-write and cutover, rollback, and reconciliation. Use when moving tenants...
使用说明 (SKILL.md)

Data Move

Data migration fails in silent corruption, ordering bugs, and unclear cutover. Treat it as ETL with production risk: explicit mapping, checkpoints, and reconciliation against sources of truth.

When to Offer This Workflow

Trigger conditions:

  • Moving data between databases, regions, or tenants
  • Large backfills after schema changes
  • Zero or minimal downtime requirements

Initial offer:

Use seven stages: (1) scope & invariants, (2) source/target mapping, (3) batching & idempotency, (4) validation rules, (5) execution strategy (big bang vs phased), (6) cutover & rollback, (7) reconciliation & sign-off). Confirm volume, downtime budget, and compliance (PII, audit).


Stage 1: Scope & Invariants

Goal: Define what moves, what must never diverge, and ordering dependencies (foreign keys, references).

Questions

  1. Cutover moment: read-only window vs dual-write?
  2. Immutable identifiers: preserve primary keys or remap with mapping tables?
  3. Deletes: soft-delete vs hard-delete semantics in target

Exit condition: Written invariants (e.g., “every migrated row has legacy_id for traceability”).


Stage 2: Source/Target Mapping

Goal: Field-level mapping document; transforms (timezone, encoding, rounding); defaults for nulls.

Practices

  • Surrogate keys generated deterministically or via mapping table
  • Document one-way vs bi-directional sync if any

Stage 3: Batching & Idempotency

Goal: Jobs restartable; same input yields same output (idempotent writes or upsert keys).

Practices

  • Checkpoint by primary key or updated_at watermark
  • Throttle to protect source and target DB

Stage 4: Validation Rules

Goal: Row counts, checksums, sample joins, business invariants (sums, balances).

Practices

  • Shadow compare: run parallel queries on old vs new for critical aggregates

Exit condition: Validation checklist signed before cutover.


Stage 5: Execution Strategy

Goal: Phased by tenant/region vs single window—risk vs complexity trade-off.

Patterns

  • Dual-write then backfill then flip reads
  • Blue/green tables with rename swap

Stage 6: Cutover & Rollback

Goal: Runbook: who flips DNS/config, order of steps, rollback triggers (error rate, failed checks).

Practices

  • Feature flags for read path to new store
  • Keep rollback script tested in staging

Stage 7: Reconciliation & Sign-off

Goal: Post-cutover 24–72h monitoring; reconciliation job scheduled; support playbook for edge cases.


Final Review Checklist

  • Invariants and mapping documented
  • Idempotent batches with checkpoints
  • Validation and shadow checks passed
  • Cutover/rollback runbook tested
  • Reconciliation after go-live

Tips for Effective Guidance

  • Never assume “batch job finished” = correct—prove with checks.
  • Clock skew and timezone bugs are classic—call them out in transforms.
  • Pair with db-migrate for schema timing vs data movement.

Handling Deviations

  • Small one-off SQL: still document mapping and run counts before/after.
安全使用建议
This SKILL.md is a sensible checklist and runbook for migrations, but it is guidance only — it does not execute anything or declare credentials. Before using it: (1) ensure any agent, human, or automation you run against production has least-privilege DB and infra credentials and that those credentials are stored and audited securely; (2) practice the full runbook (including rollback) in staging with realistic volumes; (3) require human sign-off before any cutover or DNS/feature-flag flips; (4) schedule reconciliation and monitoring as described and verify checksum/aggregate checks rather than trusting batch completion; and (5) if you plan to pair this guidance with automation (db-migrate or custom scripts), vet those tools' install sources and code separately. If you want the agent to perform actions automatically, treat granting DB/infra access as a high-risk decision and restrict autonomous invocation until you’ve tested controls.
功能分析
Type: OpenClaw Skill Name: data-move Version: 1.0.0 The 'data-move' skill bundle is a procedural workflow guide for data migration tasks. It contains no executable code and provides standard industry best practices for data integrity, validation, and cutover strategies within SKILL.md. There are no indicators of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
The name/description (deep data migration) matches the SKILL.md content: stages, invariants, batching, cutover, rollback, and reconciliation are all appropriate for migrations.
Instruction Scope
The instructions are high-level runbook guidance and stay on-topic; however they explicitly assume performing privileged operations (DB writes, DNS/config flips, feature-flag toggles). The skill does not instruct the agent to read unrelated system files or secrets, but following the workflow in practice requires access to production infrastructure and human coordination.
Install Mechanism
Instruction-only skill with no install steps and no code files — lowest risk from installation. It mentions pairing with external tools (e.g., db-migrate) but does not pull or install them itself.
Credentials
No environment variables or credentials are declared, which is consistent for an instruction-only guide. Practically, executing the workflow requires database and infrastructure credentials; those are not requested or managed by the skill itself and must be provided separately with least privilege.
Persistence & Privilege
The skill is not always-on and is user-invocable. It does not request persistent presence or modify other skills/configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install data-move
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /data-move 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the skill for deep data migration workflows. - Introduces a seven-stage process: scope, mapping, batching, validation, execution strategy, cutover/rollback, and reconciliation. - Includes guidelines for invariants, field mapping, idempotent batching, validation rules, and execution patterns. - Provides a comprehensive checklist and practical tips to ensure data correctness and minimize downtime. - Designed for complex migrations, large backfills, and high-trust data moves with minimal operational risk.
元数据
Slug data-move
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Data Move 是什么?

Deep data migration workflow—scope, mapping, validation, batching and ordering, dual-write and cutover, rollback, and reconciliation. Use when moving tenants... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。

如何安装 Data Move?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install data-move」即可一键安装,无需额外配置。

Data Move 是免费的吗?

是的,Data Move 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Data Move 支持哪些平台?

Data Move 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Data Move?

由 clawkk(@clawkk)开发并维护,当前版本 v1.0.0。

💬 留言讨论