long-rest

long-rest is a skill for Claude Code from skeggsguy/adventure-party. It costs 81 tokens per session (2,267 once invoked), scanned A, original, MIT.

A guided maintenance ritual for turning a project's rough learning notes into shorter, organized memory files. It also archives processed notes and records the update in a project history file.

In plain words
What is it for?
Use it to review and organize accumulated coding-session learnings, remove or shorten stale guidance, archive source notes, and record when the project's shared memory was updated.
Why use it?
It prevents project notes from becoming outdated, duplicated, or too large to read. It also makes the process deliberate by requiring confirmation before editing files.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the party plugin — 3 skills, 4 agents, 1 hook shipped together

Good fit Use it to review and organize accumulated coding-session learnings, remove or shorten stale guidance, archive source notes, and record when the project's shared memory was updated.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skeggsguy/adventure-party/long-rest
Install

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.

Any agent
npx skills add skeggsguy/adventure-party --skill long-rest
Clone the repo
git clone --depth 1 https://github.com/skeggsguy/adventure-party

Made for: Claude Code.

Or install party, the plugin that ships this one along with the rest of its 3 skills, 4 agents, 1 hook.

Wrote 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.

agentmods badge for long-rest

README.md
[![agentmods](https://agentmods.dev/badge/skills/skeggsguy/adventure-party/long-rest/github.svg)](https://agentmods.dev/skills/skeggsguy/adventure-party/long-rest)
Your own site
<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.

agentmods 80×15 button for long-rest

Your own site · 80×15
<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>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 11d ago against content hash e9101b2fff81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

skills/long-rest/SKILL.md · 171 lines

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.md and CHRONICLE.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.

  1. Scope. Every entry in .claude/learnings.md. One exception, for projects carried over from the watermark era: if CHRONICLE.md contains 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.
  2. 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.
  3. 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.
  4. 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:
    1. If it carries no see learnings YYYY-MM-DD pointer, append its verbatim text to .claude/learnings-archive.md first, under a ## YYYY-MM-DD — title heading 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.
    2. Then cut the live entry to its claim plus a see learnings YYYY-MM-DD pointer 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.
    3. 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.

Read the full file on GitHub · 171 lines

Changes

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.

  1. 11d ago First seen · 171 lines · 81 tokens per session scan A e9101b2fff81

Subscribe to this mod's changes

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.

Related

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.

garrytan/gbrain · 52 tokens

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.…

mem0ai/mem0 · 273 tokens

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…

danielmiessler/LifeOS · 196 tokens

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.

opensquilla/opensquilla · 44 tokens

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…

shiwenwen/hope-agent · 115 tokens

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.

GanyuanRan/Aegis · 45 tokens