Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/akiojin/unity-mcp-server/analyzegit clone --depth 1 https://github.com/akiojin/unity-mcp-serverWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00031 | $0.01653 |
| Opus 5 | $0.00015 | $0.00826 |
| Sonnet 5 | $0.00006 | $0.00331 |
| Haiku 4.5 | $0.00003 | $0.00165 |
Grade A, and why
analyze 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 2d 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.
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.
ユーザー入力
$ARGUMENTS
空でない場合、続行する前にユーザー入力を考慮する必要があります。
目的
/speckit.tasks が完全な tasks.md を生成した後、実装前に3つのコアアーティファクト(spec.md、plan.md、tasks.md)間の矛盾、重複、曖昧さ、未指定項目を特定する。
重要な制約
- 厳密に読み取り専用: ファイルを編集しない。構造化された分析レポートのみ出力。修復計画は任意で提示(ユーザーが明示的に承認するまで編集しない)。
- 憲章優先: プロジェクト憲章(
/memory/constitution.md)はこの分析スコープ内で交渉不可。憲章との矛盾は自動的にCRITICALとなり、仕様・計画・タスクの調整が必要。
実行手順
1. 分析コンテキスト初期化
{SCRIPT} をリポジトリルートから1回実行し、JSONから FEATURE_DIR と AVAILABLE_DOCS を取得。絶対パスを導出:
- SPEC = FEATURE_DIR/spec.md
- PLAN = FEATURE_DIR/plan.md
- TASKS = FEATURE_DIR/tasks.md
必須ファイルが欠けている場合はエラーメッセージで中断。
2. アーティファクト読み込み(段階的開示)
各アーティファクトから最小限必要なコンテキストのみ読み込む:
spec.md から:
- 概要/コンテキスト
- 機能要件
- 非機能要件
- ユーザーストーリー
- エッジケース(あれば)
plan.md から:
- アーキテクチャ/スタック選択
- データモデル参照
- フェーズ
- 技術的制約
tasks.md から:
- タスクID
- 説明
- フェーズグルーピング
- 並列マーカー [P]
- 参照ファイルパス
憲章から:
/memory/constitution.mdを原則検証のため読み込み
3. 検出パス(トークン効率的分析)
高信号の発見に焦点を当てる。合計50件まで、残りはオーバーフローサマリーに集約。
A. 重複検出
- 類似した要件を特定
- 低品質な表現を統合対象としてマーク
B. 曖昧さ検出
- 測定可能な基準のない曖昧な形容詞(高速、スケーラブル、セキュア、直感的、堅牢)をフラグ
- 未解決のプレースホルダー(TODO, TKTK, ???,
<placeholder>等)をフラグ
C. 未指定
- 動詞があるが目的語や測定可能な結果がない要件
- 受け入れ基準の整合性がないユーザーストーリー
- spec/planで定義されていないファイルやコンポーネントを参照するタスク
D. 憲章整合
- MUST原則と矛盾する要件や計画要素
- 憲章からの必須セクションや品質ゲートの欠落
E. カバレッジギャップ
- 関連タスクがゼロの要件
- 要件/ストーリーにマッピングされないタスク
- タスクに反映されない非機能要件(パフォーマンス、セキュリティ等)
F. 不整合
- 用語のドリフト(ファイル間で同じ概念が異なる名前)
- 計画で参照されているがspecにないデータエンティティ(またはその逆)
- タスク順序の矛盾
4. 深刻度割り当て
- CRITICAL: 憲章のMUST違反、コアspecアーティファクトの欠落、基本機能をブロックするゼロカバレッジ要件
- HIGH: 重複/矛盾要件、曖昧なセキュリティ/パフォーマンス属性、テスト不能な受け入れ基準
- MEDIUM: 用語ドリフト、非機能タスクカバレッジ欠落、未指定エッジケース
- LOW: スタイル/表現改善、実行順序に影響しない軽微な冗長性
5. 分析レポート出力
以下の構造でMarkdownレポートを出力(ファイル書き込みなし):
仕様分析レポート
| ID | カテゴリ | 深刻度 | 場所 | 要約 | 推奨 |
|---|---|---|---|---|---|
| A1 | 重複 | HIGH | spec.md:L120-134 | 類似要件2つ... | より明確な版を保持して統合 |
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.
- 2d ago First seen · 140 lines · 31 tokens per session scan A 1de180f9c544
analyze is a command published in the GitHub repository akiojin/unity-mcp-server (34 stars, last pushed 9d ago), licensed MIT. It adds 31 tokens to every session and 1,653 once invoked, about $0.0002 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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.