Code → PRD
技能 已验证 活跃Reverse-engineer any codebase into a complete Product Requirements Document (PRD). Analyzes routes, components, state management, API integrations, and user interactions to produce business-readable documentation detailed enough for engineers or AI agents to fully reconstruct every page and endpoint. Works with frontend frameworks (React, Vue, Angular, Svelte, Next.js, Nuxt), backend frameworks (NestJS, Django, Express, FastAPI), and fullstack applications. Trigger when users mention: generate PRD, reverse-engineer requirements, code to documentation, extract product specs from code, document page logic, analyze page fields and interactions, create a functional inventory, write requirements from an existing codebase, document API endpoints, or analyze backend routes.
To automatically generate complete Product Requirements Documents from any codebase, saving significant manual documentation effort and ensuring all technical details are captured for reconstruction.
功能
- Analyzes frontend, backend, and fullstack applications.
- Supports numerous frameworks (React, Vue, Next.js, NestJS, Django, FastAPI, etc.).
- Generates structured PRD output with per-page details, API inventory, and enums.
- Includes analysis and scaffolding scripts for a complete workflow.
使用场景
- Generating documentation for legacy codebases.
- Creating initial PRDs for new projects based on early code structure.
- Understanding complex application architectures for onboarding or maintenance.
- Extracting API specifications from existing backend services.
非目标
- Generating code from PRDs.
- Performing static code analysis for bugs or performance issues.
- Providing UI design mockups or wireframes.
工作流
- Phase 1: Project Global Scan (Identify Structure, Build Route/Page Inventory, Map Global Context)
- Phase 2: Page-by-Page Deep Analysis (Analyze Overview, Layout, Fields, Interactions, APIs, Relationships)
- Phase 3: Generate Documentation (Create PRD directory with README, page stubs, appendix files)
实践
- Code-to-documentation
- Product requirement generation
- Technical documentation
先决条件
- Python 3.x installed
- Read access to the target codebase
安装
请先添加 Marketplace
/plugin marketplace add alirezarezvani/claude-skills/plugin install code-to-prd@claude-code-skills质量评分
已验证类似扩展
Pathfinder
100将代码库映射为按功能分组的流程图,识别不同功能之间的重复关注点,并提出统一的架构。在被要求“寻找理想路径”、统一重复系统或在重构前审计架构时使用。输出一个建议的统一流程图以及针对每个系统的“制定计划”提示。
Ui Ux Pro Max
100UI/UX design intelligence with searchable style, palette, typography, and chart databases. Use when designing UI components, choosing colors/fonts, reviewing code for UX issues, building landing pages, or implementing responsive layouts.
Google Docs
100Interact with Google Docs - create documents, search by title, read content, and edit text. Use when user asks to: create a Google Doc, find a document, read doc content, add text to a doc, or replace text in a document. Lightweight alternative to full Google Workspace MCP server with standalone OAuth authentication.
Sweep Flag Namespace
99Bulk-extract every candidate flag from a binary namespace, build an extraction inventory with occurrence counts and call-type tags, cross- reference against a documented set, and track completeness across probe campaigns until the undocumented remainder reaches zero. Covers namespace prefix harvesting, gate-vs-telemetry disambiguation at the call-site level, completeness metrics, DEFAULT-TRUE population reporting, and a final completion confirmation scan. Use upstream of probe-feature-flag- state when you need a complete catalog rather than a sample, or when a prior wave-based campaign needs a verifiable end condition.
Metal
100Extract the conceptual essence of a repository as skills, agents, and teams — the project's roles, procedures, and coordination patterns expressed as agentskills.io-standard definitions. Reads an arbitrary codebase and produces generalized definitions that capture WHAT the project does and WHO operates it, without replicating HOW it does it. Use when onboarding to a new codebase and wanting to understand its conceptual architecture, when bootstrapping an agentic system from an existing project, when studying a project's organizational DNA for cross-pollination, or when creating a skill/agent/team library inspired by a reference implementation.
Lean Ctx
100AI 代理的上下文运行时 — 包含 59 个 MCP 工具、10 种读取模式、95+ 种 shell 模式、支持 18 种语言的 tree-sitter AST。将 LLM 上下文压缩高达 99%。用于读取文件、运行 shell 命令、搜索代码或探索目录。如果不存在,则自动安装。