lets-look-back
Skill3 starsChanged 4 months agoMITView on GitHub
Use to find and recall what happened in earlier Claude Code sessions of this project — what was decided, said, or tried, and when — and to reopen the right session. Trigger on "what did we decide about X," "when did we…," "find the session where…," "we talked about this before," "look back," or when the user refers to earlier work that the project's records do not explain.
In this repository13 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- lets-alignSkill
- lets-blindspotSkill
- lets-catch-upSkill
- lets-checkSkill
- lets-explainSkill
- lets-exploreSkill
- lets-set-upSkill
- lets-shapeSkill
- lets-startSkill
- lets-statuslineSkill
- lets-trackSkill
- lets-wrapSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Run the search script that sits next to this file, with 2–4 words that matter.
- Very specific: line 20
Add --days N when the user names a time ("last week").
- Distinctive: line 21
No match: try a synonym or fewer words once or twice before you say that it is not there.
- Distinctive: line 38
When sessions disagree, say which one is newest and what changed.
- Distinctive: line 40
When the sessions do not hold the answer, say so plainly, with what you searched: the words, the number of sessions, and the date range.
- Distinctive: line 45
When the script says it could not read a folder, name that folder.
- Distinctive: line 50
When the answer is a decision that the project's decision log does not hold, offer to add it, with its date and the session id.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Look back
Find what happened in earlier sessions, and answer from what was actually said. Claude Code keeps each session as a file on this machine, but /resume searches only session names and first prompts. A decision made in the middle of a long session is hard to find without this skill.
1. Search
Run the search script that sits next to this file, with 2–4 words that matter. Use the user's own words first. The script needs Node.js: check with command -v node first.
node "${CLAUDE_SKILL_DIR}/scripts/search.mjs" <words> --exclude ${CLAUDE_SESSION_ID}--excludeskips this session, because it holds the question itself.- Add
--days Nwhen the user names a time ("last week"). Add--allwhen the user asks about another project, or when this project has no match and the topic can live elsewhere. - No match: try a synonym or fewer words once or twice before you say that it is not there.
- No Node.js: search the session files with
grep -l -i '<word>'instead. They are inprojects/<folder>/*.jsonlunder the config folder ($CLAUDE_CONFIG_DIR, else~/.claude);<folder>is the project path with every character that is not a letter or digit changed to-. Tell the user that this search is weaker: it matches raw lines, and it cannot skip this session or show the context.
2. Read before you answer
A match on the words is not yet the answer. For the 1–3 best matches, read what was said around them:
node "${CLAUDE_SKILL_DIR}/scripts/search.mjs" --show <session id> <words>A later session can change an earlier decision, so always read the newest match too.
3. Answer
- Lead with the answer: what was decided or done, and the date.
- Support it with 1–3 short quotes. Give each its date and who said it: "you" or "the agent". Quote the words; do not turn a suggestion into a decision.
- When sessions disagree, say which one is newest and what changed.
- Give the command that reopens the most useful session:
claude --resume <session id>. - When the sessions do not hold the answer, say so plainly, with what you searched: the words, the number of sessions, and the date range.
4. Say what the search cannot see
- It covers only the sessions still on disk, and the script prints how long Claude Code keeps them. When the user needs older history and the period is the default 30 days, say that the setting
cleanupPeriodDaysin~/.claude/settings.jsonkeeps sessions longer. Change it only after the user says yes. - When the script says it could not read a folder, name that folder.
- Session files are private. Quote only what the answer needs.
5. Keep it found
When the answer is a decision that the project's decision log does not hold, offer to add it, with its date and the session id. Then the next person who asks finds it without a search.
Next move: lets-catch-up when the user wants where things stand now, not history.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

