/jointjs-claude-playground:diff-reviewfrom jointjs-claude-playground
Creates an interactive side-by-side HTML diff viewer with inline commenting, hunk approve/reject, and a JointJS call graph showing changed functions and their dependencies.
Ships in jointjs-claude-playground. 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.
A hybrid tool combining a traditional HTML diff viewer with a JointJS call/control-flow graph. Unlike the canvas-builder tools, there is no drag-and-drop sidebar — the JointJS graph is used purely for visualization of function relationships, not composition.
templates/diff-review.md — it defines the two-panel layout, hunk navigation, inline commenting system, approve/reject state, and JointJS call graph wiring<subject>-diff-review.html (e.g. auth-diff-review.html, payment-diff-review.html)open <filename>-diff-review.html after writing| Feature | Canvas Builder | Diff Review |
|---|---|---|
| JointJS purpose | Composition (drag nodes to build) | Visualization (show call graph) |
| Sidebar | Yes — draggable items | No |
| Pre-populated data | Example nodes/links via populateExample() | Hardcoded diff hunks + graph from user's code |
| Output panel | Generated artifact (SQL, regex, etc.) | Inline comments + approve/reject summary |
| Node creation | User drags from sidebar | Programmatic only |
[File tabs] [Hunk nav pills]
[Diff panel 55%] | [JointJS call graph 45%]
[Status bar: N hunks · N approved · N pending]
const hunkState = {}; // hunkId → 'pending' | 'approved' | 'rejected'
const lineComments = {}; // 'hunkId:lineIndex' → [comment strings]
paper.on('element:pointerclick', view => scrollToHunk(view.model.get('funcId')))⬡ funcName link calls selectGraphNode(funcId) which sets selRing visibilityFuncNode: function node with header (change type: added/modified/removed), selRing for selection highlight, border color by change typeCallEdge: directed link, dashed green stroke for isNew: true edges (new call sites introduced by the diff)change !== 'unchanged'Always include the router pills (Direct / Orthogonal / Manhattan / Metro / One Side) via buildToolbar() pattern from canvas-builder/templates/canvas-builder.md.
click line → show textarea → submit → push to lineComments[key] → re-render hunk
| Mistake | Fix |
|---|---|
Using mousemove/mouseup for pan | Use pointermove/pointerup (pointer events) |
| RAF animation for zoom | Direct paper.scale() call on wheel event |
Forgetting to call applyRouter() after buildGraph() | Always end buildGraph() with applyRouter(_activeRouter) |
| Inline comment textarea losing state on hunk re-render | Store comments in lineComments object, re-render from state |
| Graph and diff getting out of sync | Use a single funcId string as the shared key for both systems |
https://cdn.jsdelivr.net/npm/@joint/[email protected]/dist/joint.min.js[Diff panel 55%] | [JointJS graph 45%] + file tabs + hunk nav + status bar<subject>-diff-review.html — e.g. auth-diff-review.html, checkout-diff-review.htmlAlways include in every generated HTML file — no exceptions. Full spec with position-conflict rules is in the template (## Powered by JointJS badge), but reproduced here so it is never missed:
CSS (inside <style>):
#powered-by {
position: absolute; top: 12px; right: 12px; z-index: 10;
display: flex; align-items: center; gap: 7px;
background: #161b22cc; border: 1px solid #30363d; border-radius: 8px;
padding: 10px 20px 10px 18px; text-decoration: none;
color: #8b949e; font-size: 11px; font-weight: 500;
backdrop-filter: blur(6px);
transition: border-color 160ms, color 160ms, background 160ms;
}
#powered-by:hover { border-color: #58a6ff; color: #c9d1d9; background: #1c2d40cc; }
#powered-by img { margin-left: 5px; height: 18px; width: auto; opacity: 0.85; transition: opacity 160ms; }
#powered-by:hover img { opacity: 1; }
HTML (first child inside #graph-wrap / the JointJS canvas container):
<a id="powered-by" href="https://jointjs.com?utm_source=jointjs-claude-playground&utm_medium=diff-review&utm_campaign=claude-code" target="_blank" rel="noopener">
<span style="color:#6e7681;font-size:10px;letter-spacing:0.04em;text-transform:uppercase">Powered by</span>
<img src="https://cdn.prod.website-files.com/63061d4ee85b5a18644f221c/633045c1d726c7116dcbe582_JJS_logo.svg" alt="JointJS" />
</a>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/canvas-builderCreates any interactive visual builder playground — a drag-and-drop JointJS canvas where users compose nodes from a sidebar to build a structured output (SQL, regex, cron expression, decision tree, API spec, pipeline, etc.). Also handles diff/code-review tools with embedded JointJS call graphs. Use when the user asks to build an interactive builder, visual designer, drag-and-drop tool, canvas-based composer, or code reviewer for ANY domain. Examples: 'build a regex builder', 'build a regex explorer', 'build a JointJS builder playground', 'create a JointJS visual playground', 'create a visual API designer', 'make a data pipeline builder', 'build a SQL query builder', 'create a cron schedule builder', 'build a decision tree', 'create a rule engine', 'build a PR diff reviewer', 'create a GitHub Actions workflow builder', 'build a state machine', 'make a docker compose builder'./codemapCreates an interactive code map playground for any library or codebase architecture — an animated JointJS node graph with layer-colored nodes, typed connections, preset views, path highlighting, router toggle, and click-to-annotate notes. Use when the user asks to visualize a library's structure, explore a codebase architecture, map module relationships, or analyze a local project. Examples: 'create a code map for React', 'show me how Express.js is organized', 'build an architecture explorer for Vue 3', 'visualize the module relationships in JointJS', 'build a code map for this codebase', 'map out this project', 'explore the architecture of this repo', 'visualize this project structure', 'build a JointJS playground', 'create a JointJS code playground', 'jointjs playground'.jointjs-claude-playground@jointjs is listed by clientio/jointjs-claude-marketplace — review the source before installing
npx claudepluginhub clientio/jointjs-claude-marketplace --plugin jointjs-claude-playgroundOther plugins' skills for the same job