nap

nap is a skill for Claude Code, Codex from olivomarco/github-copilot-token-optimization. It costs 0 tokens per session (169 once invoked), scanned A, original, no licence file.

A context-cleanup workflow for an AI agent. It compresses old agent histories, removes older logs, archives outdated decisions, and cleans up unused inbox files.

In plain words
What is it for?
Reducing accumulated history and stale files during long-running agent work.
Why use it?
It frees space in the agent's context window so the current work has more room.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Reducing accumulated history and stale files during long-running agent work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/olivomarco/github-copilot-token-optimization/nap
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 olivomarco/github-copilot-token-optimization --skill nap
Clone the repo
git clone --depth 1 https://github.com/olivomarco/github-copilot-token-optimization

Made for: Claude Code, Codex.

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 nap

README.md
[![agentmods](https://agentmods.dev/badge/skills/olivomarco/github-copilot-token-optimization/nap/github.svg)](https://agentmods.dev/skills/olivomarco/github-copilot-token-optimization/nap)
Your own site
<a href="https://agentmods.dev/skills/olivomarco/github-copilot-token-optimization/nap"><img src="https://agentmods.dev/badge/skills/olivomarco/github-copilot-token-optimization/nap/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 nap

Your own site · 80×15
<a href="https://agentmods.dev/skills/olivomarco/github-copilot-token-optimization/nap"><img src="https://agentmods.dev/badge/skills/olivomarco/github-copilot-token-optimization/nap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 169 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 unknown 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.00000 $0.00169
Opus 5.5 $0.00000 $0.00068
Sonnet 5.5 $0.00000 $0.00034
Haiku 4.5 $0.00000 $0.00017

Measured 2mo ago against content hash 281ae557e6d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

.squad/templates/skills/nap/SKILL.md · 25 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2mo ago First seen · 25 lines · 0 tokens per session scan A 281ae557e6d1

Subscribe to this mod's changes

nap is a skill published in the GitHub repository olivomarco/github-copilot-token-optimization (171 stars, last pushed 2d ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 169 tokens. 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-30.

Related

Other skills, from other repositories

entroly-context-control

Surgically select, compress, and recover codebase context using Entroly's MCP tools. Slashes token usage by up to 95% with Merkle-exact recovery receipts and WITNESS verification.

juyterman1000/entroly · 48 tokens

thread

Manage persistent context threads for cross-session work.

buildomator/buildomator · 10 tokens

memory-enhancement

Manage memory citations, verify code references, and track confidence scores. Use when adding citations to memories, checking memory health, or verifying code references are still valid. Use when you say "add a citation", "verify this memory's code refs", "check memory health". Do NOT use for searching or creating…

rjmurillo/ai-agents · 80 tokens

memory-reflexion

Tier 2 episode extraction, the reflexion write path split out of the memory router per ADR-063. Extracts an episode from a completed session log so later sessions can replay what was tried and what it cost. Use when you say extract episode from session, record what happened this session, or re-extract this episode. Do…

rjmurillo/ai-agents · 98 tokens

apex-context-management

UTILITY SKILL — Two-mode context-window management. RUNTIME: artifact compression (full/summarized/minimal) for orchestrator and codegen agents. AUDIT: post-mortem analysis of Copilot debug logs (token profiling, redundancy, hand-off gaps) for 11-Context Optimizer. WHEN: "context optimization", "token budget"…

jonathan-vella/apex-accelerator · 100 tokens

retrospective

Extract learnings from a session or task through structured retrospective frameworks. Gathers evidence, runs Five Whys and fishbone diagnosis, scores atomicity, and writes a canonical retrospective artifact. Use to turn execution experience into institutional knowledge. Use when you say "run a retrospective", "retro…

rjmurillo/ai-agents · 87 tokens