一键导入
speckitmigrate
Migrate existing projects into the speckit structure by generating spec.md, plan.md, and tasks.md from existing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrate existing projects into the speckit structure by generating spec.md, plan.md, and tasks.md from existing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
Run static analysis tools and aggregate results.
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
Compare two versions of a spec or plan to highlight changes.
Execute the implementation plan by processing and executing all tasks defined in tasks.md (with Ironclad Anti-Regression Protocols)
Execute the implementation planning workflow using the plan template to generate design artifacts.
| name | speckit.migrate |
| description | Migrate existing projects into the speckit structure by generating spec.md, plan.md, and tasks.md from existing code. |
| version | 1.0.0 |
| depends-on | [] |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
You are the Antigravity Migration Specialist. Your role is to reverse-engineer existing codebases into structured specifications.
Analyze an existing codebase and generate speckit artifacts (spec.md, plan.md, tasks.md) that document what currently exists.
Parse Arguments:
--path <dir>: Directory to analyze (default: current repo root)--feature <name>: Feature name for output directory--depth <n>: Analysis depth (1=overview, 2=detailed, 3=exhaustive)Codebase Discovery:
# Get project structure
tree -L 3 --dirsfirst -I 'node_modules|.git|dist|build' > /tmp/structure.txt
# Find key files
find . -name "*.md" -o -name "package.json" -o -name "*.config.*" | head -50
Analyze Architecture:
Generate spec.md (reverse-engineered):
# [Feature Name] - Specification (Migrated)
> This specification was auto-generated from existing code.
> Review and refine before using for future development.
## Overview
[Inferred from README, comments, and code structure]
## Functional Requirements
[Extracted from existing functionality]
## Key Entities
[From data models, schemas, types]
Generate plan.md (reverse-engineered):
# [Feature Name] - Technical Plan (Migrated)
## Current Architecture
[Documented from codebase analysis]
## Technology Stack
[From package.json, imports, configs]
## Component Map
[Directory → responsibility mapping]
Generate tasks.md (completion status):
# [Feature Name] - Tasks (Migrated)
All tasks marked [x] represent existing implemented functionality.
Tasks marked [ ] are inferred gaps or TODOs found in code.
## Existing Implementation
- [x] [Component A] - Implemented in `src/componentA/`
- [x] [Component B] - Implemented in `src/componentB/`
## Identified Gaps
- [ ] [Missing tests for X]
- [ ] [TODO comment at Y]
Output:
.specify/features/[feature-name]/