一键导入
compress
Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user says 'git-guard', 'check git protection', 'is this repo protected', 'verify gitleaks', 'set up git hooks', 'install git-guard', or wants to confirm a repo blocks secrets and internal files before commit. This is an installer and verifier, NOT a scanner (gitleaks does the actual scanning). Do NOT use for deep secret audits or RLS work.
Use when the user says 'save diary', 'log session', 'wrapping up', or at end of a productive session.
Use when the user says 'token optimization', 'save tokens', 'context window', 'reduce tokens', 'token stack', or 'TokenStack', or asks about extending context window capacity. Covers TokenStack, the built-in compression proxy that shrinks Claude Code tool output before it reaches the Anthropic API. Do NOT use for proxy troubleshooting or live status (Compress skill).
Use when the user references past sessions, asks 'what did we do', 'do you remember', 'last session', 'recall', or 'continue from'.
Use this skill when the user says 'Hetzner', 'VPS setup', 'server provisioning', 'deploy to VPS', 'hetzner-setup', 'cloud server', or needs to provision, harden, and deploy applications to a Hetzner Cloud server with Docker, Nginx/Caddy, SSL, and monitoring. Do NOT use for managed platform deployments like Railway or Netlify.
Use this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend security headers or dependency scanning.
| name | compress |
| description | Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage. |
| version | 2.0.0 |
Monitor and troubleshoot the built-in TokenStack compression proxy for CC sessions.
When this skill activates, output:
Compress - Checking TokenStack status...
Then execute the protocol below.
| Context | Status |
|---|---|
| User says "tokenstack", "compression stats", "check proxy" | ACTIVE - run status check |
| User asks about token savings or context window | ACTIVE - point to dashboard report |
| Proxy errors or API connection failures appear | ACTIVE - run health diagnostics |
| General discussion about CC features | DORMANT - do not activate |
| User is actively coding (no proxy issues) | DORMANT - do not activate |
TokenStack is a transparent proxy between Claude Code and the Anthropic API. It compresses tool output before it reaches the API, extending effective context and lowering token cost.
This skill checks that the proxy is running and routing, and troubleshoots connection issues. For the full feature overview, enable steps, and transform tables, use the Token Optimization skill.
TokenStack ships inside the memstack-skill-loader package. There is no separate install.
python -m memstack_skill_loader dashboard --with-proxy
127.0.0.1:8787 and sets ANTHROPIC_BASE_URL automatically.python -m memstack_skill_loader proxycurl http://127.0.0.1:8787/health
A healthy proxy responds on /health. If there is no response, the proxy is not running.
Note: the proxy has no /stats endpoint. Live savings are reported in the dashboard, not over curl. See "Reading Savings" below.
Open the dashboard and look at the proxy indicator. A live PRO or FREE badge means Claude Code traffic is routing through TokenStack. If the badge reads "not detected," the dashboard was started without --with-proxy; restart it with the flag.
Check the port:
netstat -ano | findstr 8787
If nothing is listening, start it:
python -m memstack_skill_loader dashboard --with-proxy
Savings live in the dashboard (default http://localhost:3333):
| Tier | Transforms |
|---|---|
| Free | Six lossless text reductions, always applied |
| Pro | Adds seven transforms including AST truncation (license-gated) |
A valid Pro license switches the proxy to Pro tier automatically. The dashboard badge shows the active tier.
| Symptom | Fix |
|---|---|
No response on /health | Proxy not running. Start with python -m memstack_skill_loader dashboard --with-proxy. |
| Proxy indicator shows "not detected" | Dashboard was started without --with-proxy. Restart with the flag. |
| Badge shows FREE but you hold Pro | License cache may be stale. The proxy revalidates the license on next start. |
| Cost figures differ from Anthropic Console | Estimates use list token prices and do not model server-side prompt caching. For billed cost, check console.anthropic.com. |
TokenStack Status
Proxy: Running on :8787
Tier: PRO
Savings: read in the dashboard (Overview header and Burn Report)
--with-proxypython -m memstack_skill_loader proxy| Skill | Scope | When to Use |
|---|---|---|
| Token Optimization | Full TokenStack overview, enable steps, transform tables | Understanding or turning on compression |
| Compress (this) | Health, routing, troubleshooting | Proxy not running or not routing |
/stats curl; savings are now read from the dashboard. (Jun 2026)