Merge main into alisha/refactor · Entire

Merge main into alisha/refactor

932a360·

alishakawaguchi·2mo ago·8 files·+367 added/-4 removed

Resolutions:

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Sessions

365164ad6988View transcript

Changes

8

what-happened

Explains what happened to a specific code block by tracing the latest change for a file line, range, or pasted snippet through git blame and Entire checkpoints.

Current behavior:

Examples:

search

Searches Entire checkpoint history and transcripts to find prior work by topic, repo, branch, author, or time window.


name: What Happened
description: >
Explain 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 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.

What Happened

Use this skill when the user wants a provenance-focused explanation for a code block.

Supported inputs:

Goal

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.

Rules

  1. Do not guess about file contents or line numbers. Resolve the exact target lines before explaining anything.
  2. Use the installed entire binary from PATH, not ./entire from the current repo.
  3. Prefer git blame for provenance and entire explain --commit for transcript-backed context. Do not use experimental entire why for this skill.
  4. Use this skill for latest-change provenance on a specific block. For broad original intent of a symbol, file, or feature, prefer the explain skill.
  5. Do not manually hunt through .git/entire-sessions/ or raw transcript files for commit provenance. If entire explain cannot provide transcript context, report the exact missing or unavailable state.
  6. If multiple blame blocks match, include all distinct ranges. Deduplicate commit hashes before running entire 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.
  7. Distinguish these states explicitly:
    • no checkpoint is referenced for the commit
    • a checkpoint is referenced but is unavailable locally or remotely
    • a checkpoint is available, but full transcript expansion failed and raw transcript expansion was not explicitly requested
    • Entire transcript lookup failed (the entire explain command itself errored)
    • the code is untracked, uncommitted, or otherwise has no committed history
    • any other provenance command fails after the target code was resolved
  8. For every resolved code block, include either checkpoint-backed history or a fallback explanation of what the current code does. Label fallback explanations as "not checkpoint-backed" and do not imply intent or historical rationale from checkpoints.
  9. Treat entire 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.
  10. Keep the final explanation concise and block-focused. Do not summarize unrelated parts of the file.

Response format

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.

Snippet guidance: