Visualize and diagnose context window allocation and token usage for AI coding agents.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-doctor
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install context-doctor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Doctor is a specialized diagnostic utility designed to provide deep visibility into the context window of your AI agent. By analyzing the allocation of tokens across system prompts, workspace files, and tool schemas, it helps developers understand exactly how their budget is spent and identify potential bottlenecks or bloat.
This tool is essential for maintaining high response quality and preventing the agent quality degradation that occurs when the context window becomes oversaturated or critical files are truncated. It serves as a vital component for developers building and maintaining Openclaw Skills by offering a clear terminal-rendered breakdown of the environment's health and token distribution.
To get started with this diagnostic tool, ensure you have the required dependencies and run the script from your terminal:
# Install visualization dependencies
pip3 install rich cairosvg
# Run the diagnostic script
python3 scripts/context-doctor.py
For macOS users, you can also install rendering support via Homebrew:
brew install librsvg
The tool organizes diagnostic data into several logical segments to help manage your Openclaw Skills environment:
| Component | Description | Metadata Tracked |
|---|---|---|
| Workspace Files | List of files in the bootstrap | Status, Chars, Estimated Tokens, Size Bar |
| Installed Skills | Inventory of SKILL.md files | Location (System vs. Workspace) |
| Token Budget | Breakdown of context allocation | System Prompt, Files, Skills, Tools |
| Diagnostic Signals | Status indicators | TRUNCATED, MISSING, Healthy, Heavy |
Loading
AWI is a zero-configuration single-binary tool for AI agents to read webpages and search the internet using an intelligent three-level fallback strategy.

A macOS-native web command center for monitoring agent activity, managing cron jobs, and tracking LLM costs in real-time.

A robust command-line interface for Plane.so that enables developers and AI agents to manage projects, issues, and states using structured JSON output.

A high-performance internet search skill for AI agents utilizing a self-hosted SearXNG instance for multi-engine data aggregation.

A mechanical enforcement suite that replaces soft markdown suggestions with hard git hooks and automated validation scripts for AI agents.

A writing editor skill designed to identify and eliminate the telltale signs of machine-generated text to restore natural human rhythm and voice.








































