Back to list
yonatangross

doctor

by yonatangross

The Complete AI Development Toolkit for Claude Code — 159 skills, 34 agents, 20 commands, 144 hooks. Production-ready patterns for FastAPI, React 19, LangGraph, security, and testing.

29🍴 4📅 Jan 23, 2026

SKILL.md


name: doctor description: OrchestKit health diagnostics command that validates plugin configuration and reports issues. Use when running doctor checks or troubleshooting plugin health. context: inherit version: 2.0.0 author: OrchestKit tags: [health-check, diagnostics, validation, permissions, hooks] user-invocable: true

OrchestKit Health Diagnostics

Overview

The /ork:doctor command performs comprehensive health checks on your OrchestKit installation. It validates:

  1. Permission Rules - Detects unreachable rules (CC 2.1.3 feature)
  2. Hook Health - Verifies executability and references
  3. Schema Compliance - Validates JSON files against schemas
  4. Coordination System - Checks lock health and registry integrity
  5. Context Budget - Monitors token usage against budget
  6. Claude Code Version - Validates CC >= 2.1.16 for full feature support

Overview

  • After installing or updating OrchestKit
  • When hooks aren't firing as expected
  • When permission rules seem to have no effect
  • Before deploying to a team environment
  • When debugging coordination issues

Quick Start

/ork:doctor

Health Check Categories

1. Permission Rules Analysis

Leverages CC 2.1.3's unreachable permission rules detection:

# Checks performed:
# - Rules that can never match (unreachable patterns)
# - Overlapping rules where one shadows another
# - Invalid matcher syntax
# - Missing required fields

Output:

Permission Rules: 12/12 reachable
- auto-approve-readonly.sh: OK
- auto-approve-safe-bash.sh: OK (3 patterns)
- auto-approve-project-writes.sh: OK

2. Hook Validation

Verifies all 93 hooks are properly configured:

# Checks performed:
# - chmod +x (executable permission)
# - Shebang line present (#!/usr/bin/env bash)
# - Dispatcher references valid
# - Matcher patterns syntax correct
# - No missing hook files referenced in settings.json

Output:

Hooks: 147/147 valid
- pretool/bash/git-branch-protection.sh: executable, 73 lines
- posttool/audit-logger.sh: executable, 89 lines
- stop/context-compressor.sh: executable, 207 lines

3. Schema Compliance

Validates JSON files against schemas in .claude/schemas/:

# Files validated:
# - plugin.json against plugin.schema.json
# - All SKILL.md files
# - context/*.json files
# - coordination/*.json files

Output:

Schemas: 15/15 compliant
- plugin.json: valid
- skills/*/SKILL.md: 79/79 valid
- context/session/state.json: valid

4. Coordination System

Checks multi-worktree coordination health:

# Checks performed:
# - work-registry.json integrity
# - decision-log.json structure
# - Stale locks (expired > 60s)
# - Heartbeat status

Output:

Coordination: healthy
- Active instances: 1
- Stale locks: 0
- Decision log entries: 42

5. Context Budget

Monitors token usage against the 2200 token budget:

# Calculations:
# - identity.json tokens
# - session/state.json tokens
# - knowledge/*.json tokens
# - Active skill context tokens

Output:

Context Budget: 1850/2200 tokens (84%)
- identity.json: 200 tokens
- session/state.json: 450 tokens
- knowledge/: 1200 tokens

6. Claude Code Version

Validates runtime Claude Code version meets minimum requirements:

# Checks performed:
# - Runtime version >= 2.1.16 (minimum for OrchestKit 5.x)
# - Feature availability detection (Task tools, VSCode plugins)
# - Upgrade guidance for older versions

Output:

Claude Code Version: 2.1.16 (OK)
- Task Management: available (TaskCreate, TaskUpdate, TaskGet, TaskList)
- VSCode Plugins: available
- Engine requirement: >=2.1.16 (satisfied)

Upgrade guidance (if older version):

Claude Code Version: 2.1.14 (OUTDATED)
- Missing features: Task Management, VSCode native plugins
- Upgrade: Run 'claude update' or reinstall from https://claude.ai/download
- Some OrchestKit features may not work correctly

Report Format

+==================================================================+
|                    OrchestKit Health Report                       |
+==================================================================+
| Version: 5.0.0  |  CC: 2.1.16  |  Channel: stable                |
+==================================================================+
| Permission Rules     | 12/12 reachable                           |
| Hooks                | 93/93 valid                               |
| Schemas              | 15/15 compliant                           |
| Context Budget       | 1850/2200 tokens (84%)                    |
| Coordination         | 0 stale locks                             |
| CC Version           | 2.1.16 (OK)                               |
+==================================================================+

Interpreting Results

StatusMeaningAction
All checks passPlugin healthyNone required
Permission warningUnreachable rulesReview .claude/settings.json
Hook errorMissing/broken hookCheck file permissions and paths
Schema errorInvalid JSONRun schema validation script
Budget warning>80% context usedReview loaded skills
Coordination errorStale locksRun cleanup script
CC version warningOutdated Claude CodeRun claude update to upgrade

Troubleshooting

"Permission rule unreachable"

# Check if a more specific rule shadows this one
# Example: "*.md" shadowed by "README.md"
cat .claude/settings.json | jq '.permissions'

"Hook not executable"

# Fix permissions
chmod +x .claude/hooks/path/to/hook.sh

"Context budget exceeded"

# Check which skills are loaded
# Use progressive loading - don't load entire skill directories

Integration

This skill works with:

  • quality-gates - For CI/CD integration
  • security-scanning - For comprehensive audits
  • configure: Configure plugin settings

References

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon