$npx -y skills add mocasus/paleo --skill paleo-trim-contextUse when context window is large / token cost high / long session. Proactively trim, summarize, or drop stale content to save context tokens without losing the task state.
| 1 | # paleo-trim-context |
| 2 | Keep context small. Drop stale, keep task state. |
| 3 | |
| 4 | ## Rules |
| 5 | - Summarize old tool output into 1-2 lines; keep only the result that matters. |
| 6 | - Drop: resolved errors, obsolete file reads, duplicate logs. |
| 7 | - Keep: current plan, open TODO, key IDs/paths, last decision. |
| 8 | - Use session_search / notes for history instead of re-pasting. |
| 9 | - Prefer code/script over long prose explanations in context. |
| 10 | - Pre-thinking compression (biggest savings): BEFORE the model reasons, compress retrieved docs / RAG context / long file dumps into key facts + a source pointer. Drop full-doc dumps. |
| 11 | - Effort pinning: trivial task -> signal low effort, no over-think. Reuse a prior conclusion instead of re-reasoning the same thing. |
| 12 | |
| 13 | ## Scope boundary (don't collide with siblings) |
| 14 | - Context hygiene + effort pinning + pre-thinking compression = THIS skill (runs automatically during the session). |
| 15 | - `paleo-converse` = explicit conversation-turn compression + dedup (on-demand, when the user points at history or context is heavy). |
| 16 | - `paleo-summary` = one bulky artifact (log / diff / dump / stdout) -> tight intisari. |
| 17 | - Hand off to those when the target is a specific turn-block or a single artifact; don't re-implement them here. |
| 18 | |
| 19 | ## When |
| 20 | - Long session (>20 turns), big file dumps, repeated similar output. |
| 21 | - Before calling an expensive model — shrink first. |
| 22 | |
| 23 | ## Gotchas |
| 24 | - Don't trim the user's latest instruction. |
| 25 | - Keep ground truth (file paths, IDs) — summarize derivations only. |
| 26 | - If unsure what's stale, ask once. Don't guess-drop critical state. |