✂️
AI EngineeringPython

Paleo Trim Context

by mocasus

Paleo Trim Context is an AI Engineering skill for Claude Code, published by mocasus in paleo.

11 stars0 forkson mocasus/paleoAdded 2026/07/16Repository updated 2026/07/12
agent-skillsai-agentsai-efficiencyautomationclaudeclaude-codecodexcontext-windowcost-optimizationdeveloper-toolsgeminigemini-clihermeshermes-agentllmllm-agentsprompt-engineeringskillstoken-savingtokens
Install in seconds
Install Paleo Trim Context
Copy Paleo Trim Context into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mocasus/paleo/tree/main/skills/paleo-trim-context ~/.claude/skills/paleo-trim-context

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mocasus/paleo.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/paleo-trim-context/SKILL.md in mocasus/paleo
Installs to
~/.claude/skills/paleo-trim-context
Collection
One of 7 skills cataloged from this repository
Category
AI Engineering3670 skills

What Paleo Trim Context does

Automatically trim, summarize, or drop stale content from the context window to save tokens while preserving task state. Use during long sessions, large file dumps, or before calling expensive models.

Paleo Trim Context is cataloged under AI Engineering on DirSkills. Paleo Trim Context comes from a repository tagged agent-skills, ai-agents, ai-efficiency, automation and claude.

Documentation

README

paleo-trim-context

Keep context small. Drop stale, keep task state.

Rules

  • Summarize old tool output into 1-2 lines; keep only the result that matters.
  • Drop: resolved errors, obsolete file reads, duplicate logs.
  • Keep: current plan, open TODO, key IDs/paths, last decision.
  • Use session_search / notes for history instead of re-pasting.
  • Prefer code/script over long prose explanations in context.
  • 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.
  • Effort pinning: trivial task -> signal low effort, no over-think. Reuse a prior conclusion instead of re-reasoning the same thing.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Paleo Trim Context

  • What else does mocasus publish alongside Paleo Trim Context?

    Paleo Trim Context is one of 7 skills that DirSkills catalogs from mocasus/paleo, the repository it ships in. Its siblings there include Paleo Auto, Paleo Budget and Paleo Converse. Each one is a separate skill with its own page in this directory, installs the same way Paleo Trim Context does, and is maintained by mocasus in that same repository. The rest of the collection is listed on the mocasus/paleo page.

  • How does Paleo Trim Context compare to other AI Engineering skills?

    Paleo Trim Context ranks #3657 by stars among the 3670 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Paleo Trim Context against them. Open each page to compare what they document and how they install.