speckit-brownfield-migrate

Reverse-engineers legacy code and tests into spec.md, plan.md, and tasks.md.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-brownfield-migrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-brownfield-migrate
Source: https://github.com/B0yZ4kr14/OrthoPlus-Enterprise/tree/main/.specify-backups/20260518-141826/_agents/skills/speckit-brownfield-migrate
Command: npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-brownfield-migrate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams adopt spec-kit for features that were built before the workflow existed by reconstructing spec artifacts from existing code and tests.

Core Features & Use Cases

  • Reverse-engineer specs: Rebuild spec.md, including inferred scenarios, requirements, success criteria, and explicit notes on assumptions, then mark them as status: migrated.
  • Reverse-engineer implementation: Reconstruct plan.md and tasks.md to reflect the real structure, frameworks, and work that already exists in the codebase.
  • Migrate selectively or comprehensively: Support migrating a specific feature by name, a module path, a branch scope, or all (with interactive selection).

Quick Start

Run speckit-brownfield-migrate and specify a feature name, module path, or use "all" to migrate and generate the corresponding specs/<feature-name>/ artifacts after reviewing the proposed migration plan.

Frequently Asked Questions about speckit-brownfield-migrate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate legacy application features into spec-kit specs?

You can migrate a specific feature by name, a module path, a branch scope, or use an interactive selection when no input is provided. The skill validates the git repository and source code before generating the migration artifacts.

What is reverse-engineering specs from existing code?

This process applies to brownfield projects where features were built before the spec-kit workflow existed. It helps teams adopt SDD workflows by rebuilding missing documentation from the actual codebase structure and frameworks.

Does spec-kit brownfield migration require a specific project structure?

The skill confirms before writing generated artifacts to ensure safe migration. Without the .specify/ directory, the migration cannot proceed.

How to generate spec.md, plan.md, and tasks.md from existing source code?

The generated files are marked with status: migrated to distinguish them from forward-engineered specs. The skill first proposes a migration plan for review before writing the files.

Can I selectively migrate specific modules to the SDD workflow?

This selective migration supports migrating a named feature, a module path, a branch scope, or interactive selection when no input is provided. It gives flexibility in adopting spec-kit incrementally.

What are the limitations of reverse-engineering spec artifacts from git history?

Additionally, the reverse-engineered specs include explicit notes on assumptions, meaning inferred scenarios and requirements may not perfectly match original intentions. Human review of proposed migration plans is required before writing artifacts.