Install
openclaw skills install prd-visualization-skillCreates interactive D3.js hierarchy visualizations with multiple view modes (List, Force-Directed, Radial Cluster, with Fractal Tree coming soon). Use when u...
openclaw skills install prd-visualization-skillInteractive multi-view visualization for hierarchical data using D3.js.
Use when the user wants to visualize their PRD, project requirements, or any hierarchical data. The visualizer reads from a JSON file and renders it as an interactive diagram.
If user has a PRD in Markdown/text format: Convert it to hierarchical JSON format. Read the PRD file and create a JSON structure with:
If user already has a JSON file:
Use that file directly (check for prd.json, requirements.json, hierarchy.json)
# Copy visualizer files to user's project
cp hierarchy-visualizer.html d3.min.js /path/to/user/project/
# Save the JSON as requirements-hierarchy.json
cat > /path/to/user/project/requirements-hierarchy.json << 'EOF'
{paste the JSON here}
EOF
# Start server from their project folder
cd /path/to/user/project && python3 -m http.server 8080
http://localhost:8080/hierarchy-visualizer.html
Always keep the prd json file updated in the whole project development process, everytime a requirement/specification/feature is added, updated, status changed, or deleted, update the json file accordingly.
Convert PRD content to this JSON structure:
{
"id": "root",
"title": "Product Requirements",
"status": "processing",
"children": [
{
"id": "auth",
"title": "Authentication",
"status": "done",
"children": []
}
]
}
Required fields:
id — unique identifier (string)title — display name (string)status — one of: todo, processing, problem, donechildren — array of child nodes (empty array for leaves)Optional fields: type, domain, stage, owning_sig, granularity, complexity, source_url, goals
Note: Fractal Tree view is currently under development and will be available in a future release. Stay tuned for updates!
#8b949e#e3b341#ffa657#238636Blank visualization? → Use local HTTP server, not file://
JSON not loading? → Check that requirements-hierarchy.json exists in the same folder as the HTML file
Need custom styling? → Edit CSS variables in hierarchy-visualizer.html (~line 78)