Sutando migrate

From sonichi/sutando · View interactive version

Sutando migrate is an AI agent skill from the GitHub repository sonichi/sutando. M1 Part 2 workspace migration — guided walkthrough that scans legacy state across sources A (repo-root), B (~/.sutando/workspace/), C ($SUTANDO_WORKSPACE env-override), surfaces collisions, gets owner greenlight, commits, verifies, and (if sutando-plus + sync configured) re-routes the vault .git via

How to use this skill

Skill file

Sutando Migrate

Guided workspace migration for existing users (M1 Part 2). Reach for this when:

Usage: /sutando-migrate [--auto]

--auto proceeds without per-step greenlight. Without it the skill waits for owner OK at each phase boundary.

What this skill does (5 phases)

Phase 1 — Scan + summary

Run bash scripts/sutando-migrate.sh scan --json. Parse the JSON for:

Present a concise 4–6 line summary to owner via:

Wait for greenlight unless --auto.

Phase 2 — Commit (data move)

If owner says go:

After commit, the script prints the phase-2 footer ("After ~7d run --commit --delete-source --backup-id <id>"). Acknowledge it; don't run delete-source automatically.

Phase 3 — Verify

Phase 4 — Sync re-route (sutando-plus users only)

Detect whether the user has the sync engine configured:

If both: run bash $SUTANDO_PLUS_DIR/scripts/sutando-migrate-sync.sh --dry-run first; show owner the plan; on greenlight run without --dry-run. Reports vault remote intact + restart instruction.

If either missing: skip this phase silently; OSS users don't need it.

Phase 5 — Report + clear nag

Summarize end-state to owner:

Write a build_log entry summarizing what migrated.

Failure modes + fallbacks

Why this is a skill (not just a script)

The script (scripts/sutando-migrate.sh) is the engine — operator-invocable from any shell. This SKILL adds:

OSS users with sufficient bash literacy use the script directly. Most owners use the skill.

Notes for the agent invoking this skill

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.