Agent skill

Doctor

by alsk1992 in alsk1992/CloddsBot

System health diagnostics and troubleshooting. An agent skill from alsk1992/CloddsBot.

MITAuto-check: notes

Install Doctor

skills CLI
$ npx skills add alsk1992/CloddsBot --skill doctor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alsk1992/CloddsBot doctor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/bundled/doctor .claude/skills/doctor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
doctor
GitHub stars
3k
Token cost
~1.6k tokens
SKILL.md length
207 words
Files
2
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

System health diagnostics and troubleshooting. An agent skill from alsk1992/CloddsBot.

  • Works in 5 steps: Run regularly — Check health daily or… → Monitor trends — Watch for gradual… → Set alerts — Alert on unhealthy status → …
  • SKILL.md covers Chat Commands, TypeScript API Reference, Diagnostic Checks and Status Levels, plus 3 more sections
  • Runs TypeScript scripts from its folder; needs ANTHROPIC_API_KEY and TELEGRAM_BOT_TOKEN

What it does

Doctor is an agent skill from alsk1992/CloddsBot. System health diagnostics and troubleshooting

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `index.ts`).

The repository describes itself as: Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes… The licence is MIT.

Example prompts

  • “/doctor”

Requirements

  • Node.js
  • A credential in ANTHROPIC_API_KEY
  • A credential in TELEGRAM_BOT_TOKEN

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Run regularly — Check health daily or after changes
  2. Monitor trends — Watch for gradual degradation
  3. Set alerts — Alert on unhealthy status
  4. Fix warnings — Don't wait for failures
  5. Review before deploy — Run doctor before production changes

What it can do on your machine

Read from SKILL.md and the folder at commit c930628. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY
    • TELEGRAM_BOT_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Doctor loads about 1.6k tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~13
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:245
    **Solution**: Check ANTHROPIC_API_KEY in .env

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alsk1992/CloddsBot at commit c930628, republished under its MIT licence (© alsk1992). 207 words, ~1,577 tokens.

Download SKILL.mdSave it as .claude/skills/doctor/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
doctor
description
System health diagnostics and troubleshooting
emoji
🩺

Doctor - Complete API Reference

Run system diagnostics, check health status, and troubleshoot issues.


Chat Commands

Health Checks
/doctor                                     Run all diagnostics
/doctor quick                               Quick health check
/doctor full                                Full diagnostic scan
/doctor <component>                         Check specific component
Component Checks
/doctor system                              OS, memory, disk
/doctor node                                Node.js version, memory
/doctor network                             Connectivity tests
/doctor api                                 API key validation
/doctor database                            Database connection
/doctor channels                            Channel health
Status
/health                                     Quick health status
/status                                     System status overview
/status verbose                             Detailed status

TypeScript API Reference

Create Doctor Service
typescript
import { createDoctorService } from 'clodds/doctor';

const doctor = createDoctorService({
  // Checks to run
  checks: ['system', 'node', 'network', 'api', 'database', 'channels'],

  // Thresholds
  thresholds: {
    memoryWarning: 80,    // % memory usage
    memoryCritical: 95,
    diskWarning: 80,      // % disk usage
    diskCritical: 95,
    latencyWarning: 1000, // ms
    latencyCritical: 5000,
  },

  // Timeout
  timeoutMs: 30000,
});
Run Diagnostics
typescript
// Run all checks
const report = await doctor.runDiagnostics();

console.log(`Overall: ${report.status}`);  // 'healthy' | 'degraded' | 'unhealthy'
console.log(`Checks passed: ${report.passed}/${report.total}`);

for (const check of report.checks) {
  const icon = check.status === 'pass' ? '✓' : check.status === 'warn' ? '⚠' : '✗';
  console.log(`${icon} ${check.name}: ${check.message}`);
  if (check.details) {
    console.log(`  ${JSON.stringify(check.details)}`);
  }
}
Run Specific Check
typescript
// Check system resources
const system = await doctor.checkSystem();

console.log(`OS: ${system.os} ${system.version}`);
console.log(`CPU: ${system.cpuUsage}%`);
console.log(`Memory: ${system.memoryUsage}% (${system.memoryUsedGB}/${system.memoryTotalGB} GB)`);
console.log(`Disk: ${system.diskUsage}% (${system.diskUsedGB}/${system.diskTotalGB} GB)`);
Check Node.js
typescript
const node = await doctor.checkNode();

