cartographer

cartographer is a skill for Claude Code from hamzaPixl/pixl-ai. It costs 36 tokens per session (1,347 once invoked), scanned A, original, MIT.

A change-analysis skill that groups a pull request and local working-tree changes into meaningful feature clusters. A pull request is a proposed set of changes for review before merging into a shared branch.

In plain words
What is it for?
It compares the current branch with its target branch, measures change volume, detects unrelated commits, explains how each change cluster works, and saves the analysis in CARTOGRAPH.MD at the repository root.
Why use it?
It makes large or mixed changes easier to review by explaining the purpose and boundaries of each coherent group. It also accounts for committed, staged, unstaged, and untracked changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pixl-crew plugin — 93 skills, 14 agents, 6 hooks shipped together

Good fit It compares the current branch with its target branch, measures change volume, detects unrelated commits, explains how each change cluster works, and saves the analysis in CARTOGRAPH.MD at the repository root.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzapixl/pixl-ai/cartographer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzaPixl/pixl-ai --skill cartographer
Clone the repo
git clone --depth 1 https://github.com/hamzaPixl/pixl-ai

Made for: Claude Code.

Or install pixl-crew, the plugin that ships this one along with the rest of its 93 skills, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cartographer

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/cartographer/github.svg)](https://agentmods.dev/skills/hamzapixl/pixl-ai/cartographer)
Your own site
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/cartographer"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/cartographer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cartographer

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/cartographer"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/cartographer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01347
Opus 5 $0.00018 $0.00674
Sonnet 5 $0.00007 $0.00269
Haiku 4.5 $0.00004 $0.00135

Measured 11d ago against content hash c09524149c35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cartographer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/crew/skills/cartographer/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cartographer

Overview

Produce an intent-first decomposition of a PR plus local working tree changes. Treat "major features" as behaviorally coherent change components, not just folders or file types, and explain why each component exists, how it is implemented, and what it changes.

Always include:

  • Committed branch diff churn.
  • Uncommitted local churn (staged, unstaged, and untracked files).
  • A persisted markdown report written to CARTOGRAPH.MD at the repository root.

Workflow

Step 1: Establish Analysis Scope

Resolve the base/head context first and use merge-base as the committed diff base.

TARGET_BRANCH="${1:-main}"
HEAD_REF=HEAD
BASE_REF=$(git merge-base "$TARGET_BRANCH" "$HEAD_REF")

Hitchhiker commit detection (CRITICAL): Before proceeding, check whether the branch contains commits from other PRs that were separately merged to the target branch.

ALL_COMMITS=$(git log --oneline "$TARGET_BRANCH..HEAD" | wc -l)
BRANCH_NAME=$(git branch --show-current)
PR_SHAS=$(gh pr list --head "$BRANCH_NAME" --json commits --jq '.[0].commits[].oid' 2>/dev/null)
PR_COMMIT_COUNT=$(echo "$PR_SHAS" | grep -c . 2>/dev/null || echo 0)

if [ -n "$PR_SHAS" ] && [ "$PR_COMMIT_COUNT" -lt "$ALL_COMMITS" ]; then
  echo "HITCHHIKER COMMITS DETECTED: $ALL_COMMITS on branch, $PR_COMMIT_COUNT in PR"
  PR_FILES=$(for sha in $PR_SHAS; do git diff-tree --no-commit-id --name-only -r "$sha"; done | sort -u)
fi

When hitchhiker commits are detected, scope the diff to PR files only. Otherwise use full BASE_REF..HEAD_REF.

Pull full file-level and hunk-level data:

# Committed branch range
git diff --numstat "$BASE_REF..$HEAD_REF"
git diff --name-status "$BASE_REF..$HEAD_REF"
git diff "$BASE_REF..$HEAD_REF"

# Local changes
git diff --numstat --cached
git diff --numstat
git diff --cached
git diff

# Untracked files
git ls-files --others --exclude-standard

Build one combined churn dataset: committed + staged + unstaged + untracked.

Step 2: Infer Intent and Implementation Signals

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 179 lines · 36 tokens per session scan A c09524149c35

Subscribe to this mod's changes

cartographer is a skill published in the GitHub repository hamzaPixl/pixl-ai (2 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 1,347 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.