Skip to content
Back to skills

Cco Doctor

ASecurity

Health check for the context-optimizer plugin install — verifies versions, hooks, data dir, model config, and reports any issues

  • 113 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
toolsbashnode

Security analysis

A100/100

Scanned September 30, 2026

npx -y skills add egorfedorov/claude-context-optimizer --skill cco-doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cco Doctor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cco Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/egorfedorov-cco-doctor/badge)](https://www.skillsdirectory.com/skills/egorfedorov-cco-doctor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cco-doctor
description: Health check for the context-optimizer plugin install — verifies versions, hooks, data dir, model config, and reports any issues
license: MIT
allowed-tools:
  - "Bash(node ${CLAUDE_PLUGIN_ROOT}/src/doctor.js:*)"
  - Read
---

# CCO Doctor

When the user runs `/cco-doctor` or reports the plugin "isn't working", run a quick health check.

## How to use

Standard run (fast — under 1s):
```bash
node ${CLAUDE_PLUGIN_ROOT}/src/doctor.js
```

With test suite (slower — runs all unit tests):
```bash
node ${CLAUDE_PLUGIN_ROOT}/src/doctor.js --tests
```

## What it checks

- Plugin manifest and `package.json` exist
- Versions are in sync (`plugin.json` and `package.json`)
- `hooks.json` is valid JSON with all expected event types
- All hook scripts present in `src/`
- Data directory `~/.claude-context-optimizer/` is writable
- `patterns.json` size is reasonable
- Global stats file is parseable
- User config has sane model + budget for the chosen model
- Node version meets the >=18 requirement

## Presentation

Translate the doctor output into plain language. If anything is `fail`, walk the user through the fix:
- versions out of sync → `npm run sync-version`
- patterns.json too big → `/cco-clean`
- budget > model window → `/cco-budget set <smaller>` or pick a 1M-context model (e.g. `opus-5.5`)
- node too old → upgrade Node

If everything is `pass`, confirm "плагин в порядке, текущая версия Х.Y.Z" and stop.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.