add explain skill · Entire
add explain skill
8a0ac12→main·
alishakawaguchi·3mo ago·1 file·+22 added/-0 removed
Changes
1
plugins/entire/skills/explain
ASKILL.md+22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
description: 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.
argument-hint: <function, file, or line>
---
# 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?
## Process
1. Verify the `entire` CLI is installed by running `entire 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."
2. 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."
3. Use a Sonnet agent to read the session transcript via `entire 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)."
No newline at end of file