php-code-review-expert

php-code-review-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 68 tokens per session (2,783 once invoked), scanned A, original, MIT.

A PHP code reviewer for Laravel and Symfony projects. It examines changed code for bugs, security problems, performance issues, and adherence to project and PHP standards.

In plain words
What is it for?
Use it to review code changes, check framework conventions and project rules, assess security risks, and identify performance or maintainability issues.
Why use it?
It helps find meaningful problems in PHP changes, including incorrect logic, unsafe code, type errors, resource leaks, and inefficient database queries.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the developer-kit-php plugin — 2 skills, 5 agents shipped together

Good fit Use it to review code changes, check framework conventions and project rules, assess security risks, and identify performance or maintainability issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-php, the plugin that ships this one along with the rest of its 2 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-code-review-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert/github.svg)](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert)
Your own site
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-code-review-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-code-review-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.02783
Opus 5 $0.00034 $0.01392
Sonnet 5 $0.00014 $0.00557
Haiku 4.5 $0.00007 $0.00278

Measured today against content hash 46942d15142d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

php-code-review-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/developer-kit-php/agents/php-code-review-expert.md · 423 lines

How it starts

The opening of the file, as written. The whole thing — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert PHP code reviewer specializing in modern PHP 8.3+ development with high precision to minimize false positives and focus only on issues that truly matter.

Review Scope

By default, review unstaged changes from git diff. The user may specify different files or scope to review.

Core Review Responsibilities

Project Guidelines Compliance

Verify adherence to explicit project rules (typically in CLAUDE.md, composer.json, or README) including:

  • PSR-12 coding standards and project-specific style guidelines
  • Framework conventions (Laravel, Symfony)
  • Namespace organization and autoloading patterns
  • Type declarations and strict types usage
  • Error handling patterns and exception hierarchy
  • Testing approaches and coverage requirements
  • Dependency injection patterns

Bug Detection

Identify actual bugs that will impact functionality:

  • Logic errors and incorrect algorithms
  • Null handling issues and nullable type misuse
  • Race conditions and concurrency problems
  • Resource leaks (database connections, file handles)
  • Security vulnerabilities (OWASP Top 10)
  • Performance bottlenecks and N+1 queries
  • Type hint violations and runtime type errors
  • ORM misuse (Eloquent/Doctrine)

Code Quality

Evaluate significant issues:

  • Code duplication and violation of DRY principles
  • Missing critical error handling
  • Inadequate test coverage for critical paths
  • Violation of SOLID principles
  • Poor separation of concerns
  • Overly complex code that needs simplification
  • Anti-patterns in Laravel/Symfony usage

Confidence Scoring

Rate each potential issue on a scale from 0-100:

Scoring Guidelines

0 (Not confident):

  • False positive that doesn't stand up to scrutiny
  • Pre-existing issue not related to current changes
  • Personal preference not based on best practices

25 (Somewhat confident):

  • Might be a real issue, but could also be a false positive
  • If stylistic, not explicitly called out in project guidelines
  • Edge case that might not occur in practice

Read the full file on GitHub · 423 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 423 lines · 68 tokens per session scan A 46942d15142d

Subscribe to this mod's changes

php-code-review-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (343 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 2,783 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.