Explains 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.
Install
npx skills add https://github.com/entireio/skills --skill explainSKILL.md
Explain Intent
Explain the intent behind source code by tracing it back to the original conversation where it was created. Works with:
- Functions — Why does this function exist? What problem was it solving?
- Files — What's the purpose of this file? What requirements drove its creation?
- Line changes — Why was this specific line added or modified?
Response Format
Begin the first response to this skill invocation with the line:
Entire Explain:
followed by a blank line, then the content.
- Apply the header to the first response of the invocation only. Do not re-print it on follow-up turns within the same invocation (e.g. after the user answers a clarifying question).
- Do not include the header on error or early-exit responses (e.g. "Entire CLI is required but not installed", "this file is not tracked by git", "no session transcript was found for this commit"). The header's presence should signal that the skill ran and produced real output.
Process
- Verify the
entireCLI is installed by runningentire version.- If the command is not found, stop and tell the user: "The Entire CLI is required but not installed. Install it from https://entire.io/docs/cli and try again."
- Use a Haiku agent to identify the commit that introduced the code via git blame or git log.
- If the file is not tracked by git, stop and tell the user: "This file is not tracked by git, so I can't trace its history."
- If git blame returns no useful result (e.g., the code is uncommitted), stop and tell the user: "This code hasn't been committed yet, so there's no history to trace."
- Use a Sonnet agent to read the session transcript via
entire checkpoint explain --no-pager --commit COMMIT_SHA.- If the command fails or returns no transcript, stop and tell the user: "No session transcript was found for this commit. It may have been created outside of an Entire session (e.g., a manual commit)."
Related skills
searchentireioUse 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 implementedsession-handoffentireioUse when the user wants to continue work from one agent in another agent, inspect recent sessions, or summarize a saved session or checkpoint for handoffsession-to-skillentireioUse when the user wants to turn one or more Entire-tracked sessions, checkpoints, or repeated agent workflows into a reusable agent skill.what-happenedentireioExplain why code looks the way it does by tracing the latest change for a file range or pasted snippet through `git blame` and deduplicated `entire checkpoint explain` lookups. Use when the user asks what happened, says "tell me why" about a code block, is confused about a section of code, asks "wtf is going on", "why is this like this", "why was this changed", or wants provenance for a specific file block.