/contree:diff-for-humansfrom contree
Generates a single technical image explaining the current git diff (or a specified change) using OpenAI's gpt-image-2, foregrounding contracts, databases, behaviour, and test trees.
Ships in contree. 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.
None: SKILL.md is the whole skill.
Turns the current change into one image — a picture of what this diff does, made legible to a human — using OpenAI's gpt-image-2 model. The image is technical, not decorative: it shows the concrete elements the change touches (contracts, databases, behaviour, test trees), not an abstract metaphor. Invoked on demand; nothing fires automatically.
/diff-for-humans.Work out what to depict before reading it. Rely on natural language, not on a fixed git boundary:
Gather that change as a diff. For the working tree plus any new untracked files (the common case):
CHANGE=$(git diff HEAD; git ls-files --others --exclude-standard | while read -r f; do git diff --no-index -- /dev/null "$f" || true; done)
For a wider grouping spanning several trunk-sync commits, diff the appropriate range instead. If there are no non-trivial changes to depict, say so and stop — there is nothing to depict.
The image is an editorial choice, not a transcription of the diff. Decide what to depict from four inputs:
Call OpenAI's images generations API with the gpt-image-2 model (pinned id gpt-image-2-2026-04-21), authenticated with OPENAI_API_KEY. Write a prompt that captures your step-2 decisions. gpt-image-2 always returns base64 in data[0].b64_json — do not send a response_format parameter, the API rejects it. Decode the base64 and save the returned image as a .png file in the project.
set -euo pipefail
OPENAI_BASE_URL="${OPENAI_BASE_URL:-https://api.openai.com/v1}"
OUTPUT_IMAGE="diff.png"
TEMP_IMAGE=$(mktemp "${OUTPUT_IMAGE}.XXXXXX")
trap 'rm -f "$TEMP_IMAGE"' EXIT
RESPONSE=$(curl -sS -f -X POST "$OPENAI_BASE_URL/images/generations" \
-H "Authorization: Bearer ${OPENAI_API_KEY:?OPENAI_API_KEY is required}" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg prompt "$PROMPT" '{
model: "gpt-image-2-2026-04-21",
prompt: $prompt,
size: "1024x1024",
quality: "high"
}')")
IMAGE_DATA=$(printf '%s' "$RESPONSE" | jq -er '.data[0].b64_json | select(type == "string" and length > 0)')
printf '%s' "$IMAGE_DATA" | base64 --decode > "$TEMP_IMAGE"
[ -s "$TEMP_IMAGE" ]
mv "$TEMP_IMAGE" "$OUTPUT_IMAGE"
trap - EXIT
Show the saved image's path and surface the choices you made for the user to review: what you depicted, which details you foregrounded and which you dropped, and the audience you pitched it at. The user reviews — they may ask you to redraw with different choices.
If the gpt-image-2 request fails — missing OPENAI_API_KEY, an API error or non-2xx response, empty data, invalid base64, or an empty decoded image — surface the failure as an error and stop. Never fabricate an image, leave a partial output file, write a placeholder file, or report success you did not get. A missing image is an honest outcome; a fake one is not.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/bootstrap-test-treesCompose mental-model and test-tree setup, then implement every existing-project tree through a second subagent wave. TRIGGER when: the operator asks to bootstrap, backfill, discover, or implement a project's existing behaviour as test trees and tests./changeSet expected behaviour by writing or modifying test trees before code changes. TRIGGER when: the user describes a feature, capability, behaviour change, removal, or modification they want — even loosely (e.g. 'I want X', 'let's add Y', 'can we make it do Z', 'change how X works', 'remove this behaviour')./change-without-meRun the complete Contree arc from idea to independently reviewed working software without routine operator phase transitions: change sets the contract, sync audits it, tdd closes every gap, mutation and completion sync prove the result, and second-opinion findings are repaired before completion. TRIGGER when: the user wants the full workflow, asks to take an idea through implementation, asks to make the project complete, or wants change/sync/tdd handled end to end.Other plugins' skills for the same job
npx claudepluginhub elimydlarz/claude-code-plugins --plugin contree