---
name: recall
description: Find earlier Kompreni walkthroughs, and the lessons they recorded (library gotchas, patterns, techniques), for given files, a folder or a topic, and say how much the code has changed since each was written. Use before changing files in a repository that has Kompreni walkthroughs (a kompreni/walkthroughs/ folder), and when the user asks what earlier walkthroughs say, why some code is the way it is, or whether a problem has come up before ("have we hit this pandas issue before?", "what do the walkthroughs say about the upload code?"). Read-only; writes nothing.
argument-hint: "[file=<path or folder>]... [topic=<text>] [kind=gotcha|pattern|technique] [text=<text>] [lessons]"
---
# Kompreni: recall earlier walkthroughs
Walkthroughs written by `/kompreni:walkthrough` record how and why parts of the codebase changed, and what was learned along the way. This skill finds the ones that bear on the work at hand and says how far to trust each, given what has changed since. It writes nothing and edits no walkthrough.
`<explain>` below is the explain skill's folder: `${CLAUDE_PLUGIN_ROOT}/skills/explain` in a plugin install, otherwise the `explain` folder next to this skill's folder.
## 1. Arguments
`$ARGUMENTS` is optional `key=value` pairs, plus the bare word `lessons`.
| Arg | Notes |
|---|---|
| `file` | A repo-relative file or folder. Repeat it for several (`file=src/upload.py file=src/config.py`). Matches walkthroughs that covered that file, or any file in that folder |
| `topic` | Lessons whose topic contains this text, such as `pandas` or `git on Windows` |
| `kind` | Lessons of one kind: `gotcha`, `pattern` or `technique` |
| `text` | Text in a walkthrough's title, summary or focus, or in a lesson |
| `lessons` | List only the lessons, not the walkthroughs |
With no arguments: if you are about to change files, use those files as `file=`. Otherwise list every walkthrough.
## 2. Run the script
```
python <explain>/scripts/recall.py --repo . --json [--file <path>]... [--topic <text>] [--kind <kind>] [--text <text>] [--lessons]
```
- Exit status 1 means nothing matched. Say so in one line, such as "No earlier Kompreni walkthroughs cover `src/upload.py`.", and stop.
- If the JSON lists `skipped` files, name them: their front matter couldn't be read, so they may be relevant but weren't searched.
- If the script can't run (no Python, or the command is refused), search the repo yourself for `.qmd` and `.md` files whose front matter has `kind: walkthrough`, not only `kompreni/walkthroughs/`, since `out=` puts them elsewhere. Read their front matter, and say that freshness wasn't checked.
## 3. Read only what matters
Take the entries newest first, at most five. If there are more, say how many, and suggest a narrower `file=` or `topic=`.
<!-- ‹guest · 2026-12-02› -->
The JSON gives each entry's summary, files, lessons and freshness. Open the document only for what the question needs:
- the Overview;
- the "What changed" group about the matched files;
- "Decisions and alternatives", "Limitations and knock-on effects" and "Useful elsewhere".
Don't read whole code tours. When an entry has both a walkthrough and a code tour, read the walkthrough's prose.
## 4. Judge freshness
A walkthrough describes the code as it was at its `tip`. The script's `freshness.status` says how far that still holds:
| Status | Meaning | How to use it |
|---|---|---|
| `current` | No later commits touched its files | Probably still describes the code. Still check any specific claim you rely on |
| `changed` | Later commits touched its files (`commits_since`, per file with `file=`), or files were deleted or renamed (`exists: false`, `renamed_to`) | History, not the current state. Before relying on a claim about how the code works now, look at what changed since: `git log --oneline <tip>..HEAD -- <file>` |
| `landed` (a `landed` field beside `current` or `changed`) | Written before commit, or on a branch merged by squash or rebase, but the script found the commit where its code landed unchanged (`landed`, matched by the file hashes in `kompreni.blobs`) | Use it like `current` or `changed`, counted from that commit. For a walkthrough written before commit, suggest `/kompreni:seal`, which updates it |
| `dirty` | Written against uncommitted changes, and its code hasn't been found in a commit | As `changed`, and its code excerpts may never have been committed. `pending` lists files no commit has touched yet; `diverged` lists files committed with different contents, so the code changed after it was written |
| `unmerged` | Its tip isn't in the history of HEAD: an unmerged branch, or merged by squash or rebase, and its code hasn't been found at HEAD | The code it describes may not be what HEAD has. Check before relying on it |
| `foreign` | Its tip isn't in this repository at all | Its claims about code don't apply here. Its lessons about libraries and techniques may |
| `unknown` | Not a git repository, or no commits yet | Say freshness couldn't be checked |
## 5. Answer
Keep it short. For each relevant entry, give:
- a link to the document, its date and its one-line summary;
- its freshness, in plain words ("3 later commits have touched `src/upload.py` since");
- what it says that bears on the question or the task.
Then list the lessons that apply.
Rules:
- **A walkthrough is a claim as of its tip, not a fact about the current code.** Label what you take from one *(walkthrough `path`)*. Check it against the code before you rely on it, and say whether you did.
- **A lesson's topic may name a version** ("pandas 1.4"). Pass that on, and don't say it holds for other versions, or the version this project uses, unless you've checked.
- **When walkthroughs disagree**, prefer the newer one if it is `current`, and say that they disagree.
- **Never edit or delete a walkthrough**, even a stale one, and create no files. If one is badly out of date, say so, and suggest writing a new walkthrough when the next change to that code is made.
When you ran this yourself, before changing code, keep the answer to a few lines, then carry on with the task. Apply any gotcha that fits.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.