somnus0x/agt-skill-pack/wrap
Claude Code and agent skill by somnus0x/agt-skill-pack
- community
Checking that the SKILL.md file is still in the repository.
Write a compact session handoff so you can /clear and continue in a fresh, cheap context — the new session auto-loads it via a SessionStart hook. Use when the user says "wrap", "wrap up", "handoff and clear", "fresh session", "clear context", "reset context", or after the context-nudge HUD/hook warns (≥250K context or cold cache) at a natural boundary (post/feature/project done).
Install
npx vskill@latest install somnus0x/agt-skill-pack/wrapSKILL.md
Wrap — handoff, then /clear
Why: a long main loop re-reads its whole context every call, so a short reply typed into a huge chat after an idle gap costs the same as a long one. One cold resume at 800K context runs $5–10 at list price. A ~50-line brief carries what matters at a fraction of that.
You cannot run /clear yourself — your job is to make clearing lossless, then tell the user to type it.
Steps
- Path:
python3 ~/.claude/hooks/session-handoff.py --path→ the one handoff file for this
cwd. Overwrite it; never write elsewhere (never into the repo).
- Gather receipts, not memory (one batch of read-only calls):
git status --short,
git branch --show-current, git log --oneline -5, branches ahead of origin — skip if not a git repo. Re-read any file you are about to cite.
- Write the brief — terse, ≤ 60 lines, only what the next session can't cheaply re-derive
from the repo:
Rules: corrected facts go in Gotchas (e.g. "the staging DB is NOT a copy of prod"). No secrets, no key values. Don't paste code — point to file:line. Don't restate CLAUDE.md.
- Surface stranded work: if this session created/modified files that are uncommitted, or a
branch is ahead of origin, say so in one line — don't commit unless asked.
- Hand over — reply with exactly:
- the handoff path and line count,
Type /clear — the next session loads this automatically.(also loads on a freshclaude
start in this directory within 24h),
- if the next task is a taste/design call, suggest
/modelafter the clear; otherwise stay
on the default.
If the user wants to keep going in the same session instead, suggest /compact with the Next line as the focus.
Install the other half
The skill writes the brief. A SessionStart hook is what loads it back after /clear — without it you get a note that never returns. install.sh only copies this file, so fetch the three scripts yourself:
Then merge into ~/.claude/settings.json:
What each piece does:
session-handoff.py— SessionStart hook. On/clear(or a fresh start in the same directory
within 24h) it injects the brief as context, then renames it .consumed.md so it never loads twice. Handoffs live in ~/.claude/session-handoffs/, outside any repo.
context-nudge.py— UserPromptSubmit hook plus a HUD line. Warns when the cache has gone cold
at ≥150K context (this turn rewrites ~$X) and once per 250K step.
statusline.sh— optional, and Mac-shaped. It chains theclaude-hudplugin and then
appends the nudge line, with a hardcoded Homebrew node path. If you don't use claude-hud, replace the first half with your own statusline command, or point statusLine straight at python3 ~/.claude/hooks/context-nudge.py --hud.
CLAUDE_CODE_AUTO_COMPACT_WINDOW is the part that works without you. It compacts before the main loop passes 400K, so the habit doesn't have to hold.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wrap/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/somnus0x/agt-skill-pack/wrap)