write-tests

write-tests is a skill for Claude Code, Codex from tarlepp/symfony-flex-backend. It costs 25 tokens per session (1,255 once invoked), scanned A, original, MIT.

A testing guide for adding or changing PHPUnit tests in a PHP project. It explains when to use end-to-end, functional, integration, or unit tests based on what part of the application is being checked.

In plain words
What is it for?
Use it when testing complete request flows, database-backed application behavior, service interactions, or isolated logic.
Why use it?
It helps developers choose a test scope that matches the behavior under test instead of using the wrong kind of test or relying on unnecessary mocks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when testing complete request flows, database-backed application behavior, service interactions, or isolated logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tarlepp/symfony-flex-backend/write-tests
Install

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.

Any agent
npx skills add tarlepp/symfony-flex-backend --skill write-tests
Clone the repo
git clone --depth 1 https://github.com/tarlepp/symfony-flex-backend

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for write-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/write-tests/github.svg)](https://agentmods.dev/skills/tarlepp/symfony-flex-backend/write-tests)
Your own site
<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/write-tests"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/write-tests/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.

agentmods 80×15 button for write-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/write-tests"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/write-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01255
Opus 5.5 $0.00010 $0.00502
Sonnet 5.5 $0.00005 $0.00251
Haiku 4.5 $0.00003 $0.00126

Measured 11d ago against content hash ee846f7a827e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-tests 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.

.github/skills/write-tests/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What is this?

Use this skill whenever adding or changing tests. Select the test category that matches the behavior boundary and dependencies under test.

Editing documentation about PHPUnit, AI instructions, or skill text does not itself require running PHPUnit. Use the validation selection guide to decide whether tests, report producers, or non-PHP checks are relevant.

Follow the shared skill guidance, including repository instructions and AI rules.

Table of Contents ᐞ

Test categories ᐞ

Choose the category by the behavior boundary and dependencies under test: complete request-to-response behavior belongs in E2E; application behavior using the real database but not requiring the full request flow belongs in Functional; collaboration between selected services belongs in Integration; and isolated logic belongs in Unit.

  • E2E (tests/E2E/): exercise the application end to end, including the real database. Do not mock dependencies. Use when correctness depends on the complete request-to-response flow.
  • Functional (tests/Functional/): exercise application functionality against the real database without mocks. Use for behavior at a functional application boundary that does not need a complete E2E request flow.
  • Integration (tests/Integration/): test how the application's own services and framework components handle behavior and work together. Keep the components being integrated real and mock only unrelated collaborators. Usually avoid the database; use it when database interaction is itself part of the integration being tested, following the existing test setup.
  • Unit (tests/Unit/): test a single unit in isolation, using no mocks or only the minimum needed. Do not use a database or application-wide behavior.

Read the full file on GitHub · 130 lines

Changes

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.

  1. 11d ago Changed · -2 lines ee846f7a827e
  2. 16d ago Changed 5bc6879a6684
  3. 1mo ago Changed · +5 lines d69dc59f0032
  4. 1mo ago Changed · +3 lines 245fb7f89ed6
  5. 1mo ago Changed · +30 lines 95f5cf0a8754
  6. 1mo ago Changed · +8 lines 5484674ec507
  7. 1mo ago First seen · 86 lines · 25 tokens per session scan A dca560c9d523

Subscribe to this mod's changes

write-tests is a skill published in the GitHub repository tarlepp/symfony-flex-backend (286 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 1,255 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-10-18.

Related

write-tests compared with skills from other repositories

write-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-teststarlepp/symfony-flex-backendSkill286yesterdayMITA25Claude Code, Codex
flapi-testingDataZooDE/flapiSkill756d agononeA128Claude Code
functional-testsgerard-labs/superpowers-api-platformSkill26mo agoMITA171Claude Code
test-doubles-mockinggerard-labs/superpowers-api-platformSkill26mo agoMITA120Claude Code
doctrine-fixtures-foundrygerard-labs/superpowers-api-platformSkill26mo agoMITA101Claude Code
api-integration-architectsickn33/agentic-awesome-skillsSkill51kyesterdayMITA33Claude Code
dmrwemake-services/django-modern-restSkill1.6kyesterdayMITA80Claude Code, Codex