console.log(`Node.js: ${node.version}`);
console.log(`Heap: ${node.heapUsed}/${node.heapTotal} MB`);
console.log(`RSS: ${node.rss} MB`);
console.log(`Uptime: ${node.uptime} seconds`);
Check Network
typescript
const network = await doctor.checkNetwork();

console.log(`Internet: ${network.internet ? 'Connected' : 'Disconnected'}`);
console.log(`DNS: ${network.dns ? 'Working' : 'Failed'}`);

for (const [endpoint, result] of Object.entries(network.endpoints)) {
  console.log(`${endpoint}: ${result.reachable ? 'OK' : 'Failed'} (${result.latencyMs}ms)`);
}
Check API Keys
typescript
const api = await doctor.checkApiKeys();

for (const [provider, status] of Object.entries(api)) {
  console.log(`${provider}: ${status.valid ? 'Valid' : 'Invalid'}`);
  if (status.error) {
    console.log(`  Error: ${status.error}`);
  }
  if (status.quota) {
    console.log(`  Quota: ${status.quota.used}/${status.quota.limit}`);
  }
}
Check Database
typescript
const db = await doctor.checkDatabase();

console.log(`Connected: ${db.connected}`);
console.log(`Latency: ${db.latencyMs}ms`);
console.log(`Version: ${db.version}`);
console.log(`Tables: ${db.tables}`);
console.log(`Size: ${db.sizeMB} MB`);
Check Channels
typescript
const channels = await doctor.checkChannels();

for (const channel of channels) {
  console.log(`${channel.name}: ${channel.status}`);
  if (channel.error) {
    console.log(`  Error: ${channel.error}`);
  }
  console.log(`  Connected: ${channel.connected}`);
  console.log(`  Last message: ${channel.lastMessage}`);
}
Format Report
typescript
// Get formatted report
const report = await doctor.runDiagnostics();
const formatted = doctor.formatReport(report);

console.log(formatted);
// Outputs nicely formatted diagnostic report

Diagnostic Checks

CheckWhat it Tests
systemOS, CPU, memory, disk
nodeNode.js version, heap, memory
networkInternet, DNS, API endpoints
apiAPI key validity and quotas
databaseConnection, latency, schema
channelsChannel connections, health
mcpMCP server connections
dependenciesnpm packages, versions

Status Levels

StatusMeaning
healthyAll checks pass
degradedSome warnings, still functional
unhealthyCritical failures, action needed
Check Results
ResultMeaning
passCheck succeeded
warnWarning threshold exceeded
failCritical failure
skipCheck skipped (not applicable)

CLI Commands

bash
# Run all diagnostics
clodds doctor

# Quick check
clodds doctor --quick

# Check specific component
clodds doctor --check system

# JSON output
clodds doctor --json

Common Issues

High Memory Usage
⚠ Memory: 85% used

Solution: Restart the service or increase available memory

API Key Invalid
✗ Anthropic API: Invalid key

Solution: Check ANTHROPIC_API_KEY in .env

Database Connection Failed
✗ Database: Connection refused

Solution: Check DATABASE_URL and ensure PostgreSQL is running

Channel Disconnected
⚠ Telegram: Disconnected

Solution: Check TELEGRAM_BOT_TOKEN and network connectivity


Best Practices

  1. Run regularly — Check health daily or after changes
  2. Monitor trends — Watch for gradual degradation
  3. Set alerts — Alert on unhealthy status
  4. Fix warnings — Don't wait for failures
  5. Review before deploy — Run doctor before production changes

© alsk1992, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in src/skills/bundled/doctor of alsk1992/CloddsBot.

  • SKILL.md
  • index.ts

Open the folder on GitHubat commit c930628

Compare with similar skills

Doctor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Doctor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Doctor this skillalsk1992/CloddsBot3k—~1.6kAutomated safety check: NotesMIT
Org Health Diagnosticalirezarezvani/claude-skills28k1 repos~2.1kAutomated safety check: PassMIT
SaaS Business Health Diagnosticdeanpeters/Product-Manager-Skills7.2k1 repos~5.8kAutomated safety check: PassCustom licence
Network Bgp Diagnosticsaffaan-m/ECC276k1 repos~1.4kAutomated safety check: PassMIT
Doctorbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~2.4kAutomated safety check: PassCustom licence
Skin Health Analyzersickn33/agentic-awesome-skills47k2 repos~293Automated safety check: PassMIT

Similar skills

  • Org Health Diagnostic

    alirezarezvani/claude-skills

    Cross-functional organizational health check combining signals from all C-suite roles.

    28k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • SaaS Business Health Diagnostic

    deanpeters/Product-Manager-Skills

    Diagnoses SaaS business health across growth, retention, unit economics and capital efficiency, then prioritizes fixes by urgency for board or quarterly reviews.

    7.2k GitHub starsUsed in 1 repo~5.8k tokens
    Business, Finance & HRAuto-check passed
  • Diagnostics-only BGP troubleshooting patterns for neighbor state, route exchange, prefix policy, AS path inspection, and safe evidence collection.

    276k GitHub starsUsed in 1 repo~1.4k tokens
    SecurityAuto-check passed
  • Doctor

    brycewang-stanford/Auto-Empirical-Research-Skills

    System diagnostics and health checks for Diverga plugin. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~2.4k tokensUpdated 5 days ago
    Auto-check passed
  • Skin Health Analyzer

    sickn33/agentic-awesome-skills

    Analyze skin health data, identify skin problem patterns, assess skin health status.

    47k GitHub starsUsed in 2 repos~293 tokens
    Productivity & AutomationAuto-check passed
  • Health

    agenticnotetaking/arscontexta

    Run condition-based vault health diagnostics. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub stars~7.1k tokensUpdated 7 mo ago
    Auto-check: notes

More from alsk1992/CloddsBot

All 116 skills in this repo
  • Qmd

    alsk1992/CloddsBot

    Local hybrid search for markdown notes and docs. An agent skill from alsk1992/CloddsBot.

    3k GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • AI Strategy

    alsk1992/CloddsBot

    AI Strategy - natural language to trades. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~670 tokensUpdated 8 days ago
    Auto-check passed
  • Alerts

    alsk1992/CloddsBot

    Create and manage price alerts for prediction markets. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~460 tokensUpdated 8 days ago
    Auto-check passed
  • Analytics

    alsk1992/CloddsBot

    Performance attribution, trade analytics, and strategy optimization

    3k GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check passed
  • Arbitrage

    alsk1992/CloddsBot

    Automated cross-platform arbitrage detection and monitoring. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • Auto Reply

    alsk1992/CloddsBot

    Automatic response rules, patterns, and scheduled messages. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check passed

Questions about Doctor

What does Doctor do?

System health diagnostics and troubleshooting. An agent skill from alsk1992/CloddsBot. Doctor is an agent skill from alsk1992/CloddsBot.

How do I install Doctor in Claude Code?

Run `npx skills add alsk1992/CloddsBot --skill doctor -a claude-code`. Or copy the skill folder (src/skills/bundled/doctor in alsk1992/CloddsBot) into .claude/skills/doctor in your project. Claude Code loads it when a task matches its description.

How do I install Doctor in Codex?

Run `npx skills add alsk1992/CloddsBot --skill doctor -a codex`. Or copy the skill folder (src/skills/bundled/doctor in alsk1992/CloddsBot) into .agents/skills/doctor in your project. Codex loads it when a task matches its description.

Can I use Doctor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alsk1992/CloddsBot --skill doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doctor, .gemini/skills/doctor, .github/skills/doctor and .opencode/skills/doctor in your project.

What does Doctor need to run?

Going by SKILL.md and its folder, Doctor needs TypeScript for the scripts in its folder and credentials named ANTHROPIC_API_KEY and TELEGRAM_BOT_TOKEN. Our summary lists: Node.js; A credential in ANTHROPIC_API_KEY; A credential in TELEGRAM_BOT_TOKEN.

Does Doctor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Doctor safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Doctor use?

Doctor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Doctor use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Doctor?

Skills that share tags, products or a category with Doctor: Org Health Diagnostic (alirezarezvani/claude-skills, 28k stars), SaaS Business Health Diagnostic (deanpeters/Product-Manager-Skills, 7.2k stars), Network Bgp Diagnostics (affaan-m/ECC, 276k stars) and Doctor (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Doctor?

alsk1992 (a GitHub user) maintains it in alsk1992/CloddsBot, which has 2,951 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on October 2, 2026.

Source: alsk1992/CloddsBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.