Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

treat — Prescription-based Session Pruning

Prescribes a pruning pass over a bloated Claude Code session, stripping progress ticks, stale reads and duplicate content for 40–95% token savings.

UtilitiesIntermediate37936AI score 9/10Last updated: Jul 3, 2026

What it does

  • Diagnoses the live session with cozempic current --diagnose so you can see what is eating your context window.
  • Applies one of three prescriptions — gentle, standard, aggressive — to collapse progress ticks, thinking blocks, tool output, stale file reads, duplicate documents and system reminders.
  • Always dry-runs first, reporting both byte and token savings, and only applies changes after an explicit AskUserQuestion confirmation.
  • Creates timestamped .bak backups automatically and never rewrites uuid/parentUuid, so the conversation DAG stays intact.

Who it's for

  • Developers who hit context-limit warnings during long refactor or debugging sessions.
  • Anyone trying to cut token spend while keeping their conversation history alive.
  • tmux / multi-pane users who need to stay in the current window instead of exiting.

Examples

  1. /treat — no argument, defaults to standard: diagnose, dry-run, confirm, prune.
  2. /treat aggressive — squeeze a session full of hundreds of file reads and mega tool outputs down by 70–95%.
  3. /treat gentle — keep the reasoning trail, drop only progress ticks, duplicate file history and metadata for 40–55% savings.

Tip: if you want prune + auto-resume in a single step, use the repo's reload skill instead.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/Ruya-AI/cozempic/HEAD/plugin/skills/treat/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the plugin/skills/treat folder from the GitHub repo Ruya-AI/cozempic into my ~/.claude/skills/treat/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/Ruya-AI/cozempic.git && mkdir -p ~/.claude/skills && cp -r cozempic/plugin/skills/treat ~/.claude/skills/treat

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal and clone the repo: git clone https://github.com/Ruya-AI/cozempic.git
  2. cd cozempic and install the cozempic CLI following the README — the skill cannot run without it.
  3. Verify the binary is on your PATH with cozempic --help.
  4. Copy the skill into place: mkdir -p ~/.claude/skills && cp -r plugin/skills/treat ~/.claude/skills/treat
  5. Restart Claude Code and run /treat or /treat aggressive.
  6. Review the dry-run token savings before confirming; afterwards resume the pruned session with claude --resume.