name: migrate-subfeatures description: Migrates legacy feature-local change packets into durable subfeatures for repositories that still use the old changes/ layout.
Migrate Subfeatures
Use this skill when a repository still contains legacy planning artifacts from
the old change-based workflow and those artifacts need to be converted into the
current durable subfeatures/ model.
Responsibilities
- Resolve one feature or the full planning tree.
- Detect legacy
changes/<change-id>/packets. - Convert legacy
.feature-change-meta.jsoninto.subfeature-meta.json. - Create migrated subfeature folders whose lifecycle is stored in
.subfeature-meta.json. - Rebuild feature-local subfeature registries and resync the planning registry.
Preferred Input
- a feature slug, folder name, or path when migrating one feature
- or
--allfor a repo-wide migration - optional
--dry-runbefore modifying planning files
Required Output
- migrated subfeatures under
docs/features/<feature>/subfeatures/<subfeature-id>/ - rebuilt
subfeatures/README.mdandsubfeatures/registry.json - refreshed top-level planning registry via
guide-planning - a JSON migration report listing candidates, migrations, and blockers
Workflow
- Run
scanto inspect legacychanges/packets and detect blockers. - Run
migrate --dry-runto preview target paths and metadata mapping. - Run
migratefor one feature or--allfor the whole planning tree. - Review the JSON report for migrated items and any conflicts left behind.
Tooling
# Scan one feature for legacy change packets
sirius migrate-subfeatures scan "checkout"
# Scan the whole planning tree
sirius migrate-subfeatures scan --all
# Preview migration without writing changes
sirius migrate-subfeatures migrate \
"checkout" \
--dry-run
# Migrate every legacy feature in the planning tree
sirius migrate-subfeatures migrate --all
Guardrails
- Do not overwrite an existing target subfeature folder.
- Do not rewrite discovery, design, or breakdown contents beyond structural migration needs.
- Do not use this skill for net-new feature planning; use
guide-planningandadd-subfeaturefor those. - Prefer
--dry-runbefore repo-wide migration.