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.
npx skills add morodomi/tdd-skills --skill wordpress-qualitygit clone --depth 1 https://github.com/morodomi/tdd-skillsWrote 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/wordpress-quality)<a href="https://agentmods.dev/skills/morodomi/tdd-skills/wordpress-quality"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/wordpress-quality.svg" alt="Measured on agentmods" 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.00034 | $0.00663 |
| Opus 5 | $0.00017 | $0.00331 |
| Sonnet 5 | $0.00007 | $0.00133 |
| Haiku 4.5 | $0.00003 | $0.00066 |
Grade A, and why
wordpress-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 8d 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
WordPress Quality Check
WordPress/Bedrock プロジェクト固有の品質チェックツール。
汎用PHPツールは tdd-php 参照。
Commands
| ツール | コマンド | 用途 |
|---|---|---|
| PHPStan | ./vendor/bin/phpstan analyse |
静的解析(phpstan-wordpress) |
| WPCS | ./vendor/bin/phpcs --standard=WordPress |
コーディング規約 |
| PHPUnit | ./vendor/bin/phpunit |
テスト実行 |
WP_UnitTestCase Helpers
| ヘルパー | 用途 |
|---|---|
$this->factory()->user->create() |
ユーザー作成 |
$this->factory()->post->create() |
投稿作成 |
$this->go_to($url) |
URL遷移シミュレート |
wp_set_current_user($id) |
現在ユーザー設定 |
Test Categories
Unit vs Integration
| カテゴリ | 対象 | 例 |
|---|---|---|
| Unit | 単一クラス、フック不使用 | Helper, Utility |
| Integration | WordPress環境依存 | Hook, REST API, CPT |
テスト配置
tests/
├── unit/ # 単体テスト(WP不要)
│ └── HelperTest.php
└── integration/ # 統合テスト(WP必要)
├── HookTest.php
└── RestApiTest.php
Hook Tests
class HookTest extends WP_UnitTestCase
{
public function test_filter_modifies_content(): void
{
add_filter('the_content', 'my_content_filter');
$result = apply_filters('the_content', 'Hello');
$this->assertStringContainsString('Modified', $result);
}
}
REST API Tests
class RestApiTest extends WP_UnitTestCase
{
public function test_get_items(): void
{
$admin = $this->factory()->user->create(['role' => 'administrator']);
wp_set_current_user($admin);
$request = new WP_REST_Request('GET', '/wp/v2/posts');
$response = rest_do_request($request);
$this->assertEquals(200, $response->get_status());
}
}
Quality Standards
| 項目 | 目標 |
|---|---|
| PHPStan Level | 6+(phpstan-wordpress) |
| カバレッジ | 90%+ |
| WPCS | エラー0 |
Reference
- 詳細: reference.md
- 汎用PHP: tdd-php プラグイン
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.
- 8d ago First seen · 92 lines · 34 tokens per session scan A 5c26fda7cb02
wordpress-quality is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 663 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.
Other skills, from other repositories
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
nw-fp-clojure
Clojure language-specific patterns, data-first modeling, REPL-driven development, and spec.
mobiai-ios-testing
Use when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.
testing-llm
LLM and AI testing patterns — mock responses, evaluation with DeepEval/RAGAS, structured output validation, and agentic test patterns (generator, healer, planner). Use when testing AI features, validating LLM outputs, or building evaluation pipelines.