一键导入
smith-migrate-specs
One-time migration of existing flat spec folders into the system-based hierarchy under .specify/systems/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
One-time migration of existing flat spec folders into the system-based hierarchy under .specify/systems/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Thorough, fact-based, hallucination-resistant research on a target website and the company behind it. Crawls the whole site, indexes it into a local vector store, runs deep background research (Bing/Reddit via stealth Playwright), then synthesizes a single fully-cited report where every published sentence is citation-gated and adversarially verified against stored evidence. Correctness over speed. All artifacts land in ~/Documents/smith-research/.
Initialize SpecKit on a new or existing project — scans the codebase, interviews you about project details, and generates CLAUDE.md, constitution.md, and the full .specify/ scaffolding with commands and agents.
Lightweight fix workflow for bugs and small changes. Autonomous from invocation through merged PR — no questions gate, no spec generation, no planning phase.
Diagnostic workflow that systematically gathers evidence, identifies root causes, and produces a structured debug report. Read-only — does not modify code. Output feeds into /smith-bugfix if a fix is needed.
Start a new feature from scratch or from conversation context. Conversational requirements gathering, planning, questions gate, then fully autonomous build.
Autonomous build phase — generates tasks, implements, tests, commits, pushes, merges, and produces release notes. Runs without user interaction.
| name | smith-migrate-specs |
| description | One-time migration of existing flat spec folders into the system-based hierarchy under .specify/systems/. |
| argument-hint | [--dry-run] [--all] |
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.