본문으로 건너뛰기
cccskills
무료GitHub에 공개

create-and-cleanup-migration

Manage ClawHub Convex production data migrations from implementation and testing through deployment, execution, verification, and temporary code removal, with dry runs and explicit user approval before destructive changes and cleanup.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Use for end-to-end ClawHub Convex production migrations, backfills, destructive cleanups, and one-off maintenance functions that must be created, validated, shipped, run, verified, then removed after completion.

설치 방법 보기

이럴 때 유용합니다

  • Backfilling fields in production data
  • Removing obsolete fields or table data
  • Repairing ownership and relationships
  • Removing temporary migration code after verification

포함된 파일(1)

  • SKILL.md6.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

Phase 1: Design The Migration

  1. Identify the intended data change and whether it is:
    • schema widen/migrate/narrow
    • field cleanup
    • table cleanup
    • ownership/relationship repair
    • recurring maintenance
  2. Choose the implementation:
    • Prefer @convex-dev/migrations for non-trivial production data.
    • Use a hand-rolled internal function only for a clearly small or special case, and document the exception.
  3. Define done criteria:
    • dry-run expected counts
    • apply expected counts
    • verification query/result proving no remaining targets
    • cleanup PR scope

Phase 2: Implement

  1. Add or update the Convex migration/maintenance code.
  2. Include argument validators for every Convex function.
  3. Include dry-run support.
  4. Include batching and resume/progress state.
  5. Include a confirmation token for destructive writes.
  6. Keep apply logic idempotent where practical.
  7. Add targeted tests for business logic and safety gates.
  8. Add real Convex runtime validation for Convex semantics such as pagination, validators, internal/public function boundaries, scheduler behavior, and action/query/mutation interactions.

Phase 3: Local Validation

Run the smallest meaningful set first, then broaden before PR handoff:

  • targeted unit tests for the migration logic
  • bunx convex codegen when Convex API/schema changed
  • bunx tsc --noEmit or the repo's Convex deploy typecheck path
  • bun run ci:static
  • bun run ci:unit for source/test changes unless explicitly waived
  • a real local Convex validation path, such as bunx convex dev --once, convex run, HTTP smoke, or local-auth Playwright, covering the changed Convex behavior

If local real Convex validation is blocked, record the blocker and make the PR or deployment plan explicitly compensate with an equivalent runtime proof.

Phase 4: PR, Review, Merge, Deploy

  1. Open a focused PR containing the migration implementation.
  2. Include:
    • summary
    • migration strategy
    • dry-run/apply safety gates
    • tests and runtime validation
    • cleanup plan
  3. Run the repo's review/CI workflow required by AGENTS.md.
  4. Address actionable review findings.
  5. Merge only after required checks are green or the user explicitly accepts a documented risk.
  6. Deploy the relevant production target from main.
  7. Wait for deployment success before running the production dry run.

Phase 5: Production Dry Run

  1. Run the production dry run with bounded batch settings.
  2. Resume until either:
    • isDone: true, or
    • a clearly documented safety cap is reached.
  3. Present results to the user before apply:
    • deployment name
    • command shape
    • dryRun
    • isDone
    • done/progress fields
    • scanned/matched/patched/deleted stats
    • sample IDs
    • resume cursors if incomplete
    • known user-visible or operational implications
  4. Stop and wait for explicit user confirmation before applying.

Phase 6: Production Apply

  1. Run only after explicit user confirmation of the dry-run results.
  2. Use the destructive confirmation token.
  3. Resume in bounded batches until complete or until a documented safety cap.
  4. Present apply results:
    • patched/deleted counts
    • skipped/missing counts if tracked
    • final cursors/progress
    • any errors or partial completion
  5. Run verification:
    • dry run or status command should show zero remaining targets, or
    • explain why remaining targets are expected.
  6. Stop and wait for explicit user confirmation before cleanup-code removal.

Phase 7: Cleanup PR

  1. Remove temporary migration functions, tests, docs, scripts, and generated API entries that are no longer needed.
  2. Keep durable specs/docs only if they explain lasting behavior or invariants.
  3. Run targeted validation plus the repo-required gates for the touched surface.
  4. Open a cleanup PR with:
    • apply results
    • verification proof
    • explanation of removed temporary code
  5. Merge after checks/review.
  6. Deploy the cleanup PR if removing Convex functions or schema/code that affects production.

Final Handoff

Report:

  • implementation PR URL and merge SHA
  • production deploy run URL and deployed SHA
  • dry-run result
  • apply result
  • verification result
  • cleanup PR URL, merge SHA, and deploy run URL
  • any remaining follow-up tasks or intentional retained migration code

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review code using shared OpenClaw instructions and a Python helper, while also following the target repository’s review requirements. This skill points to a common installation that supplies the actual review procedure.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing code with shared OpenClaw instructions
  • Applying repository-specific review requirements
  • Keeping shared review instructions up to date
openclaw/clawhub9.5천2026년 10월 19일 업데이트

Create and manage Axiom alert rules and notification destinations through its API. Connect alerts to email, Slack, or webhooks, check monitor history, and adjust thresholds and evaluation schedules to address excessive or missing alerts.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Set up error alerts and notification destinations
  • Tune monitors that send too many alerts
  • Investigate monitors that never trigger
openclaw/clawhub9.5천2026년 10월 19일 업데이트

axiom-sre

무료

Investigate production incidents and bugs using logs, metrics, and code evidence. The skill guides hypothesis testing, root cause analysis, fix validation, and reusable investigation notes, with access to configured observability tools such as Axiom.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Investigate production outages and rising error rates
  • Trace causes using logs, metrics, and code
  • Reproduce bugs and validate minimal fixes
openclaw/clawhub9.5천2026년 10월 19일 업데이트

Design and build Axiom dashboards from logs or metrics, the numerical measurements of system behavior. Create charts, filters, and layouts for monitoring and reporting, or migrate existing Splunk and Grafana panels while validating queries against available data.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build a service health monitoring dashboard
  • Create interactive filters for investigating logs
  • Migrate dashboards from Splunk or Grafana
openclaw/clawhub9.5천2026년 10월 19일 업데이트

Drafts, previews, sends, and records emails for existing ClawHub content rights cases. It supports publisher removal notices and requester updates, requires approval of the final draft, and preserves the exact correspondence in the case record.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Preparing a skill removal notice for a publisher
  • Sending a requester a progress update or closure note
  • Preserving sent correspondence in an existing rights case
openclaw/clawhub9.5천2026년 10월 19일 업데이트

Apply ClawHub-specific rules when developing with Convex, including deployment targeting, runtime checks, data migrations, search performance, and skill statistics. It also directs specialized work to the appropriate companion skills.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Changing Convex functions or schemas
  • Planning production data migrations
  • Reviewing search query performance
openclaw/clawhub9.5천2026년 10월 19일 업데이트

openclaw의 스킬 모두 보기

이 스킬의 문제 신고