Skip to content
cccskills
FreePublished on GitHub

river-review-performance

パフォーマンス観点のレビューエージェント。N+1クエリ、メモリ効率、キャッシュ戦略、可観測性の観点でコード変更を評価する。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md7.0 KB
  • references/ROUTING.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Performance Review(パフォーマンスレビュー)

パフォーマンスに影響する変更を検出し、適切な個別スキルで検証する。

When to Use / いつ使うか

  • データベースクエリの追加・変更時
  • ループ処理やバッチ処理の変更時
  • キャッシュ戦略の変更時
  • 大量データの処理ロジック変更時

Routing / ルーティング

キーワードスキルID説明
キャッシュ, TTLcache-strategy-consistency参照のみ。実行は river-review-architecture(理由)
障害, 監視, メトリクスfailure-modes-observability障害モードと可観測性
ログ, トレースlogging-observabilityロギング・可観測性
SLO, レイテンシoperability-slo運用性・SLO

cache-strategy-consistency の帰属について

cache-strategy-consistency はキャッシュ戦略という語感から performance の懸念に見えるが、実体は設計ドキュメント(docs/spec/RFC 等)のキャッシュ戦略記述をレビューする upstream スキル(applyTo が docs/**/*.md 等の docs 系のみ、Pre-execution Gate も「差分に設計ドキュメントの変更がある」ことを要求)である。本エントリ(phase midstream、applyTo が code/sql)とはドメインが異なるため、ドメイン一貫性を優先し実行は river-review-architecture(phase upstream、docs 系 applyTo を保有)に据え置く。本表には到達性のための参照行として掲載するのみで、performance 側に重複するアクティブなキーワードルートは追加しない。

デフォルト動作

  • キーワード指定なし → 以下のヒューリスティクスで判定:
    • ループ内I/O → N+1クエリ検出
    • 大量データ処理 → メモリ効率チェック
    • 外部API呼び出し → タイムアウト・リトライ検証

Execution Flow / 実行フロー

1. 変更内容の分析
   ├─ ループ内I/O → N+1クエリ検出を優先
   ├─ 大量データ処理 → メモリ効率チェックを優先
   ├─ 外部API呼び出し → タイムアウト・リトライ検証を優先
   └─ キーワード指定あり → 該当スキルを直接選択

2. スキルの実行
   ├─ cache-strategy-consistency: キャッシュ戦略の一貫性
   ├─ failure-modes-observability: 障害モードと可観測性
   ├─ logging-observability: ロギング・可観測性
   └─ operability-slo: 運用性・SLO

3. 統合
   ├─ 重複する指摘の除去
   └─ Checklistに基づくパフォーマンスチェックの補完

Checklist / チェックリスト

パフォーマンスレビューでは以下を確認する:

クエリ効率

  • N+1クエリが発生していないか
  • 必要なeager loadingが設定されているか
  • 不要なカラムを取得していないか(SELECT *)

メモリ効率

  • ループ内での不要なオブジェクト生成がないか
  • 大量データのストリーム処理が適切か
  • メモリリークのパターンがないか

I/O効率

  • 外部API呼び出しのタイムアウト設定
  • リトライ戦略の妥当性
  • 並列化可能なI/Oの逐次実行

キャッシュ

  • キャッシュキーの設計が適切か
  • TTLが妥当か
  • キャッシュの無効化戦略

Output Format / 出力形式

<file>:<line>: <message>
  • Finding: 何が問題か(1文)
  • Impact: 推定される影響(レイテンシ増加、メモリ消費等)
  • Fix: 次の一手(最小の修正案)

他スキルとの関係

スキル関係棲み分け
river-review-architecture補完performance は「実行時効率」、architecture は「構造的スケーラビリティ」
river-review-code補完performance は「速度・効率」、code は「可読性・保守性」

References

  • ROUTING.md: 詳細なルーティングルール

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<What this skill does>

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

敵対的分析手法を統合したレビューの entry skill。認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

See all skills by s977043

Report a problem with this skill