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-doctrine-entitygit 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-doctrine-entity)<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-doctrine-entity"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-doctrine-entity/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-doctrine-entity"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-doctrine-entity.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.00029 | $0.00900 |
| Opus 5.5 | $0.00012 | $0.00360 |
| Sonnet 5.5 | $0.00006 | $0.00180 |
| Haiku 4.5 | $0.00003 | $0.00090 |
Grade A, and why
add-doctrine-entity 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 — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What is this?
Use this skill when adding a persisted domain entity or changing an existing entity's Doctrine mapping. In this repository, every entity must have a corresponding repository and resource. A CRUD REST endpoint, DTOs, and AutoMapper configuration are separate concerns and should be added when the requested behavior needs them.
Follow the shared skill guidance, including repository instructions and AI rules.
Table of Contents ᐞ
Workflow ᐞ
- Inspect a similar entity and its tests under
src/Entity/andtests/before choosing a mapping and persistence pattern. - Confirm what the entity needs to support: REST input/output, relations, audit fields, and soft/hard deletion. Reuse an existing entity trait or shared pattern only when its behavior fits; do not add unrelated fields.
- Place the class in
src/Entity/and use Doctrine ORM PHP attributes. Persisted application entities normally implementApp\Entity\Interfaces\EntityInterface; follow the existing UUID, timestamp, and blameable conventions where applicable. Check how the interface and traits behave before using them, and account for read-only or derived entities that have different requirements. - Define column types, nullability, lengths, indexes, unique constraints, and relationship ownership explicitly and consistently with the schema. Use typed properties and methods. For relationships, update both sides only where the existing bidirectional association pattern requires it. Avoid accidental lazy-loading or serialization cycles.
- If entity properties are exposed through the API, add the appropriate Serializer groups and OpenAPI attributes following nearby entities. Keep API exposure intentional; do not expose sensitive fields. Put request validation constraints on the appropriate DTO as well as entity-level constraints only where existing patterns call for them.
- Generate a migration inside the PHP development container with
bin/console doctrine:migrations:diff. Review the generated SQL and migration class for data safety, nullability, indexes, foreign keys, defaults, and reversible behavior. Edit the generated migration when needed. Never usedoctrine:schema:updateor hand-write ad hoc SQL to change a live schema. Do not run migrations against production. - Add tests for entity behavior, ORM mapping, persistence, and relationships as applicable.
- Add a corresponding repository under
src/Repository/, extending or followingBaseRepositoryand its entity-specific typing conventions. Reuse the existing repository methods and traits; add custom queries only when the entity requires them. Follow add-doctrine-query for query-specific behavior and validation. - Add a corresponding resource under
src/Resource/, extendingRestResourcewith the entity and repository types. Keep orchestration and business behavior in the resource, and use the existing resource lifecycle patterns where relevant. An entity's repository and resource are required even when it has no CRUD controller. - If the request needs DTOs, request mapping, or a CRUD REST endpoint, follow add-rest-resource for those parts. Add these layers only when required by the requested 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.
- 11d ago Changed · -3 lines 3bad94b5efd7
- 16d ago Changed 09075d2c209d
- 17d ago Changed · +1 lines 177e89d58406
- 1mo ago Changed · +20 lines 9b4671fa2ad3
- 1mo ago Changed · +2 lines 413de4357fe7
- 1mo ago First seen · 67 lines · 29 tokens per session scan A 05d15e1f72d0
add-doctrine-entity is a skill published in the GitHub repository tarlepp/symfony-flex-backend (286 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 900 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.
add-doctrine-entity compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-doctrine-entitytarlepp/symfony-flex-backend | Skill | 286 | yesterday | MIT | A | 29 | Claude Code, Codex |
| horse-database-poolingHashLoad/horse | Skill | 1.4k | 23d ago | MIT | A | 30 | Claude Code, Codex |
| flapi-restDataZooDE/flapi | Skill | 75 | 6d ago | none | A | 116 | Claude Code |
| flapi-setupDataZooDE/flapi | Skill | 75 | 6d ago | none | A | 133 | Claude Code |
| flapi-cache-designDataZooDE/flapi | Skill | 75 | 6d ago | none | B | 150 | Claude Code |
| api-platform-performancegerard-labs/superpowers-api-platform | Skill | 2 | 6mo ago | MIT | A | 0 | Claude Code |
| doctrine-fetch-modesgerard-labs/superpowers-api-platform | Skill | 2 | 6mo ago | MIT | A | 130 | Claude Code |