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/xobotyi/cc-foundrynpx agentmods add skills/xobotyi/cc-foundry/pestWrote 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/xobotyi/cc-foundry/pest)<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/pest"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/pest/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/xobotyi/cc-foundry/pest"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/pest.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.00060 | $0.03590 |
| Opus 5.5 | $0.00024 | $0.01436 |
| Sonnet 5.5 | $0.00012 | $0.00718 |
| Haiku 4.5 | $0.00006 | $0.00359 |
Grade B, and why
pest scanned grade B with 1 finding 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 26d 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.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
When **reviewing** tests: cite the specific issue and show the fix inline. Don't lecture — state what's wrong and how to How it starts
The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pest
Tests are functions, not classes. Write the expectation, not the ceremony — expect($x)->toBe($y), and let the
description say what the code does.
Pest is a testing framework built on the PHPUnit engine: closures instead of test-case methods, an expect()
expectation API instead of $this->assert*, and first-class architecture, mutation, type-coverage, and browser testing.
$this inside a test closure is a PHPUnit TestCase, so the full PHPUnit assertion and test-double API stays
available. All patterns target Pest 4 on PHP 8.5+ (it runs on the PHPUnit 12 engine; its own floor is PHP 8.3).
This skill governs Pest-specific decisions. It does not restate universal testing philosophy (test behavior not
implementation, arrange-act-assert, isolation, mock at boundaries), the PHPUnit assertion/double API, coverage
attributes, or phpunit.xml internals — those live in the phpunit skill and apply unchanged here.
References
- Full expectation catalog + modifiers, higher-order & custom expectations →
[
${CLAUDE_SKILL_DIR}/references/expectations.md] — everyexpect()method by category,not/and/each/sequence,expect()->extend()/intercept()/pipe() - Architecture testing —
arch()rules and presets → [${CLAUDE_SKILL_DIR}/references/architecture.md] — all arch expectations,php/security/laravel/strictpresets, modifiers, wildcards - Mutation, type coverage, snapshot, stress, browser testing →
[
${CLAUDE_SKILL_DIR}/references/advanced-features.md] — opt-in modes, their plugins, drivers, and CLI flags - Pest.php configuration + full CLI flag catalog + PHPUnit migration →
[
${CLAUDE_SKILL_DIR}/references/configuration.md] —pest()->extend/use/in/group, global hooks, every run flag, Drift
Test Structure
Install with composer require pestphp/pest --dev --with-all-dependencies (remove phpunit/phpunit first). Pest's
--init scaffolds tests/Unit/ and tests/Feature/, a base tests/TestCase.php, and tests/Pest.php. Files are
suffixed *Test.php.
What ships with it
5 files 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.
- 26d ago Changed 6fe844c95d6f
- 3mo ago First seen · 281 lines · 60 tokens per session scan B bc874b828ff1
pest is a skill published in the GitHub repository xobotyi/cc-foundry (23 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 3,590 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pestxobotyi/cc-foundry | Skill | 23 | yesterday | MIT | B | 60 | Claude Code |
| craft-pestmichtio/craftcms-claude-skills | Skill | 93 | today | Apache-2.0 | A | 159 | Claude Code |
| dotnet-testNikiforovAll/claude-code-rules | Skill | 144 | 1mo ago | Apache-2.0 | A | 35 | Claude Code |
| Test Scaffold (Laravel/PHPUnit)s977043/river-review | Skill | 8 | today | MIT | A | 23 | Claude Code |
| php-testingfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 38 | Claude Code |
| swiftui-expertjohnkozaris/jko-claude-plugins | Skill | 11 | 29d ago | MIT | A | 133 | Claude Code |
| python-testingDmitriyYukhanov/claude-plugins | Skill | 8 | 1mo ago | MIT | A | 28 | Claude Code |