php-quality

php-quality is a skill for Claude Code from morodomi/tdd-skills. It costs 32 tokens per session (396 once invoked), scanned A, original, MIT.

A quality-checking toolkit for PHP projects, including Laravel applications. It runs static analysis, formatting, and PHPUnit or Pest tests.

In plain words
What is it for?
Use it to analyze PHP code, format it, run PHPUnit or Pest tests, check coverage, and run Laravel tests.
Why use it?
It helps detect likely PHP errors, inconsistent code style, and failing tests before changes are shipped.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is ./vendor/bin/phpstan analyse.

Part of the tdd-php plugin — 1 skill shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add morodomi/tdd-skills
Claude Code
/plugin install tdd-php

Made for: Claude Code.

Or install tdd-php, the plugin that ships this one along with the rest of its 1 skill.

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-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/morodomi/tdd-skills/php-quality.svg)](https://agentmods.dev/skills/morodomi/tdd-skills/php-quality)
Your own site
<a href="https://agentmods.dev/skills/morodomi/tdd-skills/php-quality"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/php-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00032 $0.00396
Opus 5 $0.00016 $0.00198
Sonnet 5 $0.00006 $0.00079
Haiku 4.5 $0.00003 $0.00040

Measured 6d ago against content hash 3c3020bd0672, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

php-quality 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 6d ago.

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/tdd-php/skills/php-quality/SKILL.md · 70 lines

What it actually says

PHP Quality Check

PHP プロジェクトの品質チェックツール。

Commands

ツール コマンド 用途
PHPStan ./vendor/bin/phpstan analyse --level=8 静的解析
Pint ./vendor/bin/pint コードフォーマット
PHPUnit ./vendor/bin/phpunit テスト実行
Pest ./vendor/bin/pest テスト実行(Pest)
Laravel php artisan test Laravelテスト

Usage

静的解析

# 基本
./vendor/bin/phpstan analyse

# レベル指定(推奨: 8)
./vendor/bin/phpstan analyse --level=8

# 特定ディレクトリ
./vendor/bin/phpstan analyse src/ tests/

コードフォーマット

# 自動修正
./vendor/bin/pint

# チェックのみ
./vendor/bin/pint --test

テスト実行

# 全テスト
./vendor/bin/phpunit

# フィルタ
./vendor/bin/phpunit --filter=TestName

# カバレッジ
./vendor/bin/phpunit --coverage-html=coverage/

Quality Standards

項目 目標
PHPStan Level 8(最高)
カバレッジ 90%+
Pint エラー0

Reference

  • 詳細: reference.md
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 70 lines · 32 tokens per session scan A 3c3020bd0672

Subscribe to this mod's changes

php-quality is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 396 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

laravel-actions

Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.

coollabsio/coolify · 62 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

laravel-best-practices

Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization…

laravel/boost · 114 tokens

laravel-security

Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.

hashgraph-online/awesome-codex-plugins · 34 tokens

create-module

Scaffold a new Marko module — a self-contained Composer package with composer.json, namespaced src/, and Pest tests. Use this skill whenever the user asks to create, add, or scaffold a new Marko module or package. Concrete triggers: 'create a module named payment', 'scaffold an acme/blog package', 'add a new module…

marko-php/marko · 120 tokens

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens