Agent Skillsopen-gitagent/opengap › code-review

code-review

GitHub

用于审查代码差异或文件,重点检测OWASP Top 10安全漏洞、错误处理、复杂度、命名规范及性能问题。适用于用户请求审查PR、Diff或代码变更的场景。

examples/standard/skills/code-review/SKILL.md open-gitagent/opengap

Trigger Scenarios

审查PR 审查Pull Request 审查Diff 审查Merge Request 审查代码变更

Install

npx skills add open-gitagent/opengap --skill code-review -g -y
More Options

Non-standard path

npx skills add https://github.com/open-gitagent/opengap/tree/main/examples/standard/skills/code-review -g -y

Use without installing

npx skills use open-gitagent/opengap@code-review

指定 Agent (Claude Code)

npx skills add open-gitagent/opengap --skill code-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add open-gitagent/opengap --all -g -y

预览 repo 内 skill

npx skills add open-gitagent/opengap --list

SKILL.md

Frontmatter
{
    "name": "code-review",
    "license": "MIT",
    "metadata": {
        "author": "gitagent-examples",
        "version": "1.0.0",
        "category": "developer-tools"
    },
    "description": "Reviews code diffs and files for security vulnerabilities (OWASP Top 10), error handling, complexity, naming conventions, and performance issues. Use when the user asks to review a PR, pull request, diff, merge request, or code changes.",
    "allowed-tools": "lint-check complexity-analysis"
}

Code Review

Instructions

When reviewing code:

  1. Read the full diff or file provided
  2. Check for security vulnerabilities (OWASP Top 10)
  3. Evaluate error handling completeness
  4. Assess code complexity and readability
  5. Verify naming conventions and code style
  6. Look for performance issues
  7. Check for proper input validation

Output Format

## Review Summary
[1-2 sentence overview]

## Findings

### CRITICAL
- [Finding with line reference and fix]

### WARNING
- [Finding with line reference and fix]

### SUGGESTION
- [Finding with line reference and fix]

## What's Done Well
- [Positive observations]

Example Finding

### CRITICAL
- **Line 42**: SQL injection vulnerability — user input concatenated directly into query string.
  Fix: Use parameterized queries instead of string concatenation.
  ```python
  # Before (vulnerable)
  cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
  # After (safe)
  cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

Version History

  • d7a8e2e Current 2026-07-25 08:13

Same Skill Collection

examples/full/skills/document-review/SKILL.md
examples/full/skills/regulatory-analysis/SKILL.md
examples/gitagent-helper/skills/create-agent/SKILL.md
examples/gitagent-helper/skills/export-agent/SKILL.md
examples/gitagent-helper/skills/get-started/SKILL.md
examples/gitagent-helper/skills/manage-skills/SKILL.md
examples/gitagent-helper/skills/run-agent/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/compute-ladder/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/narco-check/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/packet-factory/SKILL.md
examples/llm-wiki/skills/wiki-ingest/SKILL.md
examples/llm-wiki/skills/wiki-lint/SKILL.md
examples/llm-wiki/skills/wiki-query/SKILL.md
examples/lyzr-agent/skills/research/SKILL.md
examples/nvidia-deep-researcher/skills/knowledge-retrieval/SKILL.md
examples/nvidia-deep-researcher/skills/paper-search/SKILL.md
examples/nvidia-deep-researcher/skills/web-search/SKILL.md

Metadata

Files
0
Version
d7a8e2e
Hash
f599cb8c
Indexed
2026-07-25 08:13

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 06:56
浙ICP备14020137号-1 $mapa de visitantes$