From cartographer
Visualize a pull request on the Cartographer map — see which entities are affected, the blast radius, and the review path. Use when user says "review pr", "review pull request", or "/cartographer review-pr".
How this skill is triggered — by the user, by Claude, or both
Slash command
/cartographer:review-propusThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Overlay a pull request onto the existing world-model so the user can
Overlay a pull request onto the existing world-model so the user can spatially understand what the PR changes and what it affects.
Prerequisite: The codebase must already have a world-model. If
cartographer_get_summary returns 0 entities, tell the user to run
/cartographer analyze first.
Call cartographer_set_project with the project root path.
Use $ARGUMENTS as the PR identifier (number, branch name, or URL).
gh pr diff $ARGUMENTS --name-only
This gives you the list of changed files. If the user didn't provide a PR number, check if there's a current branch with an open PR:
gh pr view --json number,title,headRefName
For each changed file (or the most important ones if there are many):
gh pr diff $ARGUMENTS
Understand what actually changed — not just which files, but what the changes DO.
Call cartographer_query to find entities in the model. Match by:
If a changed file doesn't match any entity in the model, note it — the model may need updating.
Order the affected entities from primary change to downstream impact:
Use kind: "changeset" and changeType on each step so the map renders
change-type indicators (green=added, amber=modified, red=removed, gray=affected).
cartographer_write_slice(
name: "PR #123: Add auth middleware",
description: "Adds authentication checks before write operations",
kind: "changeset",
steps: [
{ entityId: "capability:requireAuth", changeType: "added", label: "new auth middleware" },
{ entityId: "capability:registerTools", changeType: "modified", label: "added auth check before handler" },
{ entityId: "entity:WorldModelStore", changeType: "affected", label: "writes now require auth" },
{ entityId: "capability:broadcast", changeType: "affected", label: "receives only authed writes" }
],
evidence: {
anchors: [{ filePath: "...", lineStart: ..., lineEnd: ..., snippet: "..." }],
confidence: "proven",
provenance: "deterministic",
reasoning: "Matched from git diff"
}
)
Set changeType on each step:
added — new entity introduced by the PR (green indicator)modified — existing entity changed (amber indicator)removed — entity deleted by the PR (red indicator, strikethrough)affected — not changed directly but connected to something that was (gray indicator)cartographer_open_map
Tell the user:
Give the user a brief summary:
npx claudepluginhub miltonian/cartographer --plugin cartographerReviews PRs or branch diffs using knowledge graph for structural context, blast-radius analysis, risk assessment, test coverage, and structured file-by-file output.
Reviews pull requests using OntoIndex: maps diff to affected execution flows, analyzes blast radius, assesses risk and test coverage.
Reviews pull requests by analyzing diffs with GitNexus: detects affected flows/symbols, computes blast radius, checks test coverage, and assesses merge risk.