本文へ移動
cccskills
無料GitHub で公開

doctor

System diagnostics and health checks for Diverga plugin. OpenClaw-style Check-Report-Fix pattern with 5-layer diagnostics. Triggers: /diverga:doctor, diverga doctor, system check, diagnose, 진단

インストール方法を見る

含まれるファイル(1)

  • SKILL.md9.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Diverga Doctor

Version: 11.1.0 Trigger: /diverga:doctor

Description

System diagnostics for the Diverga plugin. Checks plugin health, skill sync, hook enforcement, configuration validity, API keys, and project state. Reports issues with actionable fix commands.

Follows OpenClaw Check-Report-Fix pattern: every detected issue includes a fix recommendation.

Instructions

When user invokes /diverga:doctor, execute all 7 diagnostic layers sequentially and display results.

Layer 1: Plugin Health

Check plugin registration:

  • Read ~/.claude/plugins/installed_plugins.json
  • Verify diverga@diverga entry exists
  • Extract version and install date

Check config JSON validity:

  • Read ~/.claude/plugins/diverga/config/diverga-config.json
  • Verify it parses as valid JSON
  • Check required fields exist: version, human_checkpoints, language

Report format:

PLUGIN HEALTH
  Registration:    [PASS - diverga@diverga v11.1.0 | FAIL - not found in installed_plugins.json]
  Config file:     [PASS - valid JSON | FAIL - missing or invalid]
  Config fields:   [PASS - all required fields present | WARN - missing: field1, field2]

Fix if FAIL:

  • Registration missing: "Run: /plugin install diverga"
  • Config missing: "Run: /diverga:setup to regenerate configuration"
  • Config invalid JSON: "Config file is corrupted. Run: /diverga:setup to regenerate"

Layer 2: Skill Sync

Check skill counts match between plugin and local cache:

  • Use Glob to count directories in ~/.claude/plugins/diverga/skills/*/SKILL.md
  • Use Glob to count directories in ~/.claude/skills/diverga-*/SKILL.md (exclude diverga-diverga prefix duplication — count unique skill names)
  • Compare counts

Check for missing skills in local cache:

  • For each skill in plugin directory, check if corresponding diverga-{name} exists in local skills
  • List any missing skills

Report format:

SKILL SYNC
  Plugin skills:   [count] skills in plugin directory
  Local skills:    [count] skills in local cache
  Sync status:     [PASS - all synced | WARN - X skills missing locally]
  Missing:         [list of missing skill names, if any]

Fix if WARN:

  • "Missing local skills. To resync, reinstall the plugin or manually copy:"
  • For each missing skill: " cp -r ~/.claude/plugins/diverga/skills/{name} ~/.claude/skills/diverga-{name}"

Layer 3: Plugin Cache Sync

Check that the plugin cache matches the installed version:

  • Read ~/.claude/plugins/diverga/plugin.json → extract version
  • Glob ~/.claude/plugins/cache/diverga/diverga/*/plugin.json → list cached versions
  • Compare: cached version should match installed version
  • Check if cached version has hooks/hooks.json

Report format:

PLUGIN CACHE
  Installed version: [11.1.0 | FAIL - plugin.json missing]
  Cached version:    [11.1.0 | WARN - stale cache: 8.0.1 | FAIL - no cache found]
  Cache has hooks:   [PASS - hooks.json present | FAIL - hooks missing from cache]
  Cache has agents:  [PASS - agents/ present | WARN - agents/ missing]

Fix if WARN/FAIL:

  • Stale cache: "Plugin cache is outdated. Run in terminal:"
    REPO="/Volumes/External SSD/Projects/Diverga/Diverga-core"
    CACHE="$HOME/.claude/plugins/cache/diverga/diverga/11.1.0"
    rm -rf "$HOME/.claude/plugins/cache/diverga/diverga/8.0.1"
    mkdir -p "$CACHE"
    cp -R "$REPO"/{skills,agents,config,hooks,mcp,CLAUDE.md,AGENTS.md,README.md} "$CACHE/"
    cp "$REPO/.claude-plugin/plugin.json" "$CACHE/"
    
  • No hooks in cache: "Copy hooks manually: cp -R ~/.claude/plugins/diverga/hooks/ $CACHE/hooks/"
  • Restart Claude Code after cache update for changes to take effect

Layer 4: Hook Enforcement

Check hook configuration:

  • Read ~/.claude/plugins/diverga/hooks/hooks.json → verify it exists and has PreToolUse entries
  • Check matchers include "Agent" and "Skill" (not "Task" — known bug in pre-11.1.0)
  • Read ~/.claude/settings.json → check if hooks are also configured at global level
  • Test hook execution: Run echo '{"tool_name":"Skill","tool_input":{"skill":"diverga:c1"}}' | node ~/.claude/plugins/diverga/hooks/prereq-enforcer.mjs → verify it returns valid JSON with continue field

Report format:

HOOK ENFORCEMENT
  Plugin hooks.json: [PASS - exists with Agent+Skill matchers | FAIL - missing or wrong matchers]
  Global hooks:      [PASS - configured in settings.json | WARN - not in settings.json (relies on plugin)]
  Hook executable:   [PASS - returns valid JSON | FAIL - execution error]
  Matcher check:     [PASS - uses "Agent" | FAIL - uses stale "Task" matcher]

Fix if issues found:

  • Wrong matcher: 'Change "Task" to "Agent" in hooks.json — Claude Code uses "Agent" as tool name'
  • Not in settings.json: "Add hooks to ~/.claude/settings.json for reliable enforcement across sessions"
  • Execution error: "Check that better-sqlite3 is installed: cd ~/.claude/plugins/diverga/mcp && npm install"

Layer 5: Config Validity

Deep validation of diverga-config.json:

  • Read ~/.claude/plugins/diverga/config/diverga-config.json
  • Check version field matches "11.1.0"
  • Check human_checkpoints object exists and has enabled (boolean) and required (array)
  • Check language is one of: "en", "ko", "auto"
  • Check model_routing has high, medium, low keys if present

Report format:

CONFIG VALIDITY
  Version field:   [PASS - 11.1.0 | WARN - version mismatch: found X.Y.Z]
  Checkpoints:     [PASS - configured | FAIL - missing or malformed]
  Language:        [PASS - "en" | WARN - unexpected value: "XX"]
  Model routing:   [PASS - configured | SKIP - not set (using defaults)]

Fix if issues found:

  • Version mismatch: "Config version X.Y.Z doesn't match plugin 11.1.0. Run: /diverga:setup to update"
  • Checkpoints malformed: "Run: /diverga:setup to reconfigure checkpoints"

Layer 6: API Keys

Check 8 environment variables using Bash tool (echo $VAR_NAME):

VariablePurposeRequired?
GROQ_API_KEYLLM screening (recommended)Recommended
ANTHROPIC_API_KEYClaude APIRecommended
OPENAI_API_KEYOpenAI screeningOptional
GEMINI_API_KEYGemini visualizationOptional
SEMANTIC_SCHOLAR_API_KEYPaper retrievalOptional
OPENALEX_EMAILOpenAlex polite poolOptional
SCOPUS_API_KEYScopus accessOptional
WOS_API_KEYWeb of ScienceOptional

For each variable, use Bash: echo "${VAR_NAME:+configured}" — if output is "configured", it's set; if empty, it's not set.

Report format:

API STATUS
  Groq:              [configured | NOT SET -> export GROQ_API_KEY=your_key]
  Anthropic:         [configured | NOT SET -> export ANTHROPIC_API_KEY=your_key]
  OpenAI:            [configured | not set (optional)]
  Gemini:            [configured | not set (optional)]
  Semantic Scholar:  [configured | not set (optional)]
  OpenAlex:          [configured | not set (optional)]
  Scopus:            [configured | not set (optional)]
  Web of Science:    [configured | not set (optional)]

Fix if NOT SET (recommended keys):

  • Show export VAR_NAME=your_key_here for each missing recommended key
  • For optional keys, just note "(optional)" — no urgent fix needed

Layer 7: Project State

Check for active research project:

  • Use Glob to check if .research/project-state.yaml exists in current working directory
  • If exists: Read it and validate YAML structure (has project_name, current_stage)
  • Also check if .research/ directory exists with expected subdirectories

Report format:

PROJECT STATE
  Active project:  [project name | No active project]
  State file:      [PASS - valid | WARN - invalid YAML | SKIP - no project]
  Research dir:    [PASS - structure intact | WARN - missing subdirs | SKIP - no project]

Fix if issues:

  • Invalid YAML: "Project state file is corrupted. Run: /diverga:setup in your project directory"
  • Missing subdirs: "Run: /diverga:setup to reinitialize project structure"
  • No project: "Start a new project with: /diverga:setup or describe your research topic"

Final Summary

After all 7 layers, display overall status:

══════════════════════════════════════════════
DIVERGA SYSTEM DIAGNOSTICS v11.1.0
══════════════════════════════════════════════

[Layer 1-7 results as shown above]

------------------------------------------
OVERALL: [HEALTHY | X WARNING(S) | X ERROR(S)]

[If issues found, numbered list:]
  1. [Issue description] -> [Fix command]
  2. [Issue description] -> [Fix command]
  ...

[If healthy:]
  All systems operational. Diverga is ready to use.
  Run /diverga:help to see all 24 agents and commands.
══════════════════════════════════════════════

Implementation Notes

  • Execute all Bash commands for API key checks in PARALLEL (single message, multiple Bash calls)
  • Use Read tool for JSON/YAML file checks
  • Use Glob tool for skill counting
  • This skill is READ-ONLY — it does not modify any files
  • If any individual check encounters an error (file not readable, etc.), show "UNABLE TO CHECK" rather than crashing
  • Total execution target: under 10 seconds

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

a1

無料

VS-Enhanced Research Question Refiner - Prevents Mode Collapse and derives differentiated research questions Enhanced VS 3-Phase process: Modal question avoidance, alternatives presentation, differentiated RQ recommendation Use when: refining research ideas, formulating research questions, clarifying scope Triggers: research question, 연구 질문, PICO, SPIDER, research idea

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a2

無料

VS-Enhanced Theoretical Framework Architect with Critique & Visualization Full VS 5-Phase process: Modal theory avoidance, Long-tail exploration, differentiated framework presentation Absorbed A3 (Devil's Advocate) critique and A6 (Conceptual Framework Visualizer) capabilities Use when: building theoretical foundations, designing conceptual models, deriving hypotheses, critiquing frameworks, visualizing models Triggers: theoretical framework, 이론적 프레임워크, conceptual model, 개념적 모형, hypothesis derivation, critique, devil's advocate, 반론, visualization, diagram

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a5

無料

Agent A5 - Paradigm & Worldview Advisor - Philosophical foundations for research design. Covers ontology, epistemology, axiology, and methodology alignment. Use when: establishing philosophical foundations, justifying methodological choices, writing positionality statements Triggers: paradigm, 패러다임, ontology, epistemology, worldview, 세계관, philosophical foundations, 철학적 기초

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Academic paper writing skill with 12-agent pipeline. v2.5: Style Calibration (learn author's writing voice from past papers) + Writing Quality Check (writing quality checklist for natural prose). Supports IMRaD, literature review, theoretical, case study, policy brief, and conference paper structures. APA 7.0 (default), Chicago, MLA, IEEE, Vancouver citation formats. Bilingual abstracts (zh-TW + EN). Multi-format output (LaTeX, DOCX, PDF, Markdown). Triggers on: write paper, academic paper, paper outline, write abstract, revise paper, check citations, convert to LaTeX, guide my paper, parse reviews, revision roadmap, 寫論文, 學術論文, 論文大綱, 寫摘要, 修改論文, 檢查引用, 引導我寫論文, 帶我規劃論文, 逐章規劃, 論文架構, 審查意見, 修訂路線圖.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want to: (1) write a paper from a detailed outline, (2) ensure quality control during writing, (3) maintain consistency across chapters, (4) prepare a submission-ready manuscript, or (5) systematically execute a planned paper. Triggered by phrases like 'write the paper from this outline,' 'compose the full manuscript,' 'execute the outline,' or when users have completed strategic planning (academic-paper-strategist skill) and are ready to write. Takes optimized outline as input; outputs complete manuscript with iterative quality checks.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Simulates 5 independent reviewers (EIC + 3 peer reviewers + Devil's Advocate) with field-specific expertise. Supports full review, re-review (verification), quick assessment, methodology focus, and Socratic guided modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

brycewang-stanford のスキルをすべて見る

このスキルの問題を報告する