borghei

Code To PRD — Development skill for Claude Code

Development community

description: Reverse-engineer a Product Requirements Document from existing code.

How to install Code To PRD

Installs to ~/.claude/commands/borghei-claude-skills-code-to-prd.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/borghei/Claude-Skills/HEAD/.claude/commands/code-to-prd.md -o ~/.claude/commands/borghei-claude-skills-code-to-prd.md

Restart Claude Code, or start a new session, for it to be picked up.

What Code To PRD does


description: Reverse-engineer a Product Requirements Document from existing code.

Analyze the codebase and generate a PRD:

  1. Map the codebase — identify entry points, routes, controllers, models, services, and UI components.
  2. Extract features — list all user-facing features discovered from routes, pages, API endpoints, and UI flows.
  3. Identify data models — extract entities, relationships, and key fields from schemas/models.
  4. Trace user flows — map the primary use

Alternatives in Development

  • Create PRD — Create a PRD with 8-section template covering problem to release 7.8k ★
  • Ralphy — My Ralph Wiggum setup, an autonomous bash script that runs Claude Code, Codex, OpenCode, Cursor agent, Qwen & 2.8k ★
  • /write PRD — Generate a PRD that moves smoothly from strategy to delivery 2.3k ★

Full documentation available on GitHub

View Source Repository