/maxi:migrate-from-speckitfrom maxi
Use when the user invokes /maxi:migrate-from-speckit or asks to migrate a github-spec-kit project to maxi conventions — detects .specify/ directory, previews the migration plan, confirms with user, then runs migrate.sh
Ships in maxi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One-shot migration from github-spec-kit to maxi conventions. Copies specs to docs/maxi/specs/, copies the constitution to docs/maxi/constitution.md, adds YAML frontmatter, and infers maxi status from files present.
Non-destructive: originals in specs/ and .specify/ are never touched.
You MUST run migrate.sh for ALL file operations. Do NOT implement the migration logic yourself with bash loops, Edit tool calls, or Read/Write sequences.
Rationalizations that are NEVER valid:
migrate.sh handles everythingmigrate.shBefore anything else, verify you are in a spec-kit project:
.specify/ directory exists at CWDspecs/NNN-* directory existsIf either is missing: stop immediately.
"Not a spec-kit project:
.specify/orspecs/NNN-*not found. Nothing to migrate."
digraph migrate {
"Detect spec-kit" [shape=diamond];
"STOP: not a spec-kit project" [shape=box];
"Check clobber guard" [shape=diamond];
"STOP: docs/maxi/specs/ already non-empty" [shape=box];
"Run migrate.sh --preview" [shape=box];
"Wait for explicit user confirmation" [shape=diamond];
"User cancelled" [shape=box];
"Run migrate.sh --apply" [shape=box];
"Report summary + next steps" [shape=box];
"Detect spec-kit" -> "STOP: not a spec-kit project" [label="missing"];
"Detect spec-kit" -> "Check clobber guard" [label="present"];
"Check clobber guard" -> "STOP: docs/maxi/specs/ already non-empty" [label="non-empty"];
"Check clobber guard" -> "Run migrate.sh --preview" [label="empty or absent"];
"Run migrate.sh --preview" -> "Wait for explicit user confirmation";
"Wait for explicit user confirmation" -> "User cancelled" [label="no"];
"Wait for explicit user confirmation" -> "Run migrate.sh --apply" [label="yes"];
"Run migrate.sh --apply" -> "Report summary + next steps";
}
Step 1 — Detection
[[ -d .specify ]] || die
compgen -G "specs/[0-9][0-9][0-9]-*" >/dev/null || die
Stop with the message above if either check fails.
Step 2 — Clobber guard
if [[ -d docs/maxi/specs ]] && [[ -n "$(ls -A docs/maxi/specs 2>/dev/null)" ]]; then
echo "docs/maxi/specs/ already exists and is non-empty. Aborting."
exit 1
fi
Do not proceed past this point without a clean target.
Step 3 — Resolve helper & Preview
Take the exact loaded migrate-from-speckit/SKILL.md path from the skill loader, canonicalize its directory with cd -P, and resolve the adjacent migrate.sh as migrate_script (requiring a readable regular, non-symlink file; never rely on a client-relative skills/... path):
migrate_script="$(cd -P "$(dirname "$loaded_skill")" && pwd)/migrate.sh"
test -f "$migrate_script" && test ! -L "$migrate_script"
bash "$migrate_script" --preview
The script prints a manifest: constitution path, every spec's source → target, its inferred status (and the reason), and which aux files are present.
Step 4 — Confirm
Show the preview output to the user. Ask: "Proceed with migration? (y/N)"
Wait for explicit y or yes. Any other response → abort.
Step 5 — Apply
bash "$migrate_script" --apply
The script does the work. Report its output to the user verbatim.
Step 6 — Report next steps
After --apply exits 0, tell the user:
"Migration complete. Originals in
specs/and.specify/are untouched. Reviewdocs/maxi/specs/. Next: run/maxi:migrate-adrto bootstrap your ADR log — it imports any existing ADRs and discovers undocumented architectural decisions from your code (spec-kit migration does not bring ADRs over). Then/maxi:specifyto add new features."
If any migrated spec landed at status planned, tasked, or done, it will have a ## Migration Notes section at the bottom of its spec.md documenting which maxi pipeline phases were not run (trusted from spec-kit history). Mention this to the user so they are aware.
The script handles these transforms — you do NOT need to re-implement any of this:
| What | How |
|---|---|
| Constitution | Copies .specify/memory/constitution.md → docs/maxi/constitution.md (skips if target exists) |
| Spec dirs | cp -r specs/NNN-slug/ docs/maxi/specs/NNN-slug/ |
| spec.md frontmatter | Prepends YAML slug/created/updated/status; strips inline **Status**:, **Created**:, **Feature Branch**:, **Input**: lines |
| Status inference | Shipped OR retrospective.md → done; tasks.md → tasked; plan.md → planned; else → specified |
| plan.md / tasks.md | Prepends YAML frontmatter if absent |
| Missing spec.md | Warns and skips the folder; does not abort |
| Aux files | contracts/, data-model.md, quickstart.md, research.md, retrospective.md — copied verbatim |
When this skill emits prose that references another maxi artifact (an ADR, spec, plan, tasks, constitution, or repo file) — in an artifact body or in a chat report — render it as a relative Markdown link, not a bare slug/number/code span:
.md (an ADR slug like 0003-constitution-decoupled-from-claudemd; for generic spec artifacts use <feature-dir>/<name>, e.g. 0002-migrate-adr-review-fixes/spec; non-.md files keep their full name).related_adrs entries stay bare slugs) or within-document IDs (FR-012, section names).migrate.sh once then manually editing individual files → don't; the script handles all transformsspecs/ or .specify/?" → originals stay; do not asky--apply against a non-empty docs/maxi/specs/ → the clobber guard fires; stopgit mv instead of cp → originals must be preserved; use cp onlyWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
34 skills in this plugin
/analyzeUse when the user invokes /maxi:analyze or wants to audit spec/plan/tasks artifacts for quality issues — spec must be at status "tasked" or later; constitution is required/boardUse when the user invokes /maxi:board or wants a kanban overview of all specs and their pipeline status in the current project/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./cancelUse when the user invokes /maxi:cancel, says a feature is abandoned, dead, or will never ship — requires active spec status, explicit reason, and explicit yes/no confirmation before writing anything./clarifyUse when the user invokes /maxi:clarify or when a spec.md has open questions, [NEEDS CLARIFICATION] markers, or ambiguous FRs — status must be "specified"/constitutionUse when the user invokes /maxi:constitution, wants to establish or amend project principles, or when docs/maxi/constitution.md does not yet exist and needs to be creatednpx claudepluginhub amoutiers/maxi-superpowers --plugin maxi