flurdy/agent-skills/beads-migrate-to-dolt
Claude Code and agent skill by flurdy/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Safely migrate classic Beads data or upgrade a Dolt schema, preserving backups and remote history. Repository aftercare is a separate, explicitly selected mode.
Install
npx vskill@latest install flurdy/agent-skills/beads-migrate-to-doltSKILL.md
The same SKILL.md was published earlier as flurdy/agent-skills/beads-migrate-to-dolt.
Beads Storage and Schema Migration
Own data preservation, conversion/schema upgrade, verification, and coordinated publication for one explicitly selected repository. Do not install or upgrade tools during the run. Reading this skill or editing it is not permission to migrate a database.
Usage
Default mode runs the core steps below. --aftercare selects only the confirmed aftercare procedure, not another migration. Never enter aftercare automatically at the end of migration. Reject unknown/duplicate flags.
Read version and capability evidence before either mode. It records checked CLI help, not universal compatibility. Read --help before each version-sensitive command; audit the capabilities needed by the selected path, including protection, verification and any publication/adoption. A newer version is not itself a blocker; missing required safety capabilities or unresolved semantic changes are. Do not guess a flag, silently drop a safety guarantee or change the installed version. Optional aftercare capabilities do not block core migration when aftercare was not selected. See the reference's path-specific capability audit; help alone cannot establish that a command is nonmutating.
1. Bind the target without opening a store
Read the repository's own rules and the Beads baseline. At a workspace root, use ~/.agents/skills/next/scripts/next-select stores for file-only repository discovery. Select exactly one explicit absolute repository path as ROOT, matching its physical .beads location. If selection is ambiguous, ask; never infer the target from an ID prefix or migrate every member. Do not resolve a Bead ID before backup: the resolver's issue probes open databases. Resolve any later tracker reads normally, after protection; they are not migration target discovery.
Inspect local files without opening the engine. Record only redaction-safe storage mode/path, configured remote identity, and policy values; never dump full config or credential values. Account for redirected or external storage, Git common directories, symlinks, shared servers, and legacy worktree JSONL. A .beads copy alone cannot protect an external database. issues.jsonl alone does not establish which backend is authoritative. No installation means stop, not automatic bd init. Partial/unknown evidence is not permission to rebuild a store.
Every database command uses bd -C "$ROOT"; use the repository's Git wrapper where required. Set ROOT and all other path variables to the proven absolute locations before using examples. Use --sandbox on applicable local bd operations to disable configured auto-push, not to bypass schema or permission guards. No mutating command is preapproved by this skill's tool declaration. Show the scope and plan before local writes; immediately before every remote or destructive action, obtain fresh approval with one visible command per confirmation. Never chain such actions.
2. Quiesce and verify a mandatory backup
Modern bd may auto-migrate on store open. Protect data before counts or schema inspection: do not run list, export, SQL, doctor, bootstrap, or migration probes against an unprotected old store.
Coordinate all writers first, including other agents, clients, legacy SQLite daemons, and embedded engine processes. Choose a version/mode-appropriate graceful quiesce operation. For a proven project-managed server, the documented stop command is:
Verify shutdown and flush completion without reopening bd. Do not infer quiescence from a sleep, PID file, or successful signal alone. A shared server or externally managed engine needs a service-owner-approved consistent backup plan; never stop unrelated databases. If the quiesce command itself might open/migrate the store, or a consistent snapshot cannot be proven, stop for operator recovery. Never bypass a guard to obtain a backup.
Choose a private local BACKUP_PARENT outside the repository, active database roots and synced folders. For a confirmed self-contained .beads store, an exclusive backup example is:
Run each step with checked exit status; copy or verification failure is a hard stop. Never overwrite a backup or suppress a copy error. Include the full physical engine data, branches, history, working set, metadata/config, hooks, legacy SQLite WAL/SHM sidecars if present, and all candidate JSONL/worktree sources. Add separately proven external roots to the backup manifest when applicable; the example alone is insufficient for those topologies.
Verify file hashes, file types, permissions and symlink targets against the quiesced source, and confirm the snapshot is readable and complete. Preserve original metadata; do not recursively change backup file permissions. Record backup paths/digests, never record contents containing secrets. Treat the verified backup as immutable: do not open it with bd or use it as an import destination. Keep writers paused through verification. A failed attempt's backup is never reused or overwritten.
Create a separate private WORK directory for derived exports, comparisons and recovery experiments. If baseline/recovery inspection needs backup data, use a working copy of the backup, never the sole backup. Native backup sync can publish off-machine; it is not an automatic backup step. A configured native backup may supplement, not replace, the verified fallback under separate destination approval.
3. Inspect the protected store
Only after step 2 succeeds, inspect using the target version and retain exit status plus bounded output. Reuse the detection vocabulary, not that skill's pre-backup store-opening probes.
A nonzero exit may describe remote_migrate_gate, not successful inspection. Do not swallow errors. If the installed inspection path cannot guarantee nonmutation, inspect an isolated working copy without live remote bindings, under a separately reviewed recovery plan. Unknown state stops here.
- Working Dolt with no pending migrations: report no migration needed; keep the backup.
- Working Dolt with pending migrations: path A, including the remote coordination decision.
- Proven classic SQLite or JSONL-only source: path B, after source reconciliation below.
- Partial or mixed Dolt is recovery, not permission to reinitialize. Preserve all stores and stop
for a scoped recovery/adoption plan; never delete an engine directory based on a failed query.
Record a comparable baseline
Before applying changes, record complete issue IDs/counts by status, dependencies, comments, labels, and relevant non-issue data/history. On a version supporting these flags:
Use structured JSON or read-only queries over a protected copy, not terminal glyph/summary counts. export --all includes memories and infrastructure records; its line count is not an issue count. JSONL is interchange, not a backup of Dolt tables/history/working sets. If a partial schema prevents queries, preserve the exact errors and use a version-compatible read-only baseline from a copy. Do not continue without an adequate baseline or reset the working set to make queries succeed.
For classic sources, compare SQLite, main-worktree JSONL and legacy-worktree JSONL by IDs, fields, relationships and timestamps. Counts alone cannot prove equal content or establish source authority. Read SQLite with a read-only connection on a consistent copy. WAL/SHM must be preserved; do not infer that a missing WAL or the largest/newest-looking JSONL makes that source complete.
4. Apply exactly one core path
A. Existing Dolt schema
For a remote-backed schema, the operator must designate exactly one designated migrator. Other clones preserve unpushed data/history and wait to adopt the published result; they must not independently apply schema migrations. Set no override until this coordination decision is explicit. If the installed version lacks representative migration evidence, disclose that untested end-to-end status in the designated-migrator approval; a passing help audit does not certify safe publication.
For local-only Dolt, after the approved local plan and verified backup:
For the designated remote-backed clone only, show and confirm the exact scoped override:
Never use migrate schema to bypass the remote gate. Never reset/discard a dirty or partially migrated working set. If a dirty-table guard blocks progress, preserve its error and snapshot. A checkpoint requires inspection of the actual changed tables and separate approval; never blanket stage tables, commit unexpected issue data, or run a raw-Dolt retry loop. An unproven checkpoint or repeat failure stops for version-specific recovery rather than another automatic attempt.
B. Classic SQLite/JSONL conversion
Preserve original sources and their verified backup throughout conversion. Use a version-compatible exporter on a working copy for stale/missing JSONL. If installed help advertises bd migrate legacy-sqlite, assess its source eligibility and preservation guarantees before choosing it; availability does not prove lossless export for this database. Missing that optional helper does not block another proven lossless exporter. Never run an exporter on the sole backup or open the live classic store with a newer binary just to discover whether it works. Never use a fixed-field converter or guess field casts to make import succeed. Labels, design/acceptance criteria, metadata, timestamps, dependencies, comments, priority 0 and custom fields must not silently disappear. If a suitable exporter is absent, stop for a separately reviewed lossless conversion with fixtures for the actual source schema.
Choose and approve the authoritative JSONL and expected records, with explicit handling of tombstones, soft deletes, memories and unsupported historical fields. Do not pick whichever source imports cleanly. Native Dolt backup restore cannot restore a raw SQLite copy; do not treat them as interchangeable.
Plan a fresh destination while keeping the old backend intact. If it must use the original path, move the old backend aside to a distinct, verified retained location only after an exact scoped confirmation; preserve team settings and source exports separately. Never recursively remove the old store. Do not adopt existing remote Dolt history by importing classic JSONL over it: use the adoption path below or stop for an operator merge plan. Remote uncertainty is not proof of remote absence.
For a proven fresh destination, help-supported integration suppression keeps aftercare separate:
Review the expected initialization footprint before approval and inspect files/Git state afterward; flags do not guarantee an empty Git diff or absence of an auto-commit. Do not repair integration here. A refusal is not a reason to add --reinit-local, --discard-remote or a destroy token. Remote history replacement is outside this migration procedure and requires a separate owner-approved recovery plan.
Preview the selected immutable source, then import only after reviewing the plan:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/beads-migrate-to-dolt/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/flurdy/agent-skills/beads-migrate-to-dolt)