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 3mo 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.
- 3mo 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 9mo 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.
php-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| php-qualitymorodomi/tdd-skills | Skill | 9 | 9mo ago | MIT | A | 32 | Claude Code |
| laravel-specialistJeffallan/claude-skills | Skill | 13k | today | MIT | A | 86 | Claude Code |
| laravel-securityhashgraph-online/awesome-codex-plugins | Skill | 1.6k | 2d ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| create-modulemarko-php/marko | Skill | 416 | 4d ago | MIT | A | 120 | Claude Code |
| phel-langphel-lang/phel-lang | Skill | 539 | today | MIT | A | 65 | Claude Code, Codex |
| integration-fixturephel-lang/phel-lang | Skill | 539 | today | MIT | A | 10 | Claude Code |
| update-application-configurationtarlepp/symfony-flex-backend | Skill | 286 | today | MIT | A | 29 | Claude Code, Codex |