| name | migrate-claude |
| description | Inspect a Claude Code marketplace or plugin and guide migration into portable pack source. Use before converting existing Claude assets. |
Migrate Claude
Purpose
Use this skill to inspect Claude Code marketplace or plugin source before writing portable pack files. The scanner reports structure and migration candidates; the skill handles judgment and user questions.
Workflow
- Identify the Claude source path. Accept a marketplace repository root or a single plugin directory.
- Run
packport migrate-claude scan <path>.
- Run
packport migrate-claude plan <path> to preview the portable file layout without writing source.
- If working from the packport source tree before a binary is installed, use
bun src/cli.ts migrate-claude scan <path> and bun src/cli.ts migrate-claude plan <path>.
- Summarize discovered plugins, planned files, target collisions, structural facts, and decision questions.
- Treat migrated
CLAUDE.md or instructions/*.md files as reusable instruction asset candidates; configport owns later target and scope placement.
- Treat
pack-candidate assets as normal pack source candidates, including personal or private packs.
- Treat known structural facts such as explicit config/security variable references,
config-path-reference, and script-reference as evidence to reason from, not as automatic classifications.
- Inspect planned skill support-file questions as content findings, not just path findings; support files with local values may need configport treatment.
- Expect multi-file skills to produce
ASSET.md with SKILL.md first and support files after it.
- Call out
harness-specific, unsupported, unclear, and fact-bearing assets as questions, not decisions.
- If the user confirms a questioned asset and its support files are pack source, rerun the plan with
--accept-asset <plugin/name> or --accept-asset <plugin/kind/name>.
- If the user marks a whole plugin as harness-specific, rerun the plan with
--exclude-plugin <name> before summarizing portable source files.
- If the user marks one asset as harness-specific, rerun the plan with
--exclude-asset <plugin/name> before summarizing portable source files.
- Do not write portable pack source until the user confirms pack boundaries and source-versus-configuration placement.
- After every question is accepted or excluded, run
packport migrate-claude write <source> <output> with the accepted decisions.
Boundaries
- Do not infer migration state by parsing Claude payload prose yourself; use the scanner's known structural facts.
- Do not split personal packs into a separate category; personal packs are still packs.
- Do not silently decide source-versus-configuration placement when scanner signals are ambiguous.
- Do not generate target harness output from this skill.
- Do not edit the source Claude marketplace or plugin unless the user explicitly asks for a repair.