跳到正文
cccskills
免费在 GitHub 公开

d1-migration-rollout

Use when adding, reviewing, squashing, deploying, or rolling back Pharos D1 migrations or schema cleanup.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

D1 Migration Rollout

Trigger And Exclusions

Use for D1 schema/migration rollout, not routine database queries. Owner policies hold baseline, cleanup, and recovery detail.

Classify The Operation

Select additive SQL, reviewed row-mutating DML, baseline squash, destructive cleanup, deployment, or rollback before reading branch context; combine only the applicable branches.

Mandatory Core

  • worker/migrations/AGENTS.md; Additive migrations, Rollback and deployment, and Rollout Safety.
  • Inventory worker/migrations/MANIFEST.md for the next unused sequence and historical lineage. Never reuse/renumber a deployed filename. worker/migrations/0000_baseline.sql is fresh-database-only, never an upgrade for existing databases; worker/migrations/EXPECTED_SCHEMA.txt owns expected objects.
  • Migrations run before the new Worker is live. Preserve previous-Worker reads/writes, add -- rollout-safety: backward-compatible, and update the manifest. Destructive cleanup requires a separate coordinated rollout, not an annotation in the normal path.
  • Worker rollback does not reverse D1. Unexpected data/schema mutation alone warrants D1 restore, with a verified pre-window Time Travel point; never claim restoration from a Worker rollback.

Branch Reads And Actions

  • Additive SQL: inspect the affected schema and Shared Database Helpers; preserve old-Worker compatibility, including defaults for new required columns.
  • Reviewed DML: read Reviewed data migrations. The detector in scripts/ci/check-worker-migrations.ts wins. Add -- data-migration: reviewed and the manifest row with exact predicate, old-Worker compatibility, pre-deploy bookmark/rollback, and affected-row bounds. New pre-existing targets need representative seeded fixtures in that checker; empty fresh replay is insufficient.
  • Baseline squash only: read Baseline (0000), squash preconditions, procedure, and failure/recovery. Compare two fresh named remote databases; record only approved cleanup differences. Before applying to an existing target, prove the exact 0000_baseline.sql filename is in its ledger and no baseline is pending; otherwise stop for a reviewed adoption plan. Absorbed filenames do not prove adoption.
  • Destructive cleanup only: read Completed D1 Schema Cleanup. Require backup/Time Travel evidence, fresh zero-use evidence, and a dedicated operated rollout after compatible Worker code has soaked.
  • Deploy/rollback: read CI Deploy Sequence, Concurrency and Rollback Scope, and Rollback Procedure. Preserve pre-window bookmark, deployed Worker version, ledger and schema comparison. After release, use D1 connectivity first checks and inspect the first affected read/write or scheduled path; retain migration, activation and operational proof separately.

Checks Owned By The Verifier

The assigned verifier runs checks after writers finish; implementation agents hand off the applicable commands and evidence requirements.

  • Schema/SQL: npm run check:migrations, npm run check:sql-safety, npm run typecheck:worker.
  • Affected database/health paths: npx vitest run worker/src/lib/__tests__/db-cache.test.ts worker/src/api/__tests__/health.test.ts.
  • Squash, cleanup, and rollout use their branch-specific rehearsal/operational gates; remote work requires authorization, not merely tool access.

Completion Evidence

Report migration filenames/manifest state, fresh or production rehearsal results, checks actually run or assigned, deployment ordering, rollback bookmark/version, first affected-path result or pending acceptance, and cleanup/restore follow-up.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Review the retained annotation candidate queue and curate per-coin editorial history. Use weekly during active event periods, monthly otherwise, or on queue-health warnings; this does not restore the retired live chart overlay.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

Generate a weekly changelog entry from git history, filtering operational noise and producing editorial summary, field notes, statistics, and a bounded commit manifest. Stops for review unless commit was explicitly requested.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

Research and populate tracked stablecoin compliance sidecars for the U.S. GENIUS Act, EU MiCA, or both. Use when adding or auditing authorization, applicability, pathway, or disclosure evidence.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

Drain the Pharos Dependency Map coverage-audit queues into evidence-refreshed edges, reviewed target dispositions, or documented deferrals. Use monthly after weekly production dependency audits, after dependency coverage drops, or when reviewing adapter gaps, material unlinked slices, symbol leads, duplicate/split groups, or unverifiable published edges.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

Update Pharos funding donations by reconciling inbound transfers, rejecting wallet self-activity and spam, pricing receipt-time value, and appending user-approved rows.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

Draft a short, prioritized questionnaire for a collaborating stablecoin team when public evidence cannot resolve important Pharos data or confidence gaps.

中文简介正在准备中。当前显示原文说明。

TokenBrice/pharos-watch232026年10月18日 更新

查看 TokenBrice 的全部技能

报告此技能的问题