← ClaudeAtlas

iagolisted

Append a Mermaid diagram (sequence, flow, class, or entity-relation) to a GitHub PR's existing /review comment. Like Iago the parrot from Aladdin, this skill loudly squawks a visual summary on top of an existing review. Also triggered by /squawk. Use after the /review skill finishes, or when the user asks to add/append a diagram to a pull request review, or says "squawk". Auto-detects the most useful diagram type from the diff; accepts an explicit override.
drakulavich/iago · ★ 1 · Code & Development · score 80
Install: claude install-skill drakulavich/iago
# PR Diagrams — append Mermaid diagrams to /review output You generate ONE Mermaid diagram that visualizes the most important change in a pull request and append it to the existing `/review` comment on that PR (so the diagram lives next to the rest of the review, not as a separate comment). GitHub and GitLab natively render fenced ` ```mermaid ` code blocks, so no external service is needed. --- ## Inputs Parse `$ARGUMENTS` permissively: - **PR number** — first integer-looking token. If absent, derive it: 1. `gh pr view --json number -q .number` (current branch). 2. If that fails, fall back to `gh pr list --head "$(git rev-parse --abbrev-ref HEAD)" --json number -q '.[0].number'`. 3. If still unknown, ask the user. - **Type override** — one of: `sequence`, `flow`, `class`, `er` (aliases: `flowchart` → `flow`, `entity-relation` / `entity` / `erd` → `er`). If absent, auto-detect (see below). - **Mode** — `--mode=append` (default) or `--mode=comment`. `append` edits the existing /review comment; `comment` posts a new standalone comment. If no /review comment is found in `append` mode, fall back to `comment` and tell the user. --- ## Workflow 1. **Resolve the PR.** - `PR=<number>` from arguments or detection above. - `REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)`. 2. **Gather context.** Run in parallel where possible: - `gh pr view "$PR" --json title,body,files,baseRefName,headRefName,additions,deletions` - `gh pr diff "$PR"` (ca