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 agentmods add skills/shopwarelabs/ai-coding-tools/phpunit-unit-test-generationnpx skills add shopwareLabs/ai-coding-tools --skill phpunit-unit-test-generationgit clone --depth 1 https://github.com/shopwareLabs/ai-coding-toolsWhat 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 | $0.00030 | $0.02266 |
| Opus 5 | $0.00015 | $0.01133 |
| Sonnet 5 | $0.00006 | $0.00453 |
| Haiku 4.5 | $0.00003 | $0.00227 |
Grade A, and why
phpunit-unit-test-generation 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 today.
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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHPUnit Test Generation
Generate Shopware-compliant PHPUnit unit tests that pass PHPStan and PHPUnit validation.
File Write Restrictions
Write ONLY to:
tests/unit/**- Unit test files
NEVER write to:
src/**- Source code (read-only)tests/integration/**- Out of scope- Any other directory
Quick Start
- Read the target source class
- Check if test is required (see Phase 1)
- Determine test category (A-E)
- Apply the matching template
- Validate with PHPStan and PHPUnit
- Fix any errors and repeat
- Generate completion report
Phase 1: Analyze Source Class
Step 1: Check Coverage Exclusions
Before analyzing the source class, check if the project's phpunit.xml.dist (or phpunit.xml) excludes it from coverage. Files excluded from coverage do not need unit tests.
- Read
phpunit.xml.distfrom the project root - Find
<exclude>rules inside the<coverage>or<source>section - Match the source file path against each rule:
<directory suffix="X">path</directory>— excluded if file is underpathAND filename ends withX<file>path/to/File.php</file>— excluded if relative path matches exactly
- If excluded → Return SKIPPED with
skip_type: coverage_excludedand reason: "Source file excluded from coverage by phpunit.xml.dist (<matched-rule>)"
If phpunit.xml.dist is not found, skip this step.
Step 2: Determine If Test Is Required
Before generating any test, evaluate if the class/method requires one.
Quick check: Does the method body contain ONLY return <literal|constant|property|passthrough-new|delegation>?
- Yes -> NO TEST NEEDED — Return SKIPPED with
skip_type: no_logicand reason describing the pattern (e.g., "Pure accessor - no logic to test") - No (has conditionals/loops/transformations) -> Continue to Step 3
For detailed rules on what to test vs skip, see references/test-requirement-rules.md.
Step 3: Analyze Source Structure
Read the target class to determine:
- Public methods - What behaviors to test
- Constructor dependencies - What to mock/stub
- Return types - Expected outcomes
- Exception scenarios - Error paths (see references/exception-patterns.md)
- Deprecation markers -
@deprecatedtags,Feature::triggerDeprecationOrThrow(),Feature::silent(),Feature::callSilentIfInactive()(see references/deprecation-guards.md) - Package attribute - the
#[Package('...')]value the covered class carries. The test class carries the same value. When the covered class carries none, take the value from the nearestsrc/directory the test path mirrors, walking up until one exists and using the value its.phpfiles carry. When that yields no value, emit no#[Package]and report that in the Phase 5 report'sPackagefield (none, per references/output-format.md) rather than guessing a value.
What ships with it
15 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.
- references/category-detection.md 2.0 KB
- references/common-patterns.md 4.8 KB
- references/deprecation-guards.md 2.3 KB
- references/essential-rules.md 5.7 KB
- references/exception-patterns.md 1.4 KB
- references/mocking-patterns.md 3.3 KB
- references/output-format.md 2.6 KB
- references/shopware-stubs.md 3.4 KB
- references/test-requirement-rules.md 3.2 KB
- references/validation-error-mapping.md 2.4 KB
- templates/category-a-dto.md 5.3 KB
- templates/category-b-service.md 8.7 KB
- templates/category-c-flow.md 8.1 KB
- templates/category-d-dal.md 11 KB
- templates/category-e-exception.md 8.9 KB
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.
- today Changed · +2 lines 7ad0ae08db93
- 2d ago First seen · 259 lines · 30 tokens per session scan A d755d66d7bad
phpunit-unit-test-generation is a skill published in the GitHub repository shopwareLabs/ai-coding-tools (42 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 2,266 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-30.
Other skills, from other repositories
audit-instructions
Audit locally-owned Claude Code instruction surfaces, including CLAUDE.md, .claude/rules, skill bodies, agent definitions, hook instruction text and output styles, for instructions current models no longer need (prior-model workarounds, over-prescriptive scaffolding, stale examples), instructions that misstate Claude…
lanes
Start, restart, stop, and check loop lanes as named background Claude Code sessions seeded from canonical prompt files, the scripted replacement for the manual morning refresh (cancel loop, clear, re-paste the canonical prompt) across N lanes on a machine. start/restart first pull the repo and refresh the plugin…
batch-simplify
Batch-run simplification across changed files, or across an entire repository, grouped by ecosystem and dependency order. Use when: 'batch simplify', 'simplify recent changes', 'simplify everything', 'forgot to run simplify', 'catch up on simplify', 'simplify my branch changes', 'simplify the whole repo', 'simplify…
audit-permission-state
Report the Claude Code permission state actually in effect. Discovers every settings scope (managed policy, user-global, project, local, and the pre-v2.1.211 start-directory copy), merges them into the effective allow/ask/deny set with each rule's source and precedence mechanic named, and classifies which allow rules…
audit-install-state
Read-only audit of a Claude Code INSTALLATION directory, the machine-scope /.claude tree plus /.claude.json. Inventorying every file, separating what the product's own retention sweep already manages from what nothing manages, resolving what each number in a filename actually means before any process-liveness check…
audit-native-overlap
Map native Claude Code surfaces, built-in CLI commands, bundled skills, plugin-backed built-ins, session-provided skills, against the current repo's plugin skills and agents, so a custom component never silently duplicates what Claude Code itself now ships. Bare invocation is a READ-ONLY report: overlap candidates…