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 dev-toolings/superpowers-symfony --skill doctrine-relationsgit clone --depth 1 https://github.com/dev-toolings/superpowers-symfonyWrote 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/dev-toolings/superpowers-symfony/doctrine-relations)<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/doctrine-relations"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/doctrine-relations/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/dev-toolings/superpowers-symfony/doctrine-relations"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/doctrine-relations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00037 | $0.00524 |
| Opus 5.5 | $0.00015 | $0.00210 |
| Sonnet 5.5 | $0.00007 | $0.00105 |
| Haiku 4.5 | $0.00004 | $0.00052 |
Grade A, and why
doctrine-relations 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 1mo 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.
Copies of this mod
2 near-identical copies found in the catalogue:
- doctrine-transactions — 88% identical, 39 lines differ
- doctrine-relations — 78% identical, 39 lines differ
What it actually says
Doctrine Relations (Symfony)
Use when
- Mapping a
ManyToOne,OneToMany,ManyToManyorOneToOneand choosing the owning side. - Deciding between
cascadeandorphanRemovalfor child entities. - A relation does not persist (only the inverse side was set), or
contains()is slow on a large inverse collection. - Splitting entities across several entity managers.
Default workflow
- Pick the owning side (holds the foreign key,
ManyToOnewithinversedBy) and the inverse side (OneToManywithmappedBy). - Initialize collections with
ArrayCollectionin the constructor, and writeaddX()andremoveX()helpers that keep both sides in sync. - Use
cascade: ['persist']for aggregates saved together, andorphanRemoval: trueonly for true composition. - Mark large inverse collections
fetch: 'EXTRA_LAZY', or test membership from the owning side. - Add fetch joins where a use case reads the relation, to avoid N+1 queries.
- With several entity managers, keep each entity set in one manager and fetch repositories through
ManagerRegistry.
Guardrails
- Doctrine persists what the owning side holds: always set the
ManyToOnereference. - Avoid
cascade: ['remove']on large collections (one DELETE per row), and never useorphanRemovalon shared entities. - A relation cannot span two entity managers.
- For a non-default entity manager, fetch repositories with
ManagerRegistry::getRepository(Entity::class, 'name').
Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
Output contract
- Entity mappings with the owning and inverse sides, cascade and orphan decisions.
- Fetch strategy for large collections and hot paths.
- Result of
doctrine:schema:validate.
References
reference.md
What ships with it
1 file 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.
- 1mo ago Changed · +4 lines ca1dac8dfdc3
- 2mo ago Changed · +3 lines · -3 tokens per session 8b15a321af82
- 3mo ago First seen · 42 lines · 40 tokens per session scan A a509574ca987
doctrine-relations is a skill published in the GitHub repository dev-toolings/superpowers-symfony (236 stars, last pushed 22d ago), licensed MIT. It adds 37 tokens to every session and 524 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-08-30.
doctrine-relations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doctrine-relationsdev-toolings/superpowers-symfony | Skill | 236 | 22d ago | MIT | A | 37 | Claude Code |
| vigil-instrumenttonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 61 | Claude Code |
| pave-envtonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 57 | Claude Code |
| apex-skillifytonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 41 | Claude Code |
| design-system-referencewigtn/wigtn-plugins | Skill | 45 | 3d ago | Apache-2.0 | A | 43 | Claude Code |
| boss-briefingsehoon787/my-claude | Skill | 17 | yesterday | MIT | A | 23 | Claude Code |
| monitor-activategtapps/hermitd | Skill | 88 | yesterday | MIT | A | 12 | Claude Code |