用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ChonSong/riptide --skill diagram-analyst命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | diagram_analyst |
| description | Generate annotated Excalidraw diagrams from PR review findings. |
| tags | ["excalidraw","diagram","review","visualization"] |
Generates an annotated Excalidraw diagram from PR review findings. This module
wraps the pipeline DiagramBuilder to produce a visual summary of what the PR
changes and the key findings from the review.
python -m riptide.diagram_analyst \
--findings /tmp/findings.json \
--owner ChonSong \
--repo riptide \
--pr 42 \
--title "feat: add new feature" \
--author "ChonSong" \
--loc 150 \
--output /tmp/diagram_insights.json
A JSON file containing an array of findings:
[
{
"severity": "critical|warning|suggestion|info",
"title": "Short description of the issue",
"file": "path/to/file.py",
"line": 42,
"detail": "Detailed explanation and suggested fix"
}
]
JSON with the following structure:
{
"diagram_url": "https://excalidraw.com/#json=... or file:///tmp/...",
"narrative": {
"summary": "PR #42 by author: 1 critical, 2 warning in 3 file(s)",
"title": "feat: add new feature",
"author": "ChonSong",
"repo": "ChonSong/riptide",
"total_loc": 150,
"findings_count": 3,
"severity_breakdown": {"critical": 1, "warning": 2},
"files_affected": ["path/to/file.py", "..."]
},
"confidence": 0.85,
Called by the Conductor pipeline AFTER the Judge produces findings. If diagram generation fails, the review proceeds without a diagram.
None (empty findings, import error, or diagram build failure)The module is defensive — it logs warnings and returns None on any failure, allowing the review to proceed without a diagram attachment.