Code Review langchain-ai-code-review
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.
Works in Claude, ChatGPT, Codex and more
- Our test
- 6/10
- tested Dec 6, 2026
- GitHub stars
- 32k
- langchain-ai/deepagents
- Added by
- 0
- members
- Updated
- Dec 6
- commit c5a5da3
- Content
- 2 files
- 1 script · 4 KB
- License
- MIT
- free to use
What our test found
The checklist offers a useful, broad review structure, but assumes a fixed script path and encourages running code and modifying files without addressing environment safety or authorization.
Request we tested it on“Please review my recent changes to the user authentication module for correctness, test coverage, style, and security issues.”
Limits spotted
- The helper-script command assumes installation at `/skills/code-review/lint_check.py`, which may not exist.
- The process says to fix issues automatically, without confirming authorization or scope.
- It does not caution that tests and linters may execute untrusted repository code.
- The bundled checks are narrow and can produce subjective or noisy warnings, such as treating every missing module docstring as an issue.
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
- Read each modified file end-to-end (not just the diff)
- Run the test suite:
execute("python -m pytest -v") - Run linters if available:
execute("ruff check .") - Run the bundled lint check:
execute("python /skills/code-review/lint_check.py .") - Check against each item in the review checklist
- If any issues found, fix them and re-review
- 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 viaexecute("python /skills/code-review/lint_check.py [path ...]").