pr-visual-report
БесплатноБез исполняемых скриптовНе проверенUse when opening or updating a pull request from the harness (Conductor or Monolith, /pr, /create-pull-request, /ship, or git-specialist). Produces the…
от fmflurry★ 173 звезды на GitHubОб этом скилле
Visual report for a pull request
why-not-tooled: the diagram's content is a judgment about this diff. The section's presence is tooled. .claude/hooks/pr-visual-report.sh blocks a gh or az pull-request body that lacks it, and agent-harness pr-report-check checks a body before a host PR tool.
Every pull request the harness opens or updates includes one show-me report, unless the skip below applies. Conductor and Monolith share this skill. OpenCode runs the hook before bash. Claude Code runs it as a PreToolUse hook. Cursor runs the plugin copy.
Produce it
- Run
agent-harness kpi featurebefore rendering the HTML. Conductor and Monolith both do this. Add--branchor--prwhen the report is not for the current branch. The command writes a sanitiseddocs/pr-reports/<branch-slug>.metrics.json(repo, branch, and the PR number once known). It has wall time, active time, sessions per host, tools, skills, calls per agent, tool failures and durations, guard blocks, review and fix rounds, and tokens. Tokens aren/awhen the host did not send them. The file has no prompts, arguments, or absolute paths. - Write one self-contained HTML file. Follow the
show-meskill: no network assets, the cream default (#FAF6EE, soft cards, system serif) unless the change is about that product's own colors, real names from this change, at least one@mediabreakpoint, and the smallest diagram, infographic, or statechart that explains the change. Cover the before/after or the flow, the main files, the test results, and the risks. - Run
agent-harness pr-report <html>. It reads the metrics file when present, inserts a Metrics panel into the HTML, and writesdocs/pr-reports/<branch-slug>.html,.png, and.metrics.json, replacing/in the branch name with-. When/opt/cursor/artifactsis writable, orPR_REPORT_ARTIFACT_DIRis set, it also copies the files to<artifacts>/pr-reports/. - Commit the HTML, the PNG, and the metrics JSON on the PR branch before opening or updating the PR. Commit them before the local review when a review gate is on:
docs/pr-reports/is part of the reviewed diff. The outcome PNG underdocs/agent-reports/is a different file and stays exempt. - Push that commit, then run
agent-harness pr-report-links(add--slugwhen the report is not for the current branch; setPR_REPORT_HOSTwhen origin uses an SSH alias such asgithub-work). It prints the## Visual reportsection with absolute URLs pinned to the commit:https://<host>/<owner>/<repo>/blob/<sha>/docs/pr-reports/<branch-slug>.png?raw=trueand.html. Paste that section into the body. Never write a relativedocs/pr-reports/...link: GitHub resolves it against the PR or compare page, so it opens "There isn't anything to compare" and the image is broken. The hook rejects it forghandgh-*commands. Azure DevOps (az repos pr) is the exception:pr-report-linksrefuses Azure remotes, so keep the relative links there. A commit SHA stays reachable after a squash merge through the PR ref, so the links keep working. On a cloud agent, also embed<img alt="Visual report" src="/opt/cursor/artifacts/pr-reports/<branch-slug>.png">so the host uploads the artifact. Under that section, or as## Metrics, paste the small tablepr-report-linksprints.
## Visual report
- [x] Report: HTML and PNG committed, PNG embedded, HTML linked.

[HTML report](https://github.com/acme/app/blob/4f2c9e1d0b7a8c6e5f3d2a1b0c9e8d7f6a5b4c3d/docs/pr-reports/feat-example.html)
## Metrics
| Metric | Value |
| --- | --- |
| Wall | 12m |
| Active | 9m (gaps over 5m excluded) |
| Sessions | cursor 1, claude 0, opencode 0 |
| Tokens | n/a |
| Tool failures | 0 |
| Guard blocks | 0 |
| Review rounds | 1 |
| Fix rounds | 0 |
Status: complete
The numbers in the example are the shape. Paste the table from kpi feature or from pr-report, not these sample numbers.
Skip
A docs typo or a version bump only may skip the files. Check the skip line and write the reason after Reason:. Any other change needs the report. The hook allows the skip once the reason is at least a short phrase. It does not decide whether the diff is trivial.
## Visual report
- [x] Skip — trivial PR (docs typo or version bump only). Reason: version bump only, changelog heading.
Check
Before gh pr create, gh pr edit or gh pr new with a body, az repos pr create, az repos pr update with a description, or a host PR tool, run:
agent-harness pr-report-check --body-file <body.md>
Pass the body with --body-file or one quoted --body / --description. A command substitution in that argument is blocked. The hook reads the same rules and denies the command when the section is missing or incomplete. A title-only gh pr edit is left alone.
pr-report-check warns on
Установить pr-visual-report в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-visual-report?
Use when opening or updating a pull request from the harness (Conductor or Monolith, /pr, /create-pull-request, /ship, or git-specialist). Produces the show-me visual report and the ## Visual report section.
Как установить скилл pr-visual-report?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-visual-report запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic