Haircut measures, prices, and safely trims the configuration overhead loaded by every coding agent on a machine.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install haircut
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 haircut using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
haircut is an Openclaw Skills configuration auditing and cleanup tool for coding agents such as Claude Code, Codex, OpenCode, Cursor, Gemini, Copilot, Windsurf, Continue, Claude Desktop, and VS Code. It scans instruction files, memory, MCP servers, hooks, skills, commands, subagents, plugins, duplicates, and leftovers, then prices their token and latency impact using real transcript data where available.
The skill is designed for safe, evidence-based cleanup rather than blind deletion. It reports measured startup costs, proposes verdicts, asks for explicit decisions, moves approved items into a dated recovery bag, creates a receipt, and supports one-command restoration. As an Openclaw Skills workflow, haircut complements built-in checks such as /context, /doctor, and /skill-doctor by auditing every supported agent on the machine.
REPORT.md summary rather than loading the full report.json; optionally open the self-contained report.html interface.ASK and ROTATE items in small, grouped rounds. Unanswered items remain later and are not changed.decisions.json in the run folder, using item IDs from decisions.template.json.trim --dry-run and reconcile any difference between the proposed plan and the user-approved list.MANIFEST.jsonl, and provide the exact restore command for the generated bag.haircut is invoked through the installed skill or plugin and uses ${CLAUDE_PLUGIN_ROOT} as its runtime root. The provided skill documentation does not specify a separate package-install command; ensure the skill is available to the coding agent before running these commands.
Run a default, read-only audit:
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" --json
Optional measurement controls:
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" --json --days 30
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" --json --agents claude-code,codex
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" --json --probe
Use --probe only when the user explicitly wants MCP tool-schema costs measured, because it starts configured MCP servers. Codex transcript scans may take a minute on machines with extensive history.
Open the browser-friendly report when the result is large:
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" report --open
After the user approves a decisions file, preview and apply the changes:
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" trim <path to decisions.json> --dry-run
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" trim <path to decisions.json>
Restore a bag if needed:
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" restore --bag <bag id> --dry-run
node "${CLAUDE_PLUGIN_ROOT}/bin/haircut.mjs" restore --bag <bag id>
All scans, measurements, probes, and reports are read-only. Only the approved trim operation changes files. Never use haircut to edit the contents of CLAUDE.md, AGENTS.md, or MEMORY.md, and never print credential values.
Each audit creates a run folder whose path is returned in the JSON summary as run_dir.
| File | Purpose |
|---|---|
REPORT.md |
Human-readable findings, measurements, savings, and verdicts; preferred for review. |
report.html |
Self-contained browser interface for reviewing items and exporting decisions. |
report.json |
Complete machine-readable report containing every item; inspect selectively because it can be large. |
decisions.template.json |
Candidate item IDs and proposal structure used to build decisions. |
decisions.json |
User-approved choices and notes for the current run. |
MANIFEST.jsonl |
Operation-by-operation receipt stored inside the recovery bag. |
{
"run": "<run id from the summary>",
"items": {
"<item id>": { "decision": "park", "note": "unused in 90 days, user confirmed" },
"<item id>": { "decision": "keep", "note": "" }
}
}
Supported decisions are park, keep, and later. Only park moves files. later is the safe default for unanswered items.
PARK: Candidate for removal from active configuration and placement in the recovery bag.TRIM: Useful but oversized or excessive and should be reduced rather than removed.FIX: Wanted configuration that is currently broken.ROTATE: Credential appears in plain text and should be rotated by the user.ASK: Requires an explicit user decision, especially for shared team files.KEEP: Remains active.INERT: Has no measurable cost in its current location.The report can include headline.claude_code.before_first_word.avg_cold, cold_sessions, and max_cold, plus Codex fixed-per-rollout and per-call MCP schema costs. Savings are summarized in top_savings, while verdict counts appear in totals.by_verdict.
ASK and ROTATE decisions with grouped questions and explicit consequences.report.html, including export of the same decisions.json used by the CLI.MANIFEST.jsonl receipts and restore support.Loading
Movie Night Decider finds and ranks sourced movie recommendations that match your preferences while respecting licensing, approval, and verification rules.

An AI advisor that analyzes anxiety and rumination loops through XinJianXue data and converts them into practical, manageable next steps.

A consent-based XinJianXue advisor that analyzes parent–child conflict patterns and provides neutral, practical ways to de-escalate and communicate.

A consent-first AI advisor that uses XinJianXue reports to explore relationship compatibility, partner selection, and long-term marriage fit without making the decision for the user.

Glasser lets Openclaw Skills discover, price, and safely run more than 1,000 third-party data API endpoints through one authenticated Workspace.

A complete 1688 procurement workflow that takes users from product discovery and supplier comparison to cart management, checkout, and user-approved payment.








































