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 XCode-NLP/KodaSkills --skill phpunit-skillgit clone --depth 1 https://github.com/XCode-NLP/KodaSkillsWrote 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/xcode-nlp/kodaskills/phpunit-skill)<a href="https://agentmods.dev/skills/xcode-nlp/kodaskills/phpunit-skill"><img src="https://agentmods.dev/badge/skills/xcode-nlp/kodaskills/phpunit-skill/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/xcode-nlp/kodaskills/phpunit-skill"><img src="https://agentmods.dev/badge/skills/xcode-nlp/kodaskills/phpunit-skill.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.00073 | $0.01068 |
| Opus 5.5 | $0.00029 | $0.00427 |
| Sonnet 5.5 | $0.00015 | $0.00214 |
| Haiku 4.5 | $0.00007 | $0.00107 |
Grade A, and why
phpunit-skill 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Тестирование на PHPUnit
Основные шаблоны
Базовый тест
<?php
use PHPUnit\Framework\TestCase;
class CalculatorTest extends TestCase
{
private Calculator $calculator;
protected function setUp(): void
{
$this->calculator = new Calculator();
}
public function testAddition(): void
{
$this->assertEquals(5, $this->calculator->add(2, 3));
}
public function testDivideByZero(): void
{
$this->expectException(\DivisionByZeroError::class);
$this->calculator->divide(10, 0);
}
public function testMultipleAssertions(): void
{
$this->assertSame(4, $this->calculator->add(2, 2));
$this->assertSame(0, $this->calculator->subtract(2, 2));
$this->assertSame(6, $this->calculator->multiply(2, 3));
}
}
Поставщики данных
/**
* @dataProvider additionProvider
*/
public function testAdd(int $a, int $b, int $expected): void
{
$this->assertEquals($expected, $this->calculator->add($a, $b));
}
public static function additionProvider(): array
{
return [
'положительные числа' => [2, 3, 5],
'отрицательные числа' => [-1, -1, -2],
'нули' => [0, 0, 0],
'смешанные' => [10, -5, 5],
];
}
Утверждения
$this->assertEquals($expected, $actual);
$this->assertSame($expected, $actual); // строгое сравнение типов
$this->assertNotEquals($unexpected, $actual);
$this->assertTrue($condition);
$this->assertFalse($condition);
$this->assertNull($value);
$this->assertNotNull($value);
$this->assertCount(3, $array);
$this->assertContains('item', $array);
$this->assertArrayHasKey('key', $array);
$this->assertInstanceOf(MyClass::class, $obj);
$this->assertStringContainsString('sub', $string);
$this->assertMatchesRegularExpression('/\d+/', $string);
$this->assertEmpty($collection);
$this->assertGreaterThan(5, $value);
$this->assertJsonStringEqualsJsonString($expected, $actual);
Моки
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.
- 11d ago First seen · 138 lines · 73 tokens per session scan A 05e68c931600
phpunit-skill is a skill published in the GitHub repository XCode-NLP/KodaSkills (27 stars, last pushed 5d ago), licensed MIT. It adds 73 tokens to every session and 1,068 once invoked, about $0.0003 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-11-19.
phpunit-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| phpunit-skillXCode-NLP/KodaSkills | Skill | 27 | 5d ago | MIT | A | 73 | Claude Code, Codex |
| laravel-testingFoysal50x/skills | Skill | 12 | 1mo ago | MIT | A | 83 | Claude Code |
| migrate-xunit-to-xunit-v3managedcode/dotnet-skills | Skill | 527 | 16d ago | MIT | A | 149 | Claude Code, Codex |
| test-harnessMathews-Tom/armory | Skill | 345 | 5d ago | MIT | A | 65 | Claude Code |
| mvc-expertroedyrustam/vibes-plug | Skill | 129 | 3d ago | MIT | A | 30 | Cursor |
| laravel-testingAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 62 | Claude Code, Codex |
| Codeception TestingPramodDutta/qaskills | Skill | 252 | 27d ago | MIT | A | 42 | Claude Code, Codex |