AGENT SKILL

reforge

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.

License 许可
MIT
最近更新
2026-03-27
Stars
★ 3
Forks
1

01 前言 Front Matter

name
reforge
context
fork
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']

03 SKILL.md 正文

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

04 同仓库更多 Skills

ByeongminLee
ByeongminLee/nextjs-claude-code

zustand

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

web-vitals

暂无简介

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

vercel-storage

Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

vercel-functions

Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration. Use when configuring, debugging, or optimizing server-side code running on Vercel.

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

★ 3