pre-compact

Solid

Prepare the session for context compaction - write a handoff file a fresh session can continue from, propose updates to the project's durable docs, apply them on approval or with `auto`. Use before compacting or clearing context, or on "pre-compact".

AI & Automation 36 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

I will compact this context soon. The summary can be wrong. Files are the source of truth. Move everything a fresh session needs from this conversation into files. Mode: $ARGUMENTS. `auto` or `a` means: apply all proposed updates without asking. Write `.agents/compact-handoff/YYMM-DD-HHMM-<short-slug>.md`. Start with the line `# Handoff <date> <time> <repo>@<branch>`. Then write these sections: - Position: what we are doing, why, and where we stopped. - Next steps: in order, with the paths, commands and identifiers needed to run them. - Decisions: each decision made here, with its reason. - Findings: what we learned works or fails, verbatim. - Open questions: numbered, each with your recommended answer. - Undone instructions: what I asked for that is not done. - References: files, links, related docs. Copy numbers, commands and paths exactly. Do not paraphrase them. Never write secrets, tokens, passwords or API keys into the handoff. Write where they live instead, for example the env var name or the vault item. Record only decisions that were made. Keep open questions open. Then check the docs this project uses to track work: plans, journals, status sections, task lists. For each item in the handoff, ask: is it recorded there, and is it current? Do not ask me what the repo can answer. Also check my global agent instructions (`~/.claude/CLAUDE.md`, `AGENTS.md`, or the equivalent for this harness) for the marker `<!-- pre-compact -->`. If the marker is absent, add this ite...

Details

Author
tenequm
Repository
tenequm/skills
Created
10 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category