unity-mcp-server: Command for Claude Code

.claude/commands/suggest-claude-md.md

suggest-claude-md is a command for Claude Code from akiojin/unity-mcp-server. It costs 20 tokens per session (598 once invoked), scanned A, original, MIT.

A command that reviews the conversation and suggests additions to CLAUDE.md, a file that stores project guidance for Claude. It looks for project-specific practices, repeated corrections, and patterns that should stay consistent.

In plain words
What is it for?
Use it to find candidate rules or knowledge for CLAUDE.md, review the reasons for each suggestion, and apply selected changes manually or by instruction.
Why use it?
It helps capture useful decisions from a conversation instead of losing them when the session ends.

Command for Claude Code

Written for Claude Code: SessionEnd hook event. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

Nothing to install: this file belongs to akiojin/unity-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/akiojin/unity-mcp-server/main/.claude/commands/suggest-claude-md.md
Clone the repo
git clone --depth 1 https://github.com/akiojin/unity-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 suggest-claude-md

README.md
[![agentmods](https://agentmods.dev/badge/commands/akiojin/unity-mcp-server/suggest-claude-md.svg)](https://agentmods.dev/commands/akiojin/unity-mcp-server/suggest-claude-md)
Your own site
<a href="https://agentmods.dev/commands/akiojin/unity-mcp-server/suggest-claude-md"><img src="https://agentmods.dev/badge/commands/akiojin/unity-mcp-server/suggest-claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 598 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.00020 $0.00598
Opus 5 $0.00010 $0.00299
Sonnet 5 $0.00004 $0.00120
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

suggest-claude-md 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 8d 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/suggest-claude-md.md · 57 lines

What it actually says

CLAUDE.md改善提案コマンド

このコマンドは、現在の会話履歴を分析し、CLAUDE.mdに追記すべきルールや知識を自動的に提案します。

概要

AppBrewのたっくん氏が開発した手法に基づき、以下の3つの観点から会話を分析します:

  1. プロジェクト独自のルール: 標準的な実装ではなく、このプロジェクト特有の方法や制約
  2. 繰り返し指摘される内容: 同じ指摘が複数回出現し、ルール化が必要なパターン
  3. 複数箇所で統一すべき実装: 関連箇所で実装を揃えるべきパターン

使い方

  1. コマンド実行

    /suggest-claude-md
    
  2. 提案内容の確認

    • AIが会話履歴を分析し、CLAUDE.mdへの追記候補を提示します
    • 各提案には、なぜそのルールが必要かの理由も含まれます
  3. CLAUDE.mdへの適用

    • 提案内容を確認後、以下のように指示してください:
      この提案をCLAUDE.mdに追記してください
      
    • または、手動で必要な部分のみをCLAUDE.mdに追記することも可能です

自動実行

セッション終了時(SessionEnd)またはコンテキスト圧縮前(PreCompact)に自動的にこのコマンドが実行されます。

自動実行を一時的に無効化したい場合は、環境変数を設定してください:

export SUGGEST_CLAUDE_MD_RUNNING=1

スクリプト実行

以下のスクリプトが会話履歴を分析します:

scripts/suggest-claude-md.sh

参考記事

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. 8d ago First seen · 57 lines · 20 tokens per session scan A d999b96a0d4e

Subscribe to this mod's changes

suggest-claude-md is a command published in the GitHub repository akiojin/unity-mcp-server (34 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 598 once invoked, about $0.0001 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-30.