Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/morodomi/tdd-skillsnpx agentmods add skills/morodomi/tdd-skills/php-qualityWrote 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.
[](https://agentmods.dev/skills/morodomi/tdd-skills/php-quality)<a href="https://agentmods.dev/skills/morodomi/tdd-skills/php-quality"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/php-quality/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.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00396 |
| Opus 5.5 | $0.00013 | $0.00158 |
| Sonnet 5.5 | $0.00006 | $0.00079 |
| Haiku 4.5 | $0.00003 | $0.00040 |
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 1mo 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.
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
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.
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.
- 1mo ago First seen · 70 lines · 32 tokens per session scan A 3c3020bd0672
php-quality is a skill published in the GitHub repository morodomi/tdd-skills (9 stars, last pushed 8mo ago), licensed MIT. It adds 32 tokens to every session and 396 once invoked, about $0.0001 per session on Opus 5.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.
Other skills, from other repositories
integration-fixture
Add a .test integration fixture for one behavior.
behat-skill
Generates Behat BDD tests for PHP with Gherkin feature files and MinkContext for browser testing. Use when user mentions "Behat", "PHP BDD", "Mink", "behat.yml". Triggers on: "Behat", "PHP BDD", "Mink", "behat.yml", "FeatureContext PHP".
Behat BDD Testing
PHP BDD testing with Behat framework using Gherkin feature files, Mink browser extension, context classes, and Symfony integration for behavior-driven acceptance testing.
Codeception Testing
Expert-level Codeception testing skill for PHP applications. Covers acceptance, functional, and unit testing with the Actor pattern, BDD-style syntax, Page Objects, API testing, and database helpers.
Laravel Dusk Testing
Expert-level Laravel Dusk browser testing skill for PHP/Laravel applications. Covers Chrome-based E2E testing, browser assertions, Page Objects, component testing, authentication helpers, and database integration.
phel-lang
Building applications WITH Phel (Lisp that compiles to PHP). Triggers on .phel files, phel-config.php, phel CLI commands (init, run, repl, test, build), or requests to build a Phel app. Skip when working on the Phel compiler itself.