code-review
できること
このスキルは、コードの変更をセキュリティの問題、遅いコード、バグ、エラー処理の抜けの点でレビューします。マージの前にもう一度確認したい開発者向けです。
使う場面
- ✓マージする前に、プルリクエストやコードの変更を確認してほしいとき。
- ✓新しいコードがインジェクションや認証の問題を持たないか知りたいとき。
- ✓新しいコードに、遅いデータベースのクエリや抜けたエッジケースがあると疑うとき。
スキルのリンク
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“マージする前に、このプルリクエストのセキュリティの問題とエラー処理の抜けをレビューしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは差分または指定されたファイルを読み、セキュリティ、性能、正しさ、スタイルを確認します。具体的な指摘と、コードの修正案を返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
/code-review
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Review code changes with a structured lens on security, performance, correctness, and maintainability.
Usage
/code-review <PR URL or file path>
Review the provided code changes: @$1
If no specific file or URL is provided, ask what to review.
How It Works
┌─────────────────────────────────────────────────────────────────┐
│ CODE REVIEW │
├─────────────────────────────────────────────────────────────────┤
│ STANDALONE (always works) │
│ ✓ Paste a diff, PR URL, or point to files │
│ ✓ Security audit (OWASP top 10, injection, auth) │
│ ✓ Performance review (N+1, memory leaks, complexity) │
│ ✓ Correctness (edge cases, error handling, race conditions) │
│ ✓ Style (naming, structure, readability) │
│ ✓ Actionable suggestions with code examples │
├─────────────────────────────────────────────────────────────────┤
│ SUPERCHARGED (when you connect your tools) │
│ + Source control: Pull PR diff automatically │
│ + Project tracker: Link findings to tickets │
│ + Knowledge base: Check against team coding standards │
└─────────────────────────────────────────────────────────────────┘
Review Dimensions
Security
- SQL injection, XSS, CSRF
- Authentication and authorization flaws
- Secrets or credentials in code
- Insecure deserialization
- Path traversal
- SSRF
Performance
- N+1 queries
- Unnecessary memory allocations
- Algorithmic complexity (O(n²) in hot paths)
- Missing database indexes
- Unbounded queries or loops
- Resource leaks
Correctness
- Edge cases (empty input, null, overflow)
- Race conditions and concurrency issues
- Error handling and propagation
- Off-by-one errors
- Type safety
Maintainability
- Naming clarity
- Single responsibility
- Duplication
- Test coverage
- Documentation for non-obvious logic
Output
## Code Review: [PR title or file]
### Summary
[1-2 sentence overview of the changes and overall quality]
### Critical Issues
| # | File | Line | Issue | Severity |
|---|------|------|-------|----------|
| 1 | [file] | [line] | [description] | 🔴 Critical |
### Suggestions
| # | File | Line | Suggestion | Category |
|---|------|------|------------|----------|
| 1 | [file] | [line] | [description] | Performance |
### What Looks Good
- [Positive observations]
### Verdict
[Approve / Request Changes / Needs Discussion]
If Connectors Available
If ~~source control is connected:
- Pull the PR diff automatically from the URL
- Check CI status and test results
If ~~project tracker is connected:
- Link findings to related tickets
- Verify the PR addresses the stated requirements
If ~~knowledge base is connected:
- Check changes against team coding standards and style guides
Tips
- Provide context — "This is a hot path" or "This handles PII" helps me focus.
- Specify concerns — "Focus on security" narrows the review.
- Include tests — I'll check test coverage and quality too.
よくある質問
プルリクエストのリンクから読めますか?
はい。プルリクエストのURL、差分、ファイルのパスを渡せます。
何を確認しますか?
インジェクションのリスク、N+1クエリ、メモリリーク、エッジケースの抜け、エラー処理の抜けなどです。
何をレビューするか言わなかった場合は?
エージェントは、始める前に何をレビューするかを尋ねます。
詳細
作者による元の説明
Review code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when checking a change for N+1 queries, injection risks, missing edge cases, or error handling gaps.
repo: TencentCloud/Octop
人気
- GitHubのスター
- 11k
- ランキング
- #11643
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
polite-greeting
11kエージェントが、短く親しみやすく丁寧な挨拶で会話を始め、その後すぐに必要なことに移れるよう支援します。
medical-source-failover
11kエージェントが、主要な情報源がブロックされている、遅い、または読みにくいときに、信頼できる中国の医療ガイドライン、医薬品の情報、公衆衛生の文書を見つけられるよう支援します。
cowork-plugin-customizer
11kエージェントが、既存のClaudeプラグインを組織のツールとワークフローに合わせて調整し、プレースホルダーを置き換え、スキルや設定を変えられるよう支援します。
create-cowork-plugin
11kエージェントが、ガイド付きの質問を通じて、スキル、エージェント、フック、インストール可能なパッケージを含む、新しいClaudeプラグインをゼロから作れるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。