requirements-mcp-server: Command for Claude Code

.claude/commands/miyabi-doctor.md

miyabi-doctor is a command for Claude Code from sawadari/requirements-mcp-server. It costs 10 tokens per session (888 once invoked), scanned B, original, MIT.

A project health-check command for Miyabi integrations and their working environment. It checks Node.js, Git, GitHub CLI, authentication, network access, the repository, and Claude Code.

In plain words
What is it for?
Use it before troubleshooting Miyabi or when checking whether a project environment is ready.
Why use it?
It finds missing tools, credentials, or connections that could stop the project from working.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is sawadari/requirements-mcp-server's own configuration. It tells Claude Code how to work on requirements-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything requirements-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sawadari/requirements-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sawadari/requirements-mcp-server/main/.claude/commands/miyabi-doctor.md
Clone the repo
git clone --depth 1 https://github.com/sawadari/requirements-mcp-server

Made for: Claude Code.

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 miyabi-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/miyabi-doctor/github.svg)](https://agentmods.dev/commands/sawadari/requirements-mcp-server/miyabi-doctor)
Your own site
<a href="https://agentmods.dev/commands/sawadari/requirements-mcp-server/miyabi-doctor"><img src="https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/miyabi-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 miyabi-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/sawadari/requirements-mcp-server/miyabi-doctor"><img src="https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/miyabi-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 888 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00010 $0.00888
Opus 5 $0.00005 $0.00444
Sonnet 5 $0.00002 $0.00178
Haiku 4.5 $0.00001 $0.00089

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

Security

Grade B, and why

miyabi-doctor scanned grade B 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 12d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install gh
.claude/commands/miyabi-doctor.md · 140 lines

How it starts

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

Miyabi Doctor - システム診断

プロジェクトのMiyabi統合状態と環境の健全性をチェックします。

実行内容

  1. Node.js - バージョンと互換性確認
  2. Git - インストールとアクセシビリティ
  3. GitHub CLI - インストールと認証状態
  4. GITHUB_TOKEN - 環境変数の設定確認
  5. Network - GitHub APIへの接続性
  6. Repository - Gitリポジトリの検出とリモート確認
  7. Claude Code - 実行環境の検出

使い方

Claude Code内で以下のように依頼してください:

Miyabiのシステムヘルスチェックを実行してください

または

miyabi doctorを実行して、問題がないか確認してください

MCPツール

このコマンドは以下のMCPツールを使用します:

  • miyabi__doctor - システムヘルスチェックの実行

出力例

{
  "checks": [
    {
      "name": "Node.js",
      "status": "pass",
      "message": "v22.20.0 (OK)",
      "details": "Node.js v22.20.0 meets minimum requirement (≥18)"
    },
    {
      "name": "GITHUB_TOKEN",
      "status": "fail",
      "message": "Not set",
      "suggestion": "Set GITHUB_TOKEN environment variable or run 'gh auth login'"
    }
  ],
  "summary": {
    "passed": 6,
    "warned": 0,
    "failed": 1,
    "total": 7
  },
  "overallStatus": "critical"
}

ステータスの意味

  • pass ✅ - 問題なし
  • warn ⚠️ - 警告(動作するが改善推奨)
  • fail ❌ - エラー(機能が制限される)

トラブルシューティング

GITHUB_TOKEN が fail

解決方法:

  1. .envファイルに GITHUB_TOKEN=ghp_xxx を追加
  2. 環境変数として設定: export GITHUB_TOKEN=ghp_xxx
  3. または gh auth login を実行

GitHub CLI が fail

解決方法:

# Windows (winget)
winget install GitHub.cli

# Mac (Homebrew)
brew install gh

# Linux (apt)
sudo apt install gh

Node.js バージョンが古い

解決方法:

自動修復

一部の問題は自動修復可能です:

miyabi doctor --fix

これにより、以下が試行されます:

  • GitHub CLIの自動認証
  • 環境変数の設定提案
  • 不足パッケージのインストール提案

CI/CDでの使用

GitHub Actionsで自動チェック:

- name: Miyabi Health Check
  run: npx miyabi doctor --json

失敗時にビルドを停止:

- name: Miyabi Health Check
  run: |
    RESULT=$(npx miyabi doctor --json)
    STATUS=$(echo $RESULT | jq -r '.overallStatus')
    if [ "$STATUS" = "critical" ]; then
      echo "Critical issues found"
      exit 1
    fi

💡 ヒント: 定期的に miyabi doctor を実行して、環境の健全性を保ちましょう。

Read the full file on GitHub · 140 lines

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. 12d ago First seen · 140 lines · 10 tokens per session scan B 9a3d61b708d1

Subscribe to this mod's changes

miyabi-doctor is a command published in the GitHub repository sawadari/requirements-mcp-server (2 stars, last pushed 10mo ago), licensed MIT. It adds 10 tokens to every session and 888 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.