/midnight-expert:doctorfrom midnight-expert
Diagnostics and health reporting for the midnight-expert ecosystem. Checks plugin installation, MCP servers, external tools, cross-references, and NPM registry.
Ships in midnight-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Comprehensive diagnostic and health report for the midnight-expert ecosystem.
/midnight-expert:doctor — run diagnostics interactively, offer fixes one at a time/midnight-expert:doctor --auto-fix — install missing dependencies silently, prompt only for upgrades and preference choicesLaunch all 5 diagnostic agents in background AND ask the user a question — in a single message with 6 tool calls (5 Agent + 1 AskUserQuestion).
Each agent has subagent_type: "general-purpose" and run_in_background: true. Each agent must run its bash command and return only the raw output lines. Do not include markdown fences or any other text in the agent prompt beyond the instruction.
Run the following command and return only the output. No other text.
bash "${CLAUDE_SKILL_DIR}/scripts/check-plugins.sh"
Run the following command and return only the output. No other text.
bash "${CLAUDE_SKILL_DIR}/scripts/check-mcp-servers.sh"
Run the following command and return only the output. No other text.
bash "${CLAUDE_SKILL_DIR}/scripts/check-ext-tools.sh"
Run the following command and return only the output. No other text.
bash "${CLAUDE_SKILL_DIR}/scripts/check-cross-refs.sh"
Run the following command and return only the output. No other text.
bash "${CLAUDE_SKILL_DIR}/scripts/check-npm.sh"
Would you also like to check Midnight Tooling status? (Compact CLI, compiler, devnet, proof server)
midnight-tooling:doctor skill (via Skill tool) and wait for it and all 5 background agents to complete.If any background agent fails (returns an error instead of structured output), include a single row in the corresponding report section:
| <section-name> | FAIL | Agent error: <error message> |
Do not skip the section — partial results are better than silence.
Parse all agent output. Each script outputs lines in the format:
CHECK_NAME | STATUS | DETAIL
Map each STATUS to a badge:
pass → PASSwarn → WARNcritical → FAILinfo → INFOPresent a single formatted report. Omit any section where all checks pass and there is an ALL_*_PASS summary line — only show sections with issues or mixed results. If ALL sections pass, show a brief "all clear" summary.
## Midnight Expert — Health Report
### Midnight Tooling (only if user opted in)
(include the delegated report from midnight-tooling:doctor)
### Plugins
| Check | Status | Details |
|-------|--------|---------|
| plugin-name | STATUS | details... |
### MCP Servers
| Check | Status | Details |
|-------|--------|---------|
| server-name | STATUS | details... |
### External Tools
| Check | Status | Details |
|-------|--------|---------|
| tool-name | STATUS | details... |
### Cross-Plugin References
| Check | Status | Details |
|-------|--------|---------|
| source → target:ref | STATUS | details... |
### NPM Registry
| Check | Status | Details |
|-------|--------|---------|
| check-name | STATUS | details... |
Do not show any intermediate bash output to the user. The report above is the only user-facing output.
Read references/fix-table.md for the fix recipes.
For each FAIL or WARN item in the report, determine the appropriate fix from the fix-table. Use the platform info line from check-ext-tools.sh to select macOS vs Linux commands.
Platform support: Midnight Expert is developed and tested on macOS and Linux only. If the platform line reports windows (a platform support FAIL is also emitted), the user is on native Windows (Git Bash/MSYS2/Cygwin), which is untested and unsupported. Do not attempt tool-by-tool fixes — instead recommend they run everything inside WSL, per the Platform Support section of references/fix-table.md. WSL reports as linux, so this never fires for WSL users.
If $ARGUMENTS contains --auto-fix:
claude mcp add).mcp.json)If no --auto-fix:
After applying any fixes, re-run only the scripts whose checks had issues to confirm resolution. Do not re-run passing scripts.
Present a final summary:
### Summary
- FAIL: N
- WARN: N
- PASS: N
- INFO: N
[If issues were fixed] Fixed N issue(s) this session.
[If remaining issues] N issue(s) require manual intervention.
[If all green] Midnight Expert ecosystem is healthy and ready for development.
${CLAUDE_SKILL_DIR}/scripts/check-plugins.sh — Plugin installation and version checks${CLAUDE_SKILL_DIR}/scripts/check-mcp-servers.sh — MCP server configuration and connectivity${CLAUDE_SKILL_DIR}/scripts/check-ext-tools.sh — External CLI tool availability and versions${CLAUDE_SKILL_DIR}/scripts/check-cross-refs.sh — Cross-plugin skill / agent / command reference validation${CLAUDE_SKILL_DIR}/scripts/check-npm.sh — NPM registry reachability and @midnight-ntwrk scope accessibilityreferences/fix-table.md — Fix recipes for all issue types with platform-specific commandsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/add-to-ecosystemmidnight-expert:add-to-ecosystemThis skill should be used when the user asks to add their project to the Midnight ecosystem, submit to Electric Capital, make a repo eligible for the EC crypto-ecosystems report, register a Midnight project, list a project in the EC report, tag a repo with `midnightntwrk` or `compact` topics, or add the canonical Midnight attribution to a README. Walks through the four Electric Capital eligibility requirements (on GitHub, public, `midnightntwrk` topic, optional `compact` topic), inserts the canonical attribution sentence into README.md, commits, pushes, and opens a PR./feedbackmidnight-expert:feedbackThis skill should be used when the user asks to "file feedback", "report a bug", "file an issue", "request a feature", "submit feedback", "send feedback to maintainers", or invokes /midnight-expert:feedback. Routes to a GitHub issue or enhancement on midnightntwrk/midnight-expert. The user types one paragraph; the skill silently scans the session transcript and environment, applies heavy redaction, and composes a maintainer-ready issue body.npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-expertOther plugins' skills for the same job