From smith
Migrates flat spec folders into the system-based hierarchy under .specify/systems/. Useful for transitioning to the new spec organization.
How this skill is triggered — by the user, by Claude, or both
Slash command
/smith:smith-migrate-specs [--dry-run] [--all][--dry-run] [--all]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Workflow requirement (Smith 20+):** This skill must be invoked from inside an active top-level workflow (`/smith-new`, `/smith-bugfix`, `/smith-debug`, `/smith-build`). The workflow-gate hook will block standalone invocation. To use this skill standalone, start a top-level workflow first.
Workflow requirement (Smith 20+): This skill must be invoked from inside an active top-level workflow (
/smith-new,/smith-bugfix,/smith-debug,/smith-build). The workflow-gate hook will block standalone invocation. To use this skill standalone, start a top-level workflow first.
Migrate existing feature spec folders from specs/<NNN-feature>/ into the system-based hierarchy at .specify/systems/<system>/features/<NNN-feature>/.
Arguments: $ARGUMENTS
.specify/systems/ must exist with system spec folders (created by Phase 1B setup or /smith).specify/systems/system-*/spec.md for system detection to workScan specs/ for all feature spec folders. Exclude the following (they are not feature specs):
specs/system-* (system specs — these are the source of truth)specs/questions/ (global questions directory)specs/screenshots/ (visual reference)specs/sentiment-engine/ (legacy non-numbered spec)specs/init-intake.md (not a folder)A valid feature folder must:
spec.md fileNNN-* (numbered feature)List all candidates with their folder name and a one-line summary from the first heading in their spec.md.
For each feature folder, determine the primary system:
spec.md — extract what the feature does, which services it touches, what data it modifies.specify/systems/system-*/spec.md — understand each system's scopeUse these heuristics for mapping:
services/command-center/ → system-15-command-centerservices/email-pipeline/ → system-03-email-archive-contact-graphservices/sentiment-engine/ → system-05-communication-triage or system-03 depending on scopeservices/content-strategy/ or services/content-engine/ → system-12-content-social-engineservices/social-listening/ → system-10-social-listeningservices/trend-intelligence/ → system-13-trend-intelligenceservices/voice-training/ → system-04-personal-voiceservices/meeting-intelligence/ → system-09-meeting-intelligencedocker-compose.yml or infrastructure → system-01-infrastructuresystem-03-email-archive-contact-graphsystem-01-infrastructurecross-systemAlso check git history and the feature's plan.md (if it exists) for additional context.
For each feature, present the proposed mapping:
Feature: 024-triage-review-actions
Summary: Add review actions (approve/reject/archive) to the triage log
Primary: system-05-communication-triage
Also affects: system-15-command-center
Files to move: spec.md, plan.md, tasks.md, checklists/, questions.md (5 items)
Move to: .specify/systems/system-05-communication-triage/features/024-triage-review-actions/
Confirm? [y/n/skip/quit]
IMPORTANT: Process ONE feature at a time. Do NOT batch-move all features without individual confirmation.
For each confirmed feature:
mkdir -p .specify/systems/<primary-system>/features/<feature-name>/specs/<feature-name>/ to the new location (copy, not move — we preserve originals until verified)spec.md if not already present:
---
feature: <feature-name>
primary_system: <system-folder-name>
also_affects:
- <other-system>
branch: <branch-name if detectable from git>
created: <date from spec or git>
status: complete
---
.smith/vault/sessions/ (current session log if active)After processing all features (or quitting), display:
## Migration Summary
Migrated: 15 features
Skipped: 3 features
Remaining: 37 features (not yet processed)
### Migrated Features
| Feature | System | Path |
|---------|--------|------|
| 024-triage-review-actions | system-05-communication-triage | .specify/systems/system-05-communication-triage/features/024-triage-review-actions/ |
| ... | ... | ... |
### Skipped Features
| Feature | Reason |
|---------|--------|
| 025-nav-label-rename | User skipped |
Note: Original folders in specs/ are preserved. Once verified, you can remove them manually.
--dry-run — Show proposed mappings for all features without moving anything--all — Skip individual confirmations and move all features using auto-detected systems (use with caution)specs/ remain untouched as a safety measure.specs/..specify/systems/ are skipped automatically.npx claudepluginhub attckdigital/smithAdds `paths:` YAML frontmatter to existing system spec prose files for Smith manifest v2 path-resolver tier 1. Scans body for path-like references, scores candidates, and writes accepted frontmatter.
Manages feature specifications lifecycle: creates from requirements in draft/, tracks progress, moves to active (max 3) or completed folders. Use for planning, status checks, activation, or completion.
Generates Run IDs, creates isolated worktrees, brainstorms requirements, writes lean spec documents referencing constitutions, validates architecture quality, and reports completion for new features.