wrap
Skill1 starsChanged 5 days agoMITView on GitHub
Close the session in one word: writes the lessons note in the /wiki:ll format and files it with one script call (notes index, log, the project's state note, commit), pushes where the project's rules say, rebuilds the search index only after a large import, then gives a pasteable prompt for the next chat and the budget report. Use when the user ends the work, in any wording (en): wrap up, wrap, that's it, we're done, end of session, close the session, digest this chat, finish. (ru): итог, финиш, подведи итог, конец, закрываем, сворачиваемся, закругляемся, ну всё, на сегодня всё, переварить чат, переварить в вики. (uk): підсумок, кінець, закриваємо, згортаємось, на сьогодні все. Not for ending a single step inside ongoing work.
- Commits and pushes
46 other projects use a version of this.
Adopted by
Most recently taken up by
- mag123c/toktracktheir own version, first seen Nov 29, 2026
- phahadek/claude-orchestratortheir own version, first seen Nov 19, 2026
- odakin/claude-configtheir own version, first seen Nov 15, 2026
- fjwood69/moritheir own version, first seen Nov 10, 2026
- rhasselle-oddball/claude-skillstheir own version, first seen Nov 8, 2026
- jolleyDesign/claude-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use start, update and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 5 projects that use this
AnthropicSkillupdate
Sync tasks and refresh memory from your current activity. Use when pulling new assignments from your project tracker into TASKS.md, triaging stale or overdue tasks, filling memory gaps for unknown people or projects, or running a comprehensive scan to catch todos buried in chat and email.
Also in 3 projects that use this
LangChainSkillremember
Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.
Also in 3 projects that use this
termdockSkillrecall
Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.
Also in 3 projects that use this
Microsoft AzureSkillbuild
Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 7 projects that use this
- +1 more from anthropics
Other versions46 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 46
- team-attention/stanford-cs146s-kr★ 294same name
- egregore-labs/egregore★ 293same name
- mag123c/toktrack★ 195same name
- neurofoo/agent-skills★ 111same name
- lsnackerman/raw-clauding-skills★ 45same name
- fjwood69/mori★ 32same name
- YahyaLendani/opus-tuner-claude-skill★ 14same name
- jackjin1997/ClawForge★ 12same name
- nicodiansk/turbocharge★ 5same name
- nicodiansk/turboflow★ 5same name
36 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- departmentSkill
- foremanSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Do not look for the wiki, read _index.md, log.md or the state note, or read a file to edit it: the script does that.
- Distinctive: line 31
If the session produced nothing worth keeping (a lookup, a short answer), say so in one line and only run the budget report (step 2, last …
- Very specific: line 36
Write <wiki root>/raw/notes/YYYY-MM-DD-ll-<slug>.md with one Write.
- Very specific: line 43
Only what a later session would otherwise rediscover: a trick that worked, a trap with its fix, a measured number.
“Common” is measured: kept by at least 6 in 10 of the 40 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wrap (close the session)
One word from the user replaces the end-of-session checklist. Only reading this conversation needs the model; the rest is one script call. A closing costs the number of model turns times the context size (at 250k tokens every turn re-reads the whole session), so the target is three turns:
- one
Write: the lessons note (and a memory file in the same turn, if any); - one
Bash: file, commit, push, index and budget, chained; - the report.
Do not look for the wiki, read _index.md, log.md or the state note, or read a
file to edit it: the script does that. Read something only when a step fails.
0. Is it really the end?
The trigger words are common ("ну всё", "конец", "that's it"). Treat the message as a wrap only when it closes the work, not when it closes one step, voices frustration, or is part of a sentence about something else. If in doubt, ask one short question in the user's language ("Закрываем сессию: уроки в вики, коммит, промпт на следующий чат?") and wait. A bare trigger after finished work needs no question.
If the session produced nothing worth keeping (a lookup, a short answer), say so in one line and only run the budget report (step 2, last command), then step 3.
1. Turn 1: the lessons note
Write <wiki root>/raw/notes/YYYY-MM-DD-ll-<slug>.md with one Write. The wiki
root and its rules (language, .local.md, confidentiality) come from the
project's CLAUDE.md, which is already in context. This replaces /wiki:ll:
the same note format, without its search and filing turns.
- Topic: where the session's work belongs. Work across topics: one note per topic, all in this turn. No topic fits: ask.
- Only what a later session would otherwise rediscover: a trick that worked, a
trap with its fix, a measured number. Not a retelling of the chat. Usually 2–7
lessons; none is a valid result (then no note, go to step 2 without
ll_file.py). - A lesson never carries secrets; the audit hook refuses the
Writeif it does. - The whole transcript is saved only on request (
/wiki:sessionpromote).
---
title: "Lessons Learned: <session theme> (session <id>)"
type: notes
source: session
ingested: YYYY-MM-DD
authors: [<user>, Claude Code]
source_date: YYYY-MM-DD
tags: [lessons-learned, <topic tags>]
lesson_kind: lessons-learned
lesson_count: N
category: notes
confidence: high
summary: "<N lessons, one clause each>"
---
# Lessons Learned: <session theme>
> Extracted from session <id> on YYYY-MM-DD. <One sentence of scope.>
## Lesson 1: <title>
**Category**: gotcha | pattern | rule | discovery | correction
**Context**: <what was being done>
**Symptom**: <the error or failure, exact message>
**Root cause**: <why>
**Fix**: <what was done>
**Rule**: <one sentence that holds beyond this case>Quote every free-text frontmatter value. lesson_count equals the number of
## Lesson N headings. <id> is the first 8 characters of the session id (the
budget report prints it); drop (session <id>) when unknown.
Durable facts about the user or how they want to work go to memory, as the memory rules say, not into the wiki: write the memory file in this same turn; its index line is appended in step 2.
A lesson that makes a wiki article wrong is fixed in the article only when the
claim is wrong now (extra turns), and counted with --articles M; anything else
waits for the next compile.
2. Turn 2: one Bash call
<kit> is the kit path the project's CLAUDE.md names, else
$(cd -P <this skill's folder>/../.. && pwd). Chain with ; so the budget report
prints even when a step fails:
K=<kit>/scripts
python3 -I $K/ll_file.py <note> --apply --commit --co-author "<the session's Co-Authored-By value>" \
--state "<done, with commit ids>" --state "<verified, how>" --state "<open>" \
[--state-section "<heading>"] [--articles M] [--push];
[printf '%s\n' '- [Title](file.md) — hook' >> <memory dir>/MEMORY.md;]
[git -C <repo> add <own paths> && git -C <repo> commit -m "<op>: …" [&& git -C <repo> push];]
[nohup python3 -I $K/search.py index <hub> > ~/.cache/wiki-kit/index.log 2>&1 &]
<the project's usage report, else: python3 -I $K/claude_usage.py --session last brief>ll_file.pyadds the note's row toraw/notes/_index.mdand its line to the wiki'slog.md, appends each--statebullet to the last##section of the hubREADME.md(--state-sectionnames or creates a section,--readmeanother file), checks the note and the bullets with theraw_check.pyrules (exit 2, nothing written), and commits only these files asll: <topic> — N lessons: <theme>. What is already there is not added again. Without--applyit prints the plan.- State bullets: what was done (with commit ids), what was verified and how,
what is still open. Close an item only with its evidence. No
--statewhen the session did not change the state. - Other repositories the session wrote to and left uncommitted: commit them in the same call, by explicit paths of this session's files (another session may have drafts there), following the project's git rules and attribution lines.
--pushandgit pushonly where the project or memory says to push (for example the kit itself). A pre-push or leak check that refuses: fix or ask, never--no-verify.- The search index only when the session added more than a few dozen files to a
wiki;
search.py queryrefreshes changed files by itself.
3. Turn 3: the report
Short, in the user's language: lessons filed (topic, file, count), state updated, commits per repository (pushed or local), index (skipped or started), then:
- Next-chat prompt: a fenced block the user can paste into a new chat as is: goal, state with commit ids and paths, the first concrete step, what not to redo. No placeholders. If nothing is pending, say so instead.
- Budget: the usage report's output from step 2 (if it failed, say so). Its
last answer ≈ $…is the cost of this closing. - One line: the session can be cleared (
/clear) or a new chat started.
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.

