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/kewton/commandmate/architecture-reviewgit clone --depth 1 https://github.com/Kewton/CommandMateWrote 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.
[](https://agentmods.dev/commands/kewton/commandmate/architecture-review)<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>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.
| Model | Per session | Once 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 |
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.
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)
- [重大な問題と修正案]
推奨改善項目(Should Fix)
- [改善すべき点と提案]
検討事項(Consider)
- [将来的に検討すべき点]
7. ベストプラクティスとの比較
業界標準との差異
- 採用されていない一般的パターン
- 独自実装の妥当性評価
代替アーキテクチャ案
- 代替案1: [説明]
- メリット:
- デメリット:
- 代替案2: [説明]
- メリット:
- デメリット:
8. 総合評価
レビューサマリ
- 全体評価: ⭐⭐⭐⭐☆(4/5)
- 強み:
- 弱み:
- 総評:
承認判定
- 承認(Approved)
- 条件付き承認(Conditionally Approved)
- 要再設計(Needs Major Changes)
次のステップ
- 必須修正項目の対応
- ドキュメントの更新
- 実装着手の可否判断
出力フォーマット
PRコメントやIssueコメントとして使用可能なMarkdown形式で出力。
出力先: dev-reports/review/<日時>-architecture-review.md
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.
- 4d ago First seen · 147 lines · 11 tokens per session scan A b7ba12b4d843
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.
Other commands, from other repositories
crow-image
Show an image in Crow's Images panel — pass the file path as the argument.
release-notes
Draft release notes, recommend and apply a version bump, and update CHANGELOG.md for the next dormouse release by analyzing all merge commits and squash-merged PRs since the last release tag. Used as step 2 of the release checklist in docs/specs/deploy.md.
build-docs
Build and serve the docs site locally with Jekyll.
release
Cut a domux release — tag HEAD, push, watch the GH Action.
review-session-log
Use when the user asks what a session did, wants to review session history, or needs to find errors in a session log.
setup
Install & set up newsline — rotating regional news in your status line (keeps your existing status line).