babysit-pr
Use after a pull request is open to watch its CI and review-bot comments until it is ready. Fixes real findings, replies with a…
Create Excalidraw diagram JSON files and PR visual overviews that make visual arguments. Use when the user wants to visualize workflows, architectures, concepts, pull request changes, before/after behavior, or a shareable explainer image for reviewers.
$ npx -y skills add greenfield-inc/Pane --skill excalidraw-pr-diagrams --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/excalidraw-pr-diagramsContext preview
The summary Claude sees to decide when to auto-load this skill.
Create Excalidraw diagram JSON files and PR visual overviews that make visual arguments. Use when the user wants to visualize workflows, architectures, concepts, pull request changes, before/after behavior, or a shareable explainer image for reviewers.
name: excalidraw-pr-diagrams description: Create Excalidraw diagram JSON files and PR visual overviews that make visual arguments. Use when the user wants to visualize workflows, architectures, concepts, pull request changes, before/after behavior, or a shareable explainer image for reviewers.
Generate `.excalidraw` JSON files that **argue visually**, not just display information.
**Setup:** If the user asks you to set up this skill (renderer, dependencies, etc.), see `README.md` for instructions.
When using this skill for pull request diagrams in Codex or Claude:
Default: PR images are **hosted, not committed**. Prefer a repository-owned durable asset surface. For GitHub PRs, discover and reuse a published, mutable, long-lived release such as `pr-assets`; inspect it with `gh release list` and `gh release view <tag> --json tagName,isDraft,isPrerelease,isImmutable,url,assets`. Do not create a new release per PR, and do not use an arbitrary temporary host when a suitable repository release exists.
If no suitable release exists, creating one dedicated long-lived `pr-assets` release is a separate hard stop requiring an exact grant such as `{"action":"create_release","repo":"owner/name","tag":"pr-assets"}`. Generic GitHub, PR, comment, or asset-upload authorization does not grant creation. Target the default branch, use `--latest=false`, and explain in its notes that it stores long-lived PR/QA images. If creation or upload is not authorized, keep the render local and prepare the exact release creation/upload commands, manifest, and marked PR Markdown; report durable publication as blocked instead of falling back to a temporary host.
Before upload, calculate the PNG SHA-256 and use a portable name such as `pr-<number>-<head-short-sha>-<content-sha12>-visual-overview.png`; use a branch slug before a PR number exists. Make publishing idempotent by inspecting existing assets first. Reuse an exact name only when its GitHub digest, or a downloaded hash when the digest is absent, matches. On different content, extend the digest or add a deterministic suffix and upload a new name. Never use `--clobber`: replacing an asset can silently change images embedded in older PRs.
After `gh release upload`, read back the release and asset metadata. Verify the tag, non-draft release, uploaded state, filename, size, digest when present, and browser download URL. Perform a direct GET of the bytes (authenticated for a private repository), compare SHA-256 and size with the local render, and verify the decoded file type or image magic so an HTML error page cannot pass.
Maintain a local `pr-assets-manifest.json` with repository, release tag and URL, PR number, head commit, source/render paths, asset name, SHA-256, size, asset API and browser URLs, upload-or-reuse status, timestamp, and content-verification result. Never put credentials or sensitive source material in the manifest.
Commit the image only when it is embedded in tracked docs (a README, design doc) that needs a stable in-repo path, then `.github/pr-assets/` or `docs/`, referenced with a blob URL + `?raw=1`, e.g. `https://github.com/<owner>/<repo>/blob/<branch>/.github/pr-assets/<image>.png?raw=1`. Keep `.excalidraw` sources outside the repo unless the user asks to track them.
Either way:
For PR diagrams, a simple pair of red/green cards is not acceptable. The diagram must teach the change in a way prose cannot.
Before drawing, identify the visual truth of the PR:
Every PR visual overview must include:
Use after a pull request is open to watch its CI and review-bot comments until it is ready. Fixes real findings, replies with a…
Use when a problem, idea, or change of intent is worth capturing as a long-form page, or the person asks to write it up. Never…
Use when the person reports broken behaviour or starts a session to file a bug. Reproduces and reports. Never fixes.
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening…
Explore the codebase to locate files, trace behavior, and document existing patterns with precise file references. Use when the…
Give a fresh agent something to walk through with zero context - a PR body, a landing page, a document, a process, instructions,…