architecture-review

architecture-review is a command for Claude Code from Kewton/CommandMate. It costs 11 tokens per session (1,222 once invoked), scanned A, original, MIT.

A design-review command that examines a software design document or source folder for structure, performance, security, system fit, and technical risks.

In plain words
What is it for?
Use it to review APIs, modules, or architecture documents and receive scores, comments, risk assessments, and improvement suggestions.
Why use it?
It helps reveal design weaknesses and security gaps before implementation makes them expensive to fix.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/kewton/commandmate/architecture-review
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

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 architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/kewton/commandmate/architecture-review.svg)](https://agentmods.dev/commands/kewton/commandmate/architecture-review)
Your own site
<a href="https://agentmods.dev/commands/kewton/commandmate/architecture-review"><img src="https://agentmods.dev/badge/commands/kewton/commandmate/architecture-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,222 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.01222
Opus 5 $0.00005 $0.00611
Sonnet 5 $0.00002 $0.00244
Haiku 4.5 $0.00001 $0.00122

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

Security

Grade A, and why

architecture-review 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 4d 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/architecture-review.md · 147 lines

How it starts

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

アーキテクチャレビューコマンド

概要

設計書のレビュー、リスク評価、改善提案を行うコマンドです。

使用方法

/architecture-review [設計書パス]

:

/architecture-review docs/design/api-spec.md
/architecture-review src/lib/

実行内容

あなたはシニアソフトウェアアーキテクトです。以下の観点から設計レビューを実施してください:

1. 設計原則の遵守確認

SOLID原則チェック
  • Single Responsibility: 各モジュールが単一の責任を持っているか
  • Open/Closed: 拡張に開いて修正に閉じているか
  • Liskov Substitution: 派生クラスが基底クラスと置換可能か
  • Interface Segregation: インターフェースが適切に分離されているか
  • Dependency Inversion: 依存関係が適切に逆転しているか
その他の原則
  • KISS原則: シンプルさが保たれているか
  • YAGNI原則: 不要な複雑性がないか
  • DRY原則: 重複が排除されているか

2. アーキテクチャ評価

構造的品質
評価項目 スコア(1-5) コメント
モジュール性
結合度
凝集度
拡張性
保守性
パフォーマンス観点
  • レスポンスタイム予測
  • スループット評価
  • リソース使用効率
  • スケーラビリティ

3. セキュリティレビュー

OWASP Top 10 チェック
  • インジェクション対策
  • 認証の破綻対策
  • 機微データの露出対策
  • XXE対策
  • アクセス制御の不備対策
  • セキュリティ設定ミス対策
  • XSS対策
  • 安全でないデシリアライゼーション対策
  • 既知の脆弱性対策
  • ログとモニタリング不足対策

4. 既存システムとの整合性

統合ポイント
  • API互換性
  • データモデル整合性
  • 認証/認可の一貫性
  • ログ/監視の統合
技術スタックの適合性
  • 既存技術との親和性(Next.js 14, TypeScript, SQLite)
  • チームのスキルセット
  • 運用負荷への影響

5. リスク評価

リスク種別 内容 影響度 発生確率 対策優先度
技術的リスク
運用リスク
セキュリティリスク
ビジネスリスク

6. 改善提案

必須改善項目(Must Fix)
  1. [重大な問題と修正案]
推奨改善項目(Should Fix)
  1. [改善すべき点と提案]
検討事項(Consider)
  1. [将来的に検討すべき点]

7. ベストプラクティスとの比較

業界標準との差異
  • 採用されていない一般的パターン
  • 独自実装の妥当性評価
代替アーキテクチャ案
  • 代替案1: [説明]
    • メリット:
    • デメリット:
  • 代替案2: [説明]
    • メリット:
    • デメリット:

8. 総合評価

レビューサマリ
  • 全体評価: ⭐⭐⭐⭐☆(4/5)
  • 強み:
  • 弱み:
  • 総評:
承認判定
  • 承認(Approved)
  • 条件付き承認(Conditionally Approved)
  • 要再設計(Needs Major Changes)
次のステップ
  1. 必須修正項目の対応
  2. ドキュメントの更新
  3. 実装着手の可否判断

出力フォーマット

PRコメントやIssueコメントとして使用可能なMarkdown形式で出力。

出力先: dev-reports/review/<日時>-architecture-review.md

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

Subscribe to this mod's changes

architecture-review is a command published in the GitHub repository Kewton/CommandMate (39 stars, last pushed 4d ago), licensed MIT. It adds 11 tokens to every session and 1,222 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.