Overview
- Skill Key
- furukama/context-viz
- Author
- furukama
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/furukama/context-viz
- Latest Commit SHA
- 57030ea3a80435e1e8ea4e9d71aa5e77dd99b9f1
Visualize the current context window usage — token estimates per component (system prompt, tools, workspace files, messages, free space). Use when the user asks about context size, token usage, context breakdown, "how full is the context", or wants to see what's consuming their context window.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 context-viz 技能。 若已安装,则直接安装 context-viz 技能。
# Context Visualization Estimate and display a breakdown of the current context window usage. ## How It Works Run the bundled script to estimate token counts for workspace files: ```bash python3 scripts/estimate_tokens.py /path/to/workspace ``` The script counts characters in known workspace files and estimates tokens (~4 chars/token). Then call `session_status` to get the actual context usage from OpenClaw. ## Generating the Visualization 1. Run `session_status` to get: model, context used/total, compactions 2. Run `scripts/estimate_tokens.py <workspace_path>` to estimate file token sizes 3. Estimate message tokens: `context_used - system_overhead - file_tokens` 4. Present the breakdown using the format below ## Output Format Use a monospace block with bar chart. Adapt the bar lengths proportionally. ``` 📊 Context Usage <model> • <used>k/<total>k tokens (<pct>%) Component Tokens % ───────────────────────────────────────────── ⚙️ System prompt + tools ~Xk X% ░░ 📋 AGENTS.md ~Xk X% ░ 👻 SOUL.md ~Xk X% 👤 USER.md ~Xk X% 🔧 TOOLS.md ~Xk X% ░ 💓 HEARTBEAT.md ~Xk X% 🧠 MEMORY.md ~Xk X% ░ 🪪 IDENTITY.md ~Xk X% 💬 Messages ~Xk X% ░░░░░░░░░░░░ 📭 Free space ~Xk X% ░░░░░ ───────────────────────────────────────────── ``` Use ░ blocks: 1 block per ~2% of total context. Round to nearest block. ## Memory Inventory (not in context) Below the context chart, add a **Memory on Disk** section showing what's stored in `memory/` — grouped by category. These files are NOT loaded into context but represent the agent's total knowledge base. ``` 💾 Memory on Disk (not in context) Category Files Tokens Size ────────────────────────────────────────────────── 📰 chinese-ai-digests 12 ~23k...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.