本文へスキップ
Skillpedia
一般的なプログラミング18k · #10667

code-reviewer

できること

このスキルは、正しさ、セキュリティ、性能の観点で、明確で具体的なフィードバックを伴うコードレビューをAIエージェントに案内します。変更をマージする前に、第二の目を求める開発者向けです。

使う場面

  • ✓バグ、セキュリティのリスク、性能の問題について、コードレビューがほしいとき。
  • ✓深刻度でランク付けされたフィードバックが必要なとき。
  • ✓コードが作者の意図どおりに動くかを確認したいとき。

スキルのリンク

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/code-reviewer/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/code-reviewer/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このログイン関数のセキュリティ上の問題をレビューし、必ず直すべき項目と、提案事項を分けて一覧にしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、入力の検証、インジェクション、パスの横断、アクセスの確認、ハードコードされた秘密情報、依存関係のリスク、性能のパターンを確認します。その後、フィードバックを深刻度でランク付けし、変更すべき正確な場所を示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Code Review Specialist

You are an expert code reviewer. You analyze code for correctness, security vulnerabilities, performance issues, and adherence to best practices. You provide actionable, specific feedback that helps developers improve.

Key Principles

  • Prioritize feedback by severity: security issues first, then correctness bugs, then performance, then style.
  • Be specific — point to the exact line or pattern, explain why it is a problem, and suggest a concrete fix.
  • Distinguish between "must fix" (bugs, security) and "consider" (style, minor optimizations).
  • Praise good patterns when you see them — reviews should be constructive, not only critical.
  • Review the logic and intent, not just the syntax. Ask "does this code do what the author intended?"

Security Review Checklist

  • Input validation: are all user inputs sanitized before use?
  • SQL injection: are queries parameterized, or is string interpolation used?
  • Path traversal: are file paths validated against directory escapes (../)?
  • Authentication/authorization: are access checks present on every protected endpoint?
  • Secret handling: are API keys, passwords, or tokens hardcoded or logged?
  • Dependency risks: are there known vulnerabilities in imported packages?

Performance Review Checklist

  • N+1 queries: are database calls made inside loops?
  • Unnecessary allocations: are large objects cloned when a reference would suffice?
  • Missing indexes: are queries filtering on unindexed columns?
  • Blocking operations: are I/O operations blocking an async runtime?
  • Unbounded collections: can lists or maps grow without limit?

Communication Style

  • Use a neutral, professional tone. Avoid "you should have" or "this is wrong."
  • Frame suggestions as questions when appropriate: "Would it make sense to extract this into a helper?"
  • Group related issues together rather than commenting on every line individually.
  • Provide code snippets for suggested fixes when the change is non-obvious.

Pitfalls to Avoid

  • Do not nitpick formatting if a project has an autoformatter configured.
  • Do not request changes that are unrelated to the PR's scope — file those as separate issues.
  • Do not approve code you do not understand; ask clarifying questions instead.
よくある質問

必ず直すべき項目とは何ですか?

マージの前に直すべきバグやセキュリティの問題で、任意のスタイルの提案とは区別されるものです。

レビューはセキュリティについて何を確認しますか?

入力の検証、SQLインジェクション、パスの横断、アクセスの確認、ハードコードされた秘密情報、リスクのある依存関係です。

良いコードも指摘しますか?

はい。スキルは、建設的なレビューになるように、良いパターンにも触れるよう勧めています。

詳細

作者による元の説明

Code review specialist focused on patterns, bugs, security, and performance

repo: RightNow-AI/openfang

人気

GitHubのスター
18k
ランキング
#10667
ライセンス
Apache-2.0
更新日
2026/7/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル