migrate
Use for data migration between systems / schemas / regions. Plan + execute + verify + rollback. Memory captures the run for audit.
What this skill does
# migrate Data migration. The core discipline: forward-only changes are cheap; reversibility is expensive but mandatory. ## Method 1. **Scope.** What's moving? Source → sink. Volume estimate. 2. **Schema diff.** Source vs sink fields. Per field: - Direct copy - Transformed (function name + spec) - Dropped - New (default value or null) 3. **Reference data.** Lookups, FKs — exists in target? 4. **Identity.** How to dedupe / link? Source PKs preserved? New IDs? 5. **Strategy:** - Big bang (cutover at moment T) - Dual-write (write both during transition window) - Backfill + delta (initial bulk, then incremental) 6. **Plan rollback.** What's the revert path? Snapshot? Re-replay from source? 7. **Validate.** Reconcile counts + samples + invariants. 8. **Cutover.** Stop writes to source. Final delta. Switch reads. 9. **Verify in production.** Spot-check; row-count match; key invariants hold. 10. **Capture run** to memory for audit. ## Output shape ``` # Migration: <source> → <sink> ## Volume <row counts per table> ## Schema diff | Field | Source | Sink | Action | |---|---|---|---| | user_id | bigint | uuid | transform: hash → uuid | | email | text | text | direct | | ... | ## Reference data - ✓ countries: 244 rows in both - ⚠ regions: 50 in source, 47 in sink (3 to map) ## Strategy <big bang | dual-write | backfill+delta> ## Steps 1. Snapshot source for rollback (location) 2. Run schema migration on sink 3. Bulk copy: <command> 4. Delta loop: <command> 5. Validate (counts, samples, invariants) 6. Cutover (stop writes; final delta; switch reads) 7. Smoke test in prod 8. Mark old data as deprecated (don't delete for N days) ## Rollback <step-by-step path back> ## Validation queries - count parity: <SQL> - sample integrity: <SQL> - invariants: <SQL> ## Captured <memory id — run logged for audit> ``` ## Rules - **Snapshot before any write.** Rollback's foundation. - **Reference data verified before migration starts.** FK breaks during cutover are catastrophic. - **Dual-write only if requirements demand it.** It doubles complexity. - **Old data not deleted at cutover.** Keep N days post-cutover. - **Memory captures the full run.** Audit trail. - **Every step has a rollback.** ## Anti-patterns - Big-bang without snapshot - "We'll figure out rollback if needed" - Migrating without validation queries - Deleting source immediately after cutover - Cutover without dry-run on staging-shaped data ## When NOT to use - Single-record / few-record changes — direct DML - Schema migration only (no data move) — `/siftcoder:schema migrate` - Org-internal Salesforce data shuffle — `/siftcoder:sf-test-data` for tests; otherwise data loader ## Subagent dispatch - `Plan` for the migration plan - `chaos` for failure mode design - `general-purpose` for the actual cutover scripts - Memory MCP for capture ## Value over native CC CC will write migration scripts. CC won't naturally enforce: snapshot-first, reference-data verification, dual-write evaluation, rollback path per step, post-cutover retention. The discipline IS the value — migrations without these become incidents.
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.