/entire:what-happenedfrom entire
Traces the latest change for a file range or pasted snippet through git blame and checkpoint-backed explanations to show why code looks the way it does.
Ships in entire. 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.
Use this skill when the user wants a provenance-focused explanation for a code block.
Supported inputs:
path:linepath:start-endpath plus a pasted code snippet from that fileIf the user asks a vague provenance question without a file path, line range, or pasted snippet, ask for the target code and stop without running commands or using the header.
Find the most recent change blocks matching the user's target lines, list the matching commit hashes and checkpoint state, then summarize why each block was changed using the best available context. When checkpoint-backed context is unavailable, still explain what the current code does as an explicit fallback and clearly mark that explanation as not checkpoint-backed.
entire binary from PATH, not ./entire from the current repo.git blame for provenance and entire checkpoint explain --commit for transcript-backed context.
Do not use experimental entire why for this skill.explain skill..git/entire-sessions/ or raw transcript files for commit
provenance. If entire checkpoint explain cannot provide transcript context, report the exact
missing or unavailable state.entire checkpoint explain; run transcript lookups once per unique commit, not once
per range. Also deduplicate checkpoint IDs before expanding checkpoint transcripts; run
checkpoint expansion once per unique checkpoint, not once per commit or range.entire checkpoint explain command itself errored)entire checkpoint explain command output as intermediate source material for summarization.
Do not paste raw command output or full transcripts into the user response unless the user
explicitly asks for raw output. Include only short error excerpts when they help the user fix
a failed lookup.If the user did not provide a file path plus exact line/range or pasted snippet, ask them for
the target code and stop. Do not run commands or use the Entire What Happened: header.
If the user gave path:line or path:start-end, use that line or range directly and read
only that target from the file before explaining it. If the path does not exist, the file
cannot be read, or the line/range is outside the file, say so plainly and stop without using
the Entire What Happened: header.
If the user gave a path and a snippet:
grep -n -F -- "<distinctive snippet line>" "<path>"
start-end line numbers.Entire What Happened: header for this
unresolved-input response.Entire What Happened: header for this unresolved-input response.Only run blame after the target has been resolved to actual line numbers in the current file.
Do not run git blame -L against an unresolved pasted snippet, inferred nearby block, symbol
name, or approximate range.
Run:
git blame --porcelain -L <start>,<end> -- "<path>"
If the command fails because the file is untracked, mark the whole target range as an untracked file with no committed history, keep the exact snippet for that range, and continue to fallback code behavior analysis.
If blame reports an uncommitted pseudo-commit such as all zeroes or Not Committed Yet, mark
those ranges as local uncommitted changes and do not run entire checkpoint explain for them. If other
target ranges resolve to real commits, continue with those committed ranges.
Use the output to identify every blame block inside the target range. Group adjacent target lines that resolve to the same commit when they form one contiguous matched block. For each matching block, collect:
Collect the unique real commit SHAs across all matching blocks while preserving each distinct
range. Exclude untracked and local uncommitted pseudo-commits from this set. Build a map from
commit SHA to all target ranges blamed to that commit. Do not run entire checkpoint explain separately
for multiple ranges that share the same commit.
If the resolved target spans more than 5 unique real commits, stop before running entire explain. Report the matched ranges and ask the user to narrow the range or confirm the deeper
lookup. Do not use the Entire What Happened: header for this confirmation response.
Keep the exact snippets from the target-resolution read so the final answer can show users which code each provenance entry refers to. Only reread a matched block if the snippet for that range was not already captured.
For each unique commit SHA in that map, run exactly once:
entire checkpoint explain --commit <commit-sha> --no-pager
When there are multiple unique commits, run those independent commit lookups in parallel when the agent environment supports parallel tool calls.
Use this output to answer the question and identify the checkpoint state. Do not use
--search-all unless the user explicitly asks to widen a failed lookup; it removes branch/depth
limits and may be slow.
If this command fails, do not run extra commit metadata lookups and do not scan raw session files. Mark the range for fallback code behavior analysis and report that Entire transcript lookup failed. Include the command error only if it helps the user fix the issue, such as authentication or missing remote configuration.
If the commit view reveals a checkpoint ID but is still not enough to answer the user's question, collect the checkpoint ID for expansion. Deduplicate checkpoint IDs across all commit views before running checkpoint lookups; if several commits reference the same checkpoint, expand that checkpoint once and map the result back to every relevant range.
For each unique checkpoint ID that needs more detail, run:
entire checkpoint explain --checkpoint <checkpoint-id> --full --no-pager
Do not run raw transcript expansion automatically. If --full fails or is insufficient,
mark the affected ranges for current-code fallback analysis unless the user explicitly asked
for raw transcript detail. Only when explicitly requested, run:
entire checkpoint explain --checkpoint <checkpoint-id> --raw-transcript --no-pager
Use the collected output to answer:
Do not show the raw entire checkpoint explain output by default. Summarize only the relevant parts tied
to the target ranges.
If the commit has no checkpoint ID, use only the commit-level context returned by
entire checkpoint explain --commit for provenance and mark the range for fallback code behavior
analysis. Clearly state "no checkpoint-backed summary; no Entire checkpoint was referenced."
If a checkpoint ID is present but entire checkpoint explain --checkpoint cannot load it, keep the
checkpoint ID in the answer and say "checkpoint was referenced, but the checkpoint was
not available locally or remotely." Include the command error only if it helps the user fix
the issue, such as authentication or missing remote configuration.
If the checkpoint loads but --full fails, say that checkpoint metadata was available but
full transcript expansion failed. If raw transcript detail was not explicitly requested, say
it was not expanded automatically. Answer checkpoint-backed facts from the entire explain --commit output, and use current-code fallback analysis for anything that output
cannot support.
Map each unique commit explanation back to every target range blamed to that commit.
For any resolved range that falls into one of the states listed in Rule 7 where checkpoint-backed context is unavailable, still answer what the current code does.
Use only source-backed analysis:
grep -n -F to inspect direct call sites or definitions only when the block cannot be
understood from local context.Begin the first successful resolved-code response to this skill invocation with the line:
Entire What Happened:
followed by a blank line, then the content.
Allowed examples:
Tell me why: the blame points here.Tell me why: the diff left a trail.Tell me why: the context starts here.Start with a short provenance summary using one status per range from the states in Rule 7:
Entire What Happened:
Tell me why: the blame points here.
Matches
- <path>:<start>-<end> -> commit <sha> | checkpoint <id>
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> commit <sha> | no Entire checkpoint
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> commit <sha> | Entire transcript lookup failed
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> commit <sha> | checkpoint <id> unavailable
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> commit <sha> | checkpoint <id> metadata only, transcript expansion failed
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> local uncommitted changes | no committed history
```<language>
<matched code snippet>
```
- <path>:<start>-<end> -> untracked file | no committed history
```<language>
<matched code snippet>
```
For checkpoint-backed ranges, give one short section per distinct matching block:
Why
- <path>:<start>-<end>: <2-4 sentence explanation of why this block changed last time>
For ranges without checkpoint-backed context, use this separate section instead:
Current-code fallback (not checkpoint-backed)
- <path>:<start>-<end>: <2-4 sentence explanation of what the current code does, plus any
limits on what can be inferred without checkpoint history>
Snippet guidance:
When the input was a pasted snippet, include the resolved line range in the answer.
This skill should trigger for questions like:
Especially trigger when the user includes:
cmd/entire/cli/explain.go:103cmd/entire/cli/explain.go:103-107What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub entireio/skills --plugin entire12 skills in this plugin
/address-findingsAddress the review findings posted on an Entire trail: fetch the trail's open findings, fix the code, and resolve them on the trail. Use when the user gives a trail URL or number and asks to address, fix, or resolve its findings or review comments. Not for local diff review — that is the `review` skill.
/explainExplains the intent behind source code by finding original session transcripts. Use explain with a function, file, or line of code to understand why it exists./recallUse when the user describes a task and wants to know whether something similar has been done before, then turn the closest prior session into a task playbook. Triggers on phrases like "have we done this before", "recall how we did X", "find similar work", "any precedent for", "has anyone solved", "is there a template for", and "how did we do this last time"/replayUse when the user wants to step through a feature's checkpoints chronologically, pausing at each step to ask questions. Triggers on phrases like "replay <feature>", "walk me through how X was built", "show me the journey of", "step me through how Y was implemented", and "replay the last week"/reviewReview code changes on the current branch using checkpoint transcript context to understand developer intent before auditing the diff. Use when the user asks for a code review, wants to review branch changes, or asks to audit recent work before merging.
/searchUse when the user asks to research, investigate, look into, dig into, or search for anything — a topic, feature, bug, decision, or "what do we know about X". Invoke this as the FIRST action on such requests, before Glob, Grep, or Read: the answer is in Entire's recorded history (prompts, transcripts, and decisions, across repos), not in the local files, and a working copy that looks empty or unfamiliar is not a reason to skip it. Also use to find code across repositories ("where is X implemented in our other repos"). Not for grepping the current working copy on its own, and not for the current active session.
Other plugins' skills for the same job