code-review
Skill by langchain-ai
Performs a structured review of code changes after implementation. It checks correctness, code quality, tests and safety, and runs the test suite and linters. Intended for AI assistants validating their own work.
Install code-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-ai/deepagents /tmp/deepagents && mkdir -p ~/.claude/skills && cp -r /tmp/deepagents/examples/deploy-coding-agent/skills/code-review ~/.claude/skills/code-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-ai/deepagents /tmp/deepagents && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deepagents/examples/deploy-coding-agent/skills/code-review ~/.gemini/antigravity-cli/skills/code-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The code-review skill gives an AI assistant a checklist for reviewing its own changes before delivering them. The checklist covers correctness, code quality, tests and safety. It asks whether changes solve the original task, avoid side effects, handle edge cases, use clear names, have test coverage, and avoid hardcoded secrets or injection vectors.
The skill follows a fixed process. It reads each modified file end-to-end, runs python -m pytest -v, runs ruff check if available, and runs a bundled lint_check.py script. That script flags missing docstrings, functions longer than 50 lines, and bare except clauses. Any issues found are fixed and re-reviewed. It is meant for developers and AI agents who want to validate code after implementing changes.
Written from the project's SKILL.md and checked against it.
What it can do
- Correctness reviewChecks that changes solve the original task and have no unintended side effects.
- Code quality reviewChecks style, naming, unnecessary complexity and leftover dead or commented-out code.
- Test reviewChecks test coverage for new code, passing existing tests, and happy and error paths.
- Safety reviewChecks for hardcoded secrets, unvalidated input, injection vectors and unsafe file paths.
- Test and lint runRuns python -m pytest -v and ruff check . as part of the review process.
- Bundled lint checkRuns lint_check.py to flag missing docstrings, long functions and bare except clauses.
What you need
- Python
- pytest
- ruff (optional, run if available)
Try asking
- Review your changes with the code-review skill before you hand them off.
- Run the code-review checklist on the files you just modified.
- Use the lint_check.py script to scan this project for long functions.
Good to know
- Runs ruff only if it is available.
- The bundled lint check scans Python files only.
- The lint check covers docstrings, function length and bare except clauses only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: examples/deploy-coding-agent/skills/code-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB -
lint_check.py2 KB
Alternatives to code-review
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
code-review: common questions
What does the code-review skill check?
It checks correctness, code quality, tests and safety. Each area has a checklist of items to confirm before work is delivered.
What does lint_check.py look for?
It scans Python files for missing docstrings, functions longer than 50 lines, and bare except clauses. It is run through the execute command.
When should the code-review skill be used?
The source says to use it after implementing changes, to validate work before delivering it.
How do I install code-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is code-review free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is code-review safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to code-review?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
