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 tarlepp/symfony-flex-backend --skill add-event-listenergit clone --depth 1 https://github.com/tarlepp/symfony-flex-backendWrote 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/tarlepp/symfony-flex-backend/add-event-listener)<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-event-listener"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-event-listener/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/tarlepp/symfony-flex-backend/add-event-listener"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-event-listener.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.00031 | $0.01052 |
| Opus 5.5 | $0.00012 | $0.00421 |
| Sonnet 5.5 | $0.00006 | $0.00210 |
| Haiku 4.5 | $0.00003 | $0.00105 |
Grade A, and why
add-event-listener 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 — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What is this?
Use this skill when creating or updating an event listener, its registration, or its behavior. It covers Symfony EventDispatcher listeners and Doctrine lifecycle listeners; these are separate event systems.
Follow the shared skill guidance, including
.github/copilot-instructions.md and doc/AI_RULES.md.
Table of Contents ᐞ
Workflow ᐞ
- Read
composer.json,symfony.lock, the dispatch site or framework event contract, and nearby handlers and tests. Identify the event system, exact event name, payload type, dispatch timing, and any dispatcher-specific registration. Do not infer these from a class name alone. - Read the event-handling guide before
choosing a listener over a subscriber. Extend an existing handler when the
responsibility matches; preserve its registration style unless a conversion
is part of the task. For a Symfony subscriber, follow
.github/skills/add-event-subscriber/SKILL.md. - Put listener classes in
src/EventListener/. Keep handlers focused on event adaptation and delegate business logic to an existing resource or service. Use constructor injection, explicit parameter and return types, and the event argument type supported by the installed package. Do not mark a service readonly when lazy proxying may apply. - Wire the listener explicitly:
config/services.yamlexcludessrc/EventListener/from automatic service discovery. Followconfig/packages/event_listeners.yamlfor service definitions and autowiring. For Symfony events, usekernel.event_listenerwith the correct event and method, orAsEventListeneron an explicitly registered service. Do not register the same callback with both an attribute and a tag. - For Doctrine lifecycle events, follow
UserEntityEventListenerand itsdoctrine.event_listenertags instead of Symfony event registration. Match method names and event arguments to the ORM event. A global Doctrine listener receives events for multiple entity types, so guard the entity type. Check connection scope, UnitOfWork/change-set rules, and whether changes made at that lifecycle stage will actually be persisted. Do not callflush()recursively from a flush-triggered handler. Distinguish global lifecycle listeners from entity-specific Doctrine entity listeners; the latter require their own mapping and registration. - For updates, preserve event names, callback methods, priorities, dispatcher or connection scope, propagation, and exception behavior unless explicitly changing them. For ordering-sensitive behavior, inspect neighboring handlers and justify the priority; higher Symfony priorities run first. Decide main-request versus subrequest handling for HTTP events from the required behavior rather than adding a blanket guard.
- Keep request-specific data out of shared service state. Preserve validation, authorization, and sensitive-data handling. Do not swallow exceptions, perform unrelated side effects, or treat synchronous events as background jobs.
- Follow
.github/skills/write-tests/SKILL.md. Cover the handler's effect, relevant no-op paths, invalid inputs, and failures. Add registration coverage through the actual caller boundary: dispatch a Symfony event through the container's dispatcher, or persist/update and flush an entity through Doctrine as appropriate. Direct method calls alone do not prove that registration or lifecycle persistence works. Verify ordering, subrequests, and exactly-once invocation when relevant. - Update the event-handling guide or other relevant documentation if the change establishes a new registration convention or observable behavior.
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 First seen · 98 lines · 31 tokens per session scan A 48ec03f3a304
add-event-listener is a skill published in the GitHub repository tarlepp/symfony-flex-backend (288 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,052 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-20.
Other skills, from other repositories
api-testing-patterns
Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.
api-testing
REST/GraphQL API testing with automated validation — test endpoints, validate responses, check status codes, and ensure API contracts.
fastapi-docs
FastAPI 0.115+ — path/query params, Pydantic, dependency injection, OAuth2/JWT, middleware, WebSocket, testing.
api-tester
An API testing tool focused on finding IPC handlers, generating tests, checking service health, and running regression tests. IPC, or inter-process communication, lets separate parts of an application exchange messages.
fastapi-best-practices
Use this skill when creating or modifying Python backend services with FastAPI. It defines API design, security, and testing standards.
test-doubles-mocking
Choose the right test double — Fake (in-memory repo / clock / event bus with real behavior), Stub (canned return), Mock (interaction-as-contract with verified expectations). Avoid mocks-by-default (fragile tests mirroring impl). Patterns: in-memory repository for Doctrine, MockHttpClient + MockResponse for HTTP…