requirements-mcp-server: Command for Claude Code

.claude/commands/miyabi-todos.md

miyabi-todos is a command for Claude Code from sawadari/requirements-mcp-server. It costs 9 tokens per session (2,622 once invoked), scanned A, original, MIT.

A command that finds TODO, FIXME, HACK, XXX, and NOTE comments in source code and can turn them into GitHub Issues. GitHub Issues are tasks or bug reports tracked alongside a repository.

In plain words
What is it for?
Use it to scan a source folder or whole project, report matching comments, and optionally create labelled GitHub Issues with priorities, owners, or deadlines.
Why use it?
It helps prevent unfinished work and code warnings from being forgotten in comments. It also checks for duplicate Issues before creating new ones.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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-todos.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-todos

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sawadari/requirements-mcp-server/miyabi-todos"><img src="https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/miyabi-todos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00009 $0.02622
Opus 5 $0.00005 $0.01311
Sonnet 5 $0.00002 $0.00524
Haiku 4.5 $0.00001 $0.00262

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

Security

Grade A, and why

miyabi-todos scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/miyabi-todos.md · 370 lines

How it starts

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

Miyabi TODOコメント自動検出

コード内のTODOコメントを自動的に検出して、GitHub Issueを作成します。

MCPツール

miyabi__todos

TODOコメントをスキャンしてIssue作成

パラメータ:

  • path: スキャン対象パス(デフォルト: ./src
  • autoCreate: 自動的にIssue作成するか(デフォルト: false)

使用例:

TODOをスキャンして表示:
miyabi__todos({ path: "./src" })

TODOを検出して自動的にIssue作成:
miyabi__todos({ path: "./src", autoCreate: true })

プロジェクト全体をスキャン:
miyabi__todos({ path: "." })

動作フロー

コードベーススキャン
    ↓
TODOコメント検出
    ↓
重複チェック(既存Issueとの照合)
    ↓
[autoCreate=true の場合]
    ↓
GitHub Issue自動作成
    ↓
適切なLabel付与
    ↓
結果レポート表示

検出パターン

Miyabiは以下のパターンのTODOコメントを検出します:

基本パターン

// TODO: ユーザー認証機能を追加
// FIXME: エラーハンドリングを改善
// HACK: 一時的な回避策(後で修正)
// XXX: 要確認・注意が必要
// NOTE: 重要な実装メモ

優先度付き

// TODO(P0): 緊急対応が必要
// TODO(P1): 高優先度
// TODO(P2): 通常優先度
// TODO(P3): 低優先度

担当者指定

// TODO(@username): ユーザー認証実装
// FIXME(@team-frontend): UIバグ修正

期限付き

// TODO(2025-12-31): 年内に実装
// FIXME(before-v1.0): リリース前に修正

複合

// TODO(P1)(@backend-team)(2025-11-01): API実装

Issue作成時のLabel付与

自動的に以下のLabelが付与されます:

TODOタイプ Label 優先度
TODO type:feature, source:code-todo 規模により自動判定
FIXME type:bug, source:code-fixme 緊急度-中
HACK type:refactor, source:code-hack 技術的負債
XXX type:investigation, source:code-xxx 要確認
NOTE type:docs, source:code-note ドキュメント

優先度マッピング

  • P0緊急度-即時
  • P1緊急度-高
  • P2緊急度-中
  • P3緊急度-低

コマンドライン実行

MCPツールの代わりにコマンドラインでも実行可能:

# TODOをスキャンして表示
npx miyabi todos --path ./src

# 自動的にIssue作成
npx miyabi todos --path ./src --auto-create

# 特定のパターンのみ検出
npx miyabi todos --path . --pattern "TODO|FIXME"

# ドライラン(Issue作成しない)
npx miyabi todos --path ./src --auto-create --dry-run

環境変数

.env ファイルに以下を設定:

GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
REPOSITORY=owner/repo

出力形式

スキャン結果(autoCreate=false)

📝 TODOスキャン結果

検出: 15件

src/auth/login.ts:42
  // TODO(P1): MFA対応を追加
  タイプ: TODO
  優先度: P1
  ファイル: src/auth/login.ts:42

src/api/users.ts:123
  // FIXME: レート制限エラー処理を改善
  タイプ: FIXME
  ファイル: src/api/users.ts:123

...

サマリー:
  TODO: 8件
  FIXME: 4件
  HACK: 2件
  XXX: 1件

推奨アクション:
  1. npx miyabi todos --auto-create でIssue化
  2. 高優先度(P0/P1)から対応

Read the full file on GitHub · 370 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. 11d ago First seen · 370 lines · 9 tokens per session scan A f92ecb708183

Subscribe to this mod's changes

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