commit
Selectively stages and commits only the changes related to the current session, skipping unrelated modifications.
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 dcouple/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:
Repo: dcouple/Pane
Selectively stages and commits only the changes related to the current session, skipping unrelated modifications.
Creates a reconciled implementation plan by combining a structured plan draft with a normalized intent brief and a PRP-style research dossier, then…
Have an interactive discussion about a topic, approach, or feature. Researches the codebase as needed, talks through options, and updates ./tmp/context.md with…
Executes an approved plan with one primary implementation stream by default, using bounded parallel sidecars only when the write scopes are truly disjoint.…
Investigates bugs through hypothesis-driven root cause analysis. Automatically invoked when the user reports a bug, error, broken behavior, or something not…
Commits changes grouped by done-plans, rebases main, runs build and quality gates, then creates or updates a PR. Replaces the commit command. Use when you're…