Skip to main content

code-review

Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.

来源信息

仓库
langchain-ai/deepagents
最近来源活动
2026年6月20日 07:04
检测到的 SKILL.md 语言
英语
星标
30,125
分支
4,221

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-review
description
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.
# Code Review Skill Use this skill after implementing changes to validate your work before delivering. ## Review Checklist ### 1. Correctness - [ ] Changes solve the original issue/task - [ ] No unintended side effects on existing functionality - [ ] Edge cases are handled - [ ] Error handling is appropriate (not excessive) ### 2. Code Quality - [ ] Code matches existing style and patterns - [ ] No unnecessary complexity or abstraction - [ ] Variable and function names are clear - [ ] No dead code, commented-out code, or TODOs left behind ### 3. Tests - [ ] New functionality has test coverage - [ ] Existing tests still pass - [ ] Tests cover both happy path and error cases - [ ] Tests are not brittle (don't test implementation details) ### 4. Safety - [ ] No hardcoded secrets or credentials - [ ] User input is validated at boundaries - [ ] No SQL injection, XSS, or command injection vectors - [ ] File operations use safe paths ## Process 1. Read each modified file end-to-end (not just the diff) 2. Run the test suite: `execute("python -m pytest -v")` 3. Run linters if available: `execute("ruff check .")` 4. Run the bundled lint check: `execute("python /skills/code-review/lint_check.py .")` 5. Check against each item in the review checklist 6. If any issues found, fix them and re-review 7. When everything passes, the review is complete ## Helper Scripts - **`/skills/code-review/lint_check.py`** — Scans Python files for missing docstrings, long functions (>50 lines), and bare `except:` clauses. Run it via `execute("python /skills/code-review/lint_check.py [path ...]")`.
在 GitHub 查看