A powerful reverse-engineering tool that transforms frontend, backend, or fullstack codebases into comprehensive, business-readable Product Requirements Documents.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install code-to-prd
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install code-to-prd using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Code → PRD is a specialized tool within the Openclaw Skills ecosystem designed for senior product analysts and technical architects. It bridges the gap between raw source code and high-level product documentation by deep-scanning repository structures to identify business logic, user interactions, and system architecture. Whether you are dealing with a legacy React frontend or a complex NestJS backend, this skill translates technical implementation into functional specifications.
The skill is built to serve a dual audience: providing stakeholders with a clear understanding of system capabilities while offering engineers and AI agents the granular detail required to reconstruct pages, endpoints, and data models accurately. By automating the extraction of routes, enums, and API dependencies, it ensures that your documentation remains the single source of truth for the entire product lifecycle.
To start using this feature within your Openclaw Skills environment, you can use the built-in scripts or slash commands:
# 1. Analyze the project structure
python3 scripts/codebase_analyzer.py /path/to/project -o analysis.json
# 2. Scaffold the PRD directory structure
python3 scripts/prd_scaffolder.py analysis.json -o prd/ -n "Project Name"
# 3. Alternative: Use the direct slash command
/code-to-prd /path/to/project
The skill organizes generated documentation into a standardized taxonomy to ensure clarity and scannability:
| Directory | File / Content | Purpose |
|---|---|---|
prd/ |
README.md |
High-level system overview and module mapping. |
prd/pages/ |
[01-name].md |
Standalone documentation for every unique UI page or resource. |
prd/appendix/ |
enum-dictionary.md |
Centralized list of status codes, types, and constants. |
prd/appendix/ |
api-inventory.md |
Full reference of all detected and required API endpoints. |
prd/appendix/ |
page-relationships.md |
Navigation map showing inbound and outbound data flow. |
Loading
A versatile document processing utility that transforms complex file formats into clean, structured markdown optimized for LLM analysis.

A precision logistics tracking skill that uses browser automation to retrieve real-time Chinese package statuses directly from Kuaidi100.

A comprehensive quality assurance framework for evaluating, grading, and benchmarking AI agent skills before deployment.

A specialized tool for AI agents to retrieve real-time market data and indices from the Shanghai and Shenzhen stock exchanges.

A local, high-speed reference tool for developers to access Piston concepts, implementation patterns, and best practices directly within their AI agent workflow.

A high-rigor research assistant designed to deconstruct technical papers into durable, evidence-based markdown notes and implementation memos.








































