Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add skeggsguy/adventure-party --skill long-restgit clone --depth 1 https://github.com/skeggsguy/adventure-partyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/skeggsguy/adventure-party/long-rest)<a href="https://agentmods.dev/skills/skeggsguy/adventure-party/long-rest"><img src="https://agentmods.dev/badge/skills/skeggsguy/adventure-party/long-rest/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/skeggsguy/adventure-party/long-rest"><img src="https://agentmods.dev/badge/skills/skeggsguy/adventure-party/long-rest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.02267 |
| Opus 5.5 | $0.00032 | $0.00907 |
| Sonnet 5.5 | $0.00016 | $0.00453 |
| Haiku 4.5 | $0.00008 | $0.00227 |
Grade A, and why
long-rest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The Long Rest
.claude/learnings.md is an inbox, not an archive: entries land there
un-curated as sessions surface them. The Long Rest is where the party
trains — the inbox is distilled into the curated files the party reads at
their triggers, then emptied, so a leveled-up party is literally a
better-informed party. It is also the only thing that bounds those files:
distilling grows them, so the same ceremony compacts what has outgrown its
budget and reports what they now cost to read.
Before anything: state the plain reading and the price
Open with (in your own words, both halves mandatory):
A Long Rest distills your project's learnings inbox into the curated experience files (its memory), shortens entries that have outgrown their budget (their full text is kept in the archive), archives the processed entries, records the level in the chronicle, and tells you what the curated files now cost to read. It uses real tokens and edits
.claude/architecture.md/gotchas.md/decisions.md,.claude/learnings.md,.claude/learnings-archive.mdandCHRONICLE.md. Proceed?
Wait for a yes. If the inbox is empty or nearly so, say that honestly and ask whether to rest anyway — a small rest is allowed, it just distills less.
Count the inbox without reading it: ^## [0-9]{4}- matches in
.claude/learnings.md, via whatever search tool the session has (Grep in
count mode, or grep -c). Never read the whole log just to count it.
The ceremony — order matters
The chronicle entry is written last and the inbox's archive move happens with it: the chronicle is the atomic commit-record of the whole rest. If the ceremony is aborted at any earlier step the inbox is still intact, so the next rest simply redoes the same work — every earlier step is idempotent by design, the compact step's own archive appends included.
- Scope. Every entry in
.claude/learnings.md. One exception, for projects carried over from the watermark era: ifCHRONICLE.mdcontains a*Distilled through YYYY-MM-DD.*line, entries dated on or before the last such date were already distilled by an earlier rest — archive them in step 6 without reading or re-distilling them, and distill only what is dated after it. - Distill. For each in-scope entry, decide where its durable core
belongs —
architecture.md,gotchas.md,decisions.md— and add it there in that file's format and within its length budget (gotchas 1–2 lines, decisions ~2), skipping anything already present (idempotent). Distilling means compressing to the durable core and pointing back — "see learnings YYYY-MM-DD" — not restating the argument in a file the party re-reads constantly. Many entries distill to nothing durable; normal. Never edit the text of an entry itself — it moves to the archive verbatim. Anything you write here that lands over budget is fair game for step 4. - Prune. Remove gotchas whose underlying cause is verifiably fixed (check the code/tree, not memory), curated entries that stopped being true, and decision entries whose superseded tombstone has long since stopped earning its line. This is the hygiene the curated files' own contract demands.
- Compact. The prune step drops what stopped being true; this one
drops what is merely long. Read the three curated files and find every
entry past its budget — decisions ~2 lines, gotchas 1–2, architecture
notes one claim plus the evidence for it. For each:
- If it carries no
see learnings YYYY-MM-DDpointer, append its verbatim text to.claude/learnings-archive.mdfirst, under a## YYYY-MM-DD — titleheading carrying the entry's own date (create the file as step 6 describes if it is missing, and skip the append if that text is already there, so a re-run changes nothing). Move, then shorten — never shorten in place, or the argument is destroyed rather than relocated. - Then cut the live entry to its claim plus a
see learnings YYYY-MM-DDpointer at that heading's date. Keep the date, the choice, the rejected alternative in one clause, one why-clause, and any*Superseded:*/*Amended:*tombstone. The rejected alternative is the entry's whole job — it is what stops the next session re-litigating a settled call. - Never compact an entry whose existing pointer resolves to nothing — no entry under that date in the archive, and none in the inbox this rest is about to archive. Skip it and name it in the report.
- If it carries no
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 171 lines · 81 tokens per session scan A e9101b2fff81
long-rest is a skill published in the GitHub repository skeggsguy/adventure-party (6 stars, last pushed 19d ago), licensed MIT. It adds 81 tokens to every session and 2,267 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
knowledge-ingest
Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, source notes, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn), including the Learn from conversations and Learn from Memory…
forget
Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…
mem0-oss-to-platform
Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…
Cortex
LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…
memory
Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…