本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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月11日 更新

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月11日 更新

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月11日 更新

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月11日 更新

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月11日 更新

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月11日 更新

TokenBrice のスキルをすべて見る

このスキルの問題を報告する