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 | $0.00041 | $0.01133 |
| Sonnet 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 11d 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.
- 11d 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 (5 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 2,267 once invoked, about $0.0004 per session on Opus 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
media-ingest
Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…
Cortex
Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…
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…
establishing-project-context
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.