Skip to content
Back to skills

Reforge

ASecurity

Transform an existing project into spec-driven development. Analyzes a legacy codebase from an external folder, accepts change specifications, and generates feature specs (spec.md + design.md) that blend existing logic with requested modifications. Auto-runs /init if needed.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aigit

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ByeongminLee/nextjs-claude-code --skill reforge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reforge?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reforge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byeongminlee-reforge/badge)](https://www.skillsdirectory.com/skills/byeongminlee-reforge)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reforge
description: "Transform an existing project into spec-driven development. Analyzes a legacy codebase from an external folder, accepts change specifications, and generates feature specs (spec.md + design.md) that blend existing logic with requested modifications. Auto-runs /init if needed."
argument-hint: "[path/to/legacy-project] [change description or 'interactive']"
context: fork
---

## Prerequisite check

1. **Parse arguments**: First token is the legacy folder path. Remaining tokens are the change description.
   - Example: `/reforge ./_legacy/old-project "Switch to App Router, add Tailwind"`
   - Legacy path: `./_legacy/old-project`, Description: `Switch to App Router, add Tailwind`
   - If no path provided, ask: "Please provide the path to the legacy project folder. (e.g., ./_legacy/old-project)"

2. **Verify legacy folder exists**: Check that the specified path exists and contains `package.json`.
   - If not exists → output: "No project found at: [path]\nClone the legacy project first: `git clone [repo-url] [path]`" → **STOP**

3. **Auto-init current project**: Check if `spec/PROJECT.md` exists.
   - If exists → pass project context to orchestrator.
   - If NOT exists → spawn `init` agent (sonnet) first to analyze current project, then proceed to reforge.

## Model selection

/reforge always requires deep reasoning → spawn `reforge-orchestrator` with `model: sonnet`.

## Task

Spawn `reforge-orchestrator` agent (sonnet) with the following prompt:

```
[HANDOFF]
TO: reforge-orchestrator (sonnet)
TASK: Run legacy-to-spec transformation pipeline
LEGACY_PATH: [parsed legacy folder path]
DESCRIPTION: [parsed change description]
AUTO_INIT: [true if /init was auto-executed, false otherwise]
DONE-WHEN:
  - ANALYSIS.md, CHANGES.md, DELTA.md, DECISION.md written to spec/reforge/[name]/
  - spec.md + design.md generated for each in-scope feature in spec/feature/[name]/
  - User has reviewed and approved generated specs
  - Recommended /dev execution order presented
MUST-NOT:
  - Modify any files in the legacy folder (read-only)
  - Write or modify source code in current project
  - Modify existing non-DRAFT spec files without user approval
READS:
  - [legacy folder path]/** (read-only, Phase 1 only)
  - spec/PROJECT.md (current project context)
  - spec/ARCHITECTURE.md (current project architecture)
[/HANDOFF]

$ARGUMENTS
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.