Deterministically compacts and tree-shakes conversation context by stripping verbose tool outputs, cargo/compiler dumps, and file reads while preserving 100% of User prompts, Assistant reasoning, Thoughts, and the last 10 user conversational turns. Trigger when context is full, prompt is laggy, before complex tasks, or to prune bloat.
Scanned 9/20/2026
Install to Claude Code
npx -y skills add Sahil-958/dots --skill shake --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Shake?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sahil-958-shake)More formats (shields.io, HTML) on the badges page.
---
name: shake
description: Deterministically compacts and tree-shakes conversation context by stripping verbose tool outputs, cargo/compiler dumps, and file reads while preserving 100% of User prompts, Assistant reasoning, Thoughts, and the last 10 user conversational turns. Trigger when context is full, prompt is laggy, before complex tasks, or to prune bloat.
---
# Antigravity Context Tree-Shaking Skill (`/shake`)
Compact conversation context in-place, freeing **50%–80% of transmitted tokens** while preserving 100% of user prompts, assistant reasoning, thoughts, error tracebacks, and the **last 10 user conversational turns** in active working memory.
---
## ⚡ Execution Workflow
### 1. Identify Conversation Context Paths
From your runtime context:
- **Conversation ID**: `<conversation-id>`
- **Transcript Path**:
```text
<appDataDir>/brain/<conversation-id>/.system_generated/logs/transcript.jsonl
```
- **Artifact Directory**:
```text
<appDataDir>/brain/<conversation-id>/
```
---
### 2. Execute High-Performance Pruner
Run the native binary using `run_command`:
```bash
# Direct in-place compaction, line-indexed receipts, and interactive artifact generation
~/.gemini/bin/shake-prune "<appDataDir>/brain/<conversation-id>/.system_generated/logs/transcript.jsonl" "<appDataDir>/brain/<conversation-id>/"
```
*Pruned outputs include exact `line=N` pointers to the backup file. If you ever need to inspect historical commands or file contents from earlier turns, invoke `view_file(archive, StartLine: line, EndLine: line)`.*
---
### 3. Display the Report & Continue
The binary outputs a formatted markdown summary. Present it directly to the user:
- Report the **tokens saved** and **physical reduction percentage**.
- The `PreInvocation` hook pins the assistant's working focus to the clean state.
- **The user can immediately continue typing prompts in the exact same chat window.**
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!