/jongio-skills:difffrom jongio-skills
Opens a GitHub-style side-by-side diff viewer in a canvas or browser with inline review comments, file navigation, and review triage. Supports staged, unstaged, branch, and PR diffs.
Ships in jongio-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Render a GitHub-style side-by-side or unified diff in the native Copilot App diff canvas (or in a local browser across Copilot CLI, Claude Code, Cursor, Codex, and Windsurf) with collapsible file navigation, Primer light and dark themes, Viewed tracking, inline line comments, and Submit Review handoff back to the agent.
/diff [--staged|--cached|--unstaged|<ref>|<base>..<head>|<base>...<head>|pr [<num>]] [-- <paths...>]
/diff review
Resolve <skill-dir> from this SKILL.md directory.
diff canvas (when open_canvas is available, such as GitHub Copilot App):
diff appears in <canvases>.diff is missing (for example in a standalone skill installation outside the jongio-skills plugin), run node "<skill-dir>/scripts/setup.mjs" once to register ~/.copilot/extensions/diff/extension.mjs (it automatically skips registration when an installed plugin already provides diff), then call extensions_reload.open_canvas is unavailable, such as Copilot CLI, Claude Code, Cursor, Codex, or Windsurf):
Use node "<skill-dir>/scripts/cli.mjs", which drives the identical canvas-kit loopback server and durable userStore("diff", ...) review files in the user's system browser.diff canvas (open_canvas)open_canvas({ canvasId: "diff", instanceId: "diff-viewer", input }):
{} inside a Git workspace (or { cwd: "<repo-dir>" } from a coordinator session). Compares merge-base(<default-branch>, HEAD) against the working tree (including untracked non-ignored files) so committed branch changes, unstaged edits, and new untracked files all appear; falls back to HEAD working-tree changes or HEAD~1..HEAD when clean.{ spec: "--staged" } or { spec: "--unstaged" }.{ spec: "<ref>" }, { spec: "<base>..<head>" }, or { spec: "<base>...<head>" }.{ repo: "owner/repo", pr: <number> } (or { pr: <number> } inside a local checkout), with optional account: "<github-handle>" when targeting a repository under a secondary linked GitHub account.paths: ["src/router.ts", ...] (repo-relative) and/or focusFile: "src/router.ts".diff panel to a different target (another PR, branch, or repository), call open_canvas again with the same instanceId and the new input so canvas-kit switches domain slots cleanly without overwriting the prior target's review state.invoke_canvas_action:
get_review: inspect { title, branch, source, status, stats, viewedFiles, commentCount, comments } (without echoing raw diff hunks).check_updates: lightweight probe ({ ok: true, changed, sourceMode, checkedAt }) detecting Git working-tree/index/commit changes or GitHub PR head/base/state updates without reloading full diffs or mutating state.refresh: reload the current domain's Git or PR diff while preserving viewedFiles for unchanged files, automatically unmarking Viewed on files whose diff hunks changed, updating stale flags on inline comments, and auto-reopening addressed reviews if the diff changed.reopen_review: start a new review round ({ clearComments?: boolean }) after an addressed round.focus_file: scroll to { file, line? }.fileCount, +additions, -deletions) and remind them they can press Refresh (R) or enable Auto-refresh when context changes, and click Submit Review in the toolbar when finished leaving inline comments.scripts/cli.mjs)node "<skill-dir>/scripts/cli.mjs" serve --wait --json [--cwd "<dir>"] [--staged|--cached|--unstaged|--spec "<spec>"|pr [<num>]|--repo "owner/repo" --pr <num> [--account "<login>"]] [--focus "<file>"] [-- "<path>"...]
When the user clicks Submit Review in the browser, serve --wait --json automatically returns { ok: true, submitted: true, ...review } and shuts down the loopback server.node "<skill-dir>/scripts/cli.mjs" serve --json ... in a background/async shell session (so the loopback server stays alive until idle timeout while the user reviews), and later query or update durable reviews with:
node "<skill-dir>/scripts/cli.mjs" list --status pending --jsonnode "<skill-dir>/scripts/cli.mjs" review [--cwd "<repo-dir>"] [--domain "<domainId>" | target flags] --jsonnode "<skill-dir>/scripts/cli.mjs" address [--cwd "<repo-dir>"] [--domain "<domainId>" | target flags] --jsonnode "<skill-dir>/scripts/cli.mjs" reopen [--clear-comments] [--cwd "<repo-dir>"] [--domain "<domainId>" | target flags] --json-- before pathspecs, and omit --print-url unless a local harness browser tool explicitly needs the loopback URL; never echo ?capability= tokens into transcripts, logs, or PR comments./diff review or Submit Review)invoke_canvas_action({ instanceId: "<instanceId>", actionName: "get_review", input: {} }) (defaulting instanceId to "diff-viewer" when unnamed).serve --wait --json did not already return the submitted payload, run node "<skill-dir>/scripts/cli.mjs" list --status pending --json and node "<skill-dir>/scripts/cli.mjs" review --domain "<domainId>" --json (adding --cwd "<repo-dir>" for local Git reviews so stale: true anchors reconcile live against current hunks).file, line, side, stale flag, and body:
stale: true, where the anchored line changed or disappeared after a refresh) explicitly rather than discarding them silently.invoke_canvas_action({ instanceId: "diff-viewer", actionName: "refresh", input: {} })) when running in Copilot App if local working-tree diffs changed.invoke_canvas_action({ instanceId: "diff-viewer", actionName: "mark_addressed", input: {} }) (or node "<skill-dir>/scripts/cli.mjs" address [--cwd "<repo-dir>"] --domain "<domainId>" --json).diff canvas and scripts/cli.mjs run with requireCapability: true on 127.0.0.1, render all filenames, diff lines, and comments as Preact text nodes (never innerHTML), auto-collapse lockfiles and large single-file diffs (> 600 changed lines) until expanded, disable Git fsmonitor/ext-diff/textconv helpers, validate browser URLs strictly against http://127.0.0.1:<port>/?capability=<hex> with shell: false, and reject leading-dash ref or pathspec injection. Never log or publish capability URLs.open_canvas({ canvasId: "diff", ... }) (in Copilot App) or node "<skill-dir>/scripts/cli.mjs" serve (in CLI harnesses) loads the requested local Git diff or GitHub pull request diff (gh pr diff) accurately, including blank +/- lines, renames, and uncommitted branch edits in default mode.R shortcut) with live context-change banner and draft-safe Auto-refresh, Split/Unified toggle, Wrap toggle, file filter, collapsible file tree, auto-collapsed lockfiles/large files, smart per-file Viewed checkboxes (auto-cleared when a file's hunks change), inline line comments, and Submit Review agent handoff.get_review (or cli.mjs review), flags stale: true anchors explicitly, verifies claims against repository code before editing, runs targeted validation, and marks the review addressed only when complete.LICENSE (opens in a new tab)README.md (opens in a new tab)com.github.copilot/extensions/diff/extension.mjs (opens in a new tab)evals/diff/eval.yaml (opens in a new tab)evals/diff/fixtures/open-and-canvas-routing.md (opens in a new tab)evals/diff/fixtures/prompt-injection-in-diff-and-comments.md (opens in a new tab)evals/diff/fixtures/review-triage-and-stale-anchors.md (opens in a new tab)package-lock.json (opens in a new tab)package.json (opens in a new tab)runtime/canvas-kit/core-client.mjs (opens in a new tab)runtime/canvas-kit/format.mjs (opens in a new tab)runtime/canvas-kit/icons.mjs (opens in a new tab)runtime/canvas-kit/server.mjs (opens in a new tab)runtime/canvas-kit/storage.mjs (opens in a new tab)runtime/canvas-kit/theme.css (opens in a new tab)runtime/canvas-kit/validate.mjs (opens in a new tab)runtime/canvas-kit/vendor/lucide.mjs (opens in a new tab)runtime/canvas-kit/vendor/preact-htm-standalone.mjs (opens in a new tab)runtime/canvas-kit/version.mjs (opens in a new tab)runtime/canvas.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
diff-viewer, code-review, git-diff, visual-diff, pull-request-review
28 skills in this plugin
/backlog-groom**WORKFLOW SKILL** - Groom GitHub backlogs across issue and source repositories, with or without Projects, using scoped evidence and approved changes. USE FOR: backlog-groom, groom backlog, triage GitHub issues, reconcile backlog, organize GitHub Project, audit delivery readiness. DO NOT USE FOR: implementing issues (use go), PR delivery (use pr), creating skills (use create-skill), dependency maintenance (use deps-doctor), Git cleanup (use git-tidy)./ci-doctor**WORKFLOW SKILL** - Diagnose, check, and optimize GitHub Actions workflows with stateless ETag-cached checkups, main failure root-cause repair in isolated worktrees, and workflow cost/security hardening. USE FOR: ci-doctor, ci health check, diagnose main CI failures, repair broken GitHub Actions builds, profile slow CI steps, harvest workflow flakes, harden and optimize GitHub Actions workflows. DO NOT USE FOR: single pull request delivery without workflow diagnosis (use pr), implementing a feature issue end to end (use go), standalone test suite audits without GitHub Actions checks (use test-doctor)./create-canvas-appBuild a GitHub Copilot App canvas extension the right way, fast. Use when the user wants to create, scaffold, or improve an interactive canvas (a side-panel UI the agent can open and drive) - dashboards, editors, trackers, boards, document/preview surfaces. Provides a no-build Preact + htm kit with live SSE state, durable per-user storage, Primer theming, and the official GitHub Lucide icon set, plus a generator that stamps a working canvas in one command. Do NOT use for non-canvas extensions (plain agent tools) or for shipping web apps unrelated to Copilot canvases./create-gh-pages-siteScaffold a working GitHub Pages website from a vetted template and wire it to deploy automatically. Use when the user wants to create, scaffold, or publish a site on GitHub Pages: a reviewable VitePress specification, a static page, an Astro or Eleventy site, a React (Vite) SPA, or a Jekyll site. Picks the right template, injects the correct base path for the target repo (the #1 thing people get wrong), adds the official GitHub Actions Pages deploy workflow, and sets it up in the user's current repo by default or a new one if asked. Does not stop at demo content: it digests the target repo (README, manifests, entry points, docs) and authors a site about that repo (CLI reference, API/usage page, feature tour, or catalog) with labeled image placeholders the user swaps in. Do NOT use for non-Pages hosting (Vercel/Netlify/Azure), deploying an existing app without a Pages target, or plain web pages unrelated to GitHub Pages./create-session-board-canvasOpen and maintain a live canvas for the current session's plan, kanban tasks, primary/subagent team, progress, blockers, owned PRs/issues, head-pinned CI, and delivery status, with opt-in cross-session project rollups and an operator attention inbox. USE FOR: create a canvas that shows session progress, session board canvas, session kanban, show session tasks and agents, show session PRs and CI in a canvas, go progress board, project status board, all sessions board, session attention inbox. DO NOT USE FOR: generic canvas apps (use create-canvas-app), footer pill management (use session-statusline), implementation workflow (use go)./create-skill**WORKFLOW SKILL** - Create and register a complete portable agent skill in a managed skills-repo.config.json repository or an existing skills repository. Produces focused instructions, documentation, deterministic tests, Vally evals, locked tooling, registration, and optional validated thumbnail art. USE FOR: create-skill, create a skill, add an agent skill, scaffold a portable skill, register a skill, add skill to managed repo, create skill in existing repo, generate an example skill from a fixture, add skill thumbnail art. DO NOT USE FOR: scaffolding a new marketplace collection from scratch (use create-skills-repo), editing one existing skill instruction without registration work (use skill-authoring), creating an agent persona.npx claudepluginhub jongio/skills --plugin jongio-skillsOther plugins' skills for the same job