agent-doctor

agent-doctor is a skill for Claude Code, Codex from AlekseiUL/openclaw-superagent. It costs 41 tokens per session (3,632 once invoked), scanned C, original, MIT.

A Russian-language diagnostic workflow for OpenClaw, an agent system. It checks areas such as the gateway, memory database, scheduled jobs, tokens, files, and security, and reports possible fixes.

In plain words
What is it for?
Use it for an OpenClaw health check, troubleshooting gateway or memory issues, checking configuration and scheduled jobs, and reviewing suggested repairs.
Why use it?
It helps find common system problems while keeping changes under the user's control by requiring confirmation before applying repairs.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; built for openclaw.

Good fit Use it for an OpenClaw health check, troubleshooting gateway or memory issues, checking configuration and scheduled jobs, and reviewing suggested repairs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alekseiul/openclaw-superagent/agent-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AlekseiUL/openclaw-superagent --skill agent-doctor
Clone the repo
git clone --depth 1 https://github.com/AlekseiUL/openclaw-superagent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/alekseiul/openclaw-superagent/agent-doctor/github.svg)](https://agentmods.dev/skills/alekseiul/openclaw-superagent/agent-doctor)
Your own site
<a href="https://agentmods.dev/skills/alekseiul/openclaw-superagent/agent-doctor"><img src="https://agentmods.dev/badge/skills/alekseiul/openclaw-superagent/agent-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/alekseiul/openclaw-superagent/agent-doctor"><img src="https://agentmods.dev/badge/skills/alekseiul/openclaw-superagent/agent-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,632 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.03632
Opus 5 $0.00020 $0.01816
Sonnet 5 $0.00008 $0.00726
Haiku 4.5 $0.00004 $0.00363

Measured 10d ago against content hash cfd5ea8026a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

agent-doctor scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (auto-diagnostic.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.openclaw/logs/*.log.old
skills/agent-doctor/SKILL.md · 534 lines

How it starts

The opening of the file, as written. The whole thing — 534 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🏥 Agent Doctor - Самодиагностика OpenClaw

Версия: 1.0.0 (Public Release) Создано: 2026-03-06 Лицензия: MIT

Описание

Комплексная диагностика всех систем OpenClaw агента. Проверяет память, кроны, конфиг, файлы, gateway, систему и безопасность. Выявляет проблемы и предлагает конкретные решения.

ВАЖНО: Скилл ТОЛЬКО диагностирует. Изменения применяются ТОЛЬКО после вашего явного подтверждения.

Установка

  1. Скопируйте этот файл в skills/agent-doctor/SKILL.md
  2. Агент автоматически подхватит скилл при следующем запуске

Триггеры

Когда говорить агенту для запуска:

  • "продиагностируй себя"
  • "самодиагностика"
  • "проверь систему"
  • "что с тобой не так"
  • "диагностика агента"
  • "self-check"
  • "health check"

Как работает

Алгоритм

  1. Агент запускает проверку всех систем
  2. Собирает результаты по 7 категориям
  3. Формирует отчет с найденными проблемами
  4. Предлагает конкретные решения
  5. Применяет фиксы ТОЛЬКО после вашего "ок"

Что проверяется

🧠 Память
  1. SQLite база данных

    • Существует ли ~/.openclaw/memory/*.sqlite?
    • Размер базы адекватный?
  2. WAL mode (критично!)

    • Проверка: sqlite3 ~/.openclaw/memory/main.sqlite "PRAGMA journal_mode;"
    • Должно быть: wal (НЕ delete!)
    • Почему важно: без WAL агент видит устаревшие данные
  3. Количество записей

    • Сколько чанков в базе?
    • Есть ли записи из файлов (memory) и сессий (sessions)?
  4. Конфиг memorySearch

    • enabled = true?
    • embeddingProvider настроен?
    • similarityThreshold указан?
  5. Embedding провайдер

    • OpenAI / Gemini / Anthropic
    • API ключ настроен?
  6. Тестовый поиск

    • memory_search возвращает результаты?
    • Нет ошибок при запросе?
  7. Файлы памяти

    • MEMORY.md существует и не пустой?
    • Структура папок: core/, decisions/, projects/
    • Последний daily note (memory/YYYY-MM-DD.md) свежий?
⏰ Кроны
  1. Список всех кронов

    • Команда: openclaw cron list
  2. Статус кронов

    • Есть ли отключенные (enabled: false)?
    • Когда последний запуск?

Read the full file on GitHub · 534 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 534 lines · 41 tokens per session scan C cfd5ea8026a1

Subscribe to this mod's changes

agent-doctor is a skill published in the GitHub repository AlekseiUL/openclaw-superagent (41 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 3,632 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.