mcp-gauge: Command for Claude Code

.claude/commands/add-feature.md

add-feature is a command for Claude Code from sogawa-yk/mcp-gauge. It costs 22 tokens per session (2,123 once invoked), scanned A, a copy of add-feature, MIT.

A command workflow for adding a named feature to an existing project. It creates planning files, studies current code patterns, and works through an implementation task list.

In plain words
What is it for?
Use it to plan and implement features such as user-profile editing while following the project's existing structure and conventions.
Why use it?
It gives feature work a repeatable path from requirements and design to implementation and verification. It also records the plan and progress in project files.

Command for Claude Code

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

This is sogawa-yk/mcp-gauge's own configuration. It tells Claude Code how to work on mcp-gauge 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 mcp-gauge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sogawa-yk/mcp-gauge. 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/sogawa-yk/mcp-gauge/main/.claude/commands/add-feature.md
Clone the repo
git clone --depth 1 https://github.com/sogawa-yk/mcp-gauge

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 add-feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/sogawa-yk/mcp-gauge/add-feature/github.svg)](https://agentmods.dev/commands/sogawa-yk/mcp-gauge/add-feature)
Your own site
<a href="https://agentmods.dev/commands/sogawa-yk/mcp-gauge/add-feature"><img src="https://agentmods.dev/badge/commands/sogawa-yk/mcp-gauge/add-feature/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 add-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/sogawa-yk/mcp-gauge/add-feature"><img src="https://agentmods.dev/badge/commands/sogawa-yk/mcp-gauge/add-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,123 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 100% copy Near-identical to another mod 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.00022 $0.02123
Opus 5 $0.00011 $0.01061
Sonnet 5 $0.00004 $0.00425
Haiku 4.5 $0.00002 $0.00212

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

Security

Grade A, and why

add-feature 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 10d 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.

Origin

This is a copy

100% identical to add-feature — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/add-feature.md · 132 lines

How it starts

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

新機能の追加 (完全自動実行モード)

重要: このワークフローは、ユーザーの介入なしに、開始から完了まで完全に自動で実行されるように設計されています。各ステップは完了後、ただちに次のステップへ移行してください。思考の途中でユーザーに確認を求めたり、作業を中断したりしないでください。

引数: 機能名 (例: /add-feature ユーザープロフィール編集)


ステップ1: 準備とコンテキスト設定

  1. 現在のタスクコンテキストを確立する:
  • 機能名: [引数で与えられた機能名]
  • 日付: [現在の日付をYYYYMMDD形式で取得]
  • ステアリングディレクトリパス: .steering/[日付]-[機能名]/
  1. 上記ステアリングディレクトリを作成する。
  2. 以下の3つの空ファイルを作成する:
  • [ステアリングディレクトリパス]/requirements.md
  • [ステアリングディレクトリパス]/design.md
  • [ステアリングディレクトリパス]/tasklist.md

ステップ2: プロジェクト理解

  1. CLAUDE.mdを読み、プロジェクトの全体像を把握する。
  2. docs/ディレクトリ内の永続ドキュメントを確認し、関連する設計思想やアーキテクチャを理解する。

ステップ3: 既存パターンの調査

  1. Grepツールを使用し、機能名に関連するキーワードでソースコード(src/)を検索する。
Grep('[機能に関連するキーワード]', 'src/')
  1. 検索結果を分析し、既存の実装パターン、命名規則、コンポーネントの利用方法を特定する。

ステップ4: 計画フェーズ (ステアリングファイルの自動生成)

  1. Skill('steering')計画モードで実行し、ステップ1で作成した3つのファイル (requirements.md, design.md, tasklist.md) の内容を生成する。
  2. このステップが正常に完了したら、決して停止せず、ただちにステップ5に進むこと。

ステップ5: 実装ループ (tasklist.mdの完全消化)

このステップは、tasklist.mdの全タスクが [x] になるまで自動で繰り返されるループ処理です。 このステップが正常に完了したら、決して停止せず、ただちにステップ6に進むこと。

ループ開始:

  1. タスクリストの読み込み:
  • [ステアリングディレクトリパス]/tasklist.mdファイルを読み込む。
  1. 進捗の確認:
  • ファイル内に未完了タスク ([ ]) が存在するか確認する。
  • もし未完了タスクが存在しない場合: この実装ループは完了とみなし、ただちにステップ6へ進む。
  • もし未完了タスクが存在する場合: 次の処理(3. タスクの実行)に進む。
  1. タスクの実行:
  • tasklist.md先頭にある未完了タスクを1つ特定する。
  • そのタスクを完了させるために必要な実装作業を実行する。
  • Skill('steering')実装モードで使用する。
  • Skill('development-guidelines')のコーディング規約を常に遵守する。
  1. タスクリストの更新:
  • 実行したタスクが完了したら、Editツールを使用してtasklist.mdを更新し、該当タスクを [ ] から [x] に変更する。
  1. ループ継続:
  • ステップ5の先頭 (1. タスクリストの読み込み) に戻り、処理を繰り返す。

※ 実装ループ内の例外処理ルール ※

実装ループの実行中に以下の状況が発生した場合は、このルールに従って自律的に対処し、ループを継続すること。

  • ルールA: タスクが大きすぎる場合

    • 対処法: 現在のタスクをより小さな複数のサブタスクに分割する。Editツールを使い、元のタスクを削除し、その場所に新しいサブタスク([ ]付き)を挿入する。その後、ループを継続する。
  • ルールB: 技術的理由でタスクが不要になった場合

    • 条件: 実装方針の変更、アーキテクチャの変更、依存関係の変更など、明確な技術的理由がある場合にのみ適用。
    • 対処法: Editツールを使い、該当タスクを [x] ~~タスク名~~ (理由: [具体的な技術的理由を簡潔に記述]) の形式で更新する。その後、ループを継続する。

Read the full file on GitHub · 132 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. 10d ago First seen · 132 lines · 22 tokens per session scan A fad9e63f75fb

Subscribe to this mod's changes

add-feature is a command published in the GitHub repository sogawa-yk/mcp-gauge (0 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 2,123 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to add-feature, differing in 0 lines, and is treated as a copy.