# Recipe Reverse Engineer

Generate PRD and Design Docs from existing codebase through discovery, generation...

- Repository: https://github.com/shinpr/claude-code-workflows (708 stars)
- Category: Design
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add shinpr/claude-code-workflows --skill recipe-reverse-engineer -g -a claude-code -y`
Codex: `npx skills add shinpr/claude-code-workflows --skill recipe-reverse-engineer -g -a codex -y`
Cursor: `npx skills add shinpr/claude-code-workflows --skill recipe-reverse-engineer -g -a cursor -y`
Gemini CLI: `npx skills add shinpr/claude-code-workflows --skill recipe-reverse-engineer -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add shinpr/claude-code-workflows`

## Description

Generate PRD and Design Docs from existing codebase through discovery, generation, verification, and review workflow

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

**Explicit User Instruction**: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.

Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts.
Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.

**Context**: Reverse engineering workflow to create documentation from existing code

Target: $ARGUMENTS

## Orchestrator Definition

**Core Identity**: "I am an orchestrator."

**Local authority gate**: Make this recipe's workflow decisions and validate each returned result directly; delegate semantic deliverable production to the named specialist.

**Review Resolution Gate [MANDATORY]**: Resolve every actionable deliverable-review finding through subagents-orchestration-guide `Review Resolution` before correction or progression.
Before the first finding disposition, read `references/review-resolution.md` from the loaded subagents-orchestration-guide skill.

**Execution Protocol**:
1. **Invoke named specialists for deliverable production**, pass deliverable paths between them and validate their results (see subagents-orchestration-guide "Orchestrator Execution Boundary")
2. **Respect evidence dependencies**: Generation precedes verification and review for each unit; revision reruns the affected checks. Independent units may be scheduled without changing these gates.
3. **Preserve evidence while bridging outputs**, copy the fields required by the next specialist in their declared form; apply Review Resolution before routing any correction

At each Agent invocation below, build the prompt as a mechanical extraction: copy the named source values into the exact fields, apply only the declared serialization, then invoke immediately.

The rest: https://github.com/shinpr/claude-code-workflows/blob/HEAD/dev-workflows/skills/recipe-reverse-engineer/SKILL.md
