General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
A comprehensive code review skill combining automated tooling with LLM analysis for thorough, actionable feedback.
Sign in to like and favorite skills
A comprehensive code review skill combining automated tooling with LLM analysis for thorough, actionable feedback.
Copy the
skill/ folder contents to your Claude Code skills directory:
mkdir -p ~/.claude/skills/code-review cp -r skill/* ~/.claude/skills/code-review/
Or clone and link:
git clone https://gitlab.com/hfietz/claude-code-review.git ln -s "$(pwd)/claude-code-review/skill" ~/.claude/skills/code-review
/code-review [options] Options: --scope=full|diff|files What to review (default: auto-detect) --base=<branch> Base branch for diff (default: main/master) --output=human|json Output format (default: human) --focus=all|style|tests|arch|quality What to emphasize --files=<glob> Specific files to review --skip-tools Skip automated tools, LLM-only analysis --docker / --no-docker Force Docker execution mode
Prepare a project with coding standards and tool configurations:
/code-review --setup [options] Options: --language=php|python|typescript|auto Target language --strict Use stricter thresholds --dry-run Preview changes
This generates:
CLAUDE.mdphpstan.neon, eslint.config.js, ruff.toml).code-review.yamlSet up automated code review in GitLab pipelines:
/code-review --setup-gitlab
This generates:
.gitlab-ci.yml with lint, test, and review stagesPre-built containers with all review tools:
# Pull images docker pull registry.gitlab.com/hfietz/claude-code-review/review-php:latest docker pull registry.gitlab.com/hfietz/claude-code-review/review-python:latest docker pull registry.gitlab.com/hfietz/claude-code-review/review-typescript:latest
| Image | Tools |
|---|---|
| PHPStan, PHPCS, PHPMD, PHPUnit, Deptrac |
| Ruff, mypy, Pyright, pytest, Bandit, Radon |
| ESLint, TypeScript, Vitest, madge, dependency-cruiser |
The skill can set up automated code review in your GitLab pipelines:
/code-review --setup-gitlab in your projectANTHROPIC_API_KEY - Claude API key (protected, masked)GITLAB_TOKEN - Token with api scope for posting commentsOn merge requests, Claude will:
Create
.code-review.yaml in your project root:
version: 1 thresholds: function_length: 40 class_length: 300 complexity: 10 coverage: target: 80 focus: security: high performance: medium style: medium exclude: paths: - vendor/ - node_modules/ - "*.generated.*" docker: enabled: auto # auto, always, never
MIT