
code-review
β 25,700by langchain-ai Β· part of langchain-ai/deepagents
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.
π₯π₯π₯π₯β VerifiedFreeQuick setup
π§© One of 7 skills in the langchain-ai/deepagents package β works on its own, and pairs well with its siblings.
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.
Inspect the full instructions your agent will receiveExpandCollapse
This is the exact playbook injected into your agent when the skill activates β shown here so you can audit it before installing. You don't need to read it to use the skill.
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 bareexcept:clauses. Run it viaexecute("python /skills/code-review/lint_check.py [path ...]").
Copy & paste β that's it
npx skills add https://github.com/langchain-ai/deepagents --skill code-reviewRun this in your project β your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.