| name | migrate-slices |
| description | Migrates execution slices into co-located subfeature-scoped slice roots with versioned reports. |
Migrate Slices
Use this skill when a repository still keeps execution slices in a root-level
slice tree and those slices should be moved into the owning subfeature scope
without losing archived history. Feature-level slice roots remain a fallback for
legacy direct-feature packets and become migration-only once subfeatures are
universal.
Responsibilities
- Resolve one feature or the full execution tree.
- Detect active and archived slice rows in the current slice registry.
- Create or reuse subfeature-local execution scope files so the subfeature can
own a local
slices/ tree.
- Move slice directories and rewrite registry paths into the subfeature-local
slice root when traceability identifies one owner.
- Emit a versioned JSON migration report with planned, migrated, and blocked
entries.
Preferred Input
- a feature slug, folder name, or path when migrating one feature
- or
--all for a repo-wide migration
- optional
--dry-run before modifying files
Required Output
- co-located slices under the owning subfeature scope when traceability identifies one owner
- preserved archived slices under that subfeature scope's archive subtree
- a versioned JSON report suitable for future migration runs
Workflow
- Run
scan to inspect current slice rows and feature targets.
- Run
migrate --dry-run to preview target paths and feature-scope setup.
- Run
migrate for one feature or --all for the whole execution tree.
- Review the JSON report for migrated items and any conflicts left behind;
ambiguous or unmapped slices are blocked instead of guessed.
Guardrails
- Do not overwrite an existing target slice directory.
- Do not delete archived slice history unless it has already been pruned.
- Do not make repository-specific assumptions; resolve config from the current
repo and active scope.
- Prefer
--dry-run before repo-wide migration.