본문으로 건너뛰기
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.

리뷰

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

댓글

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

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

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

0 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고