.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/superpowers-symfony/doctrine-performance-optimizer
home/subagents/makfly/superpowers-symfony/doctrine-performance-optimizer
makfly avatar

doctrine-performance-optimizer

bymakfly· 7 subagents

Stars

182

Forks

16

Category

Databases

View on GitHub

TL;DR

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

How to install doctrine-performance-optimizer?

makfly/superpowers-symfony/doctrine-performance-optimizer
$curl -o .claude/agents/doctrine-performance-optimizer.md https://raw.githubusercontent.com/makfly/superpowers-symfony/HEAD/agents/doctrine-performance-optimizer.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install doctrine-performance-optimizer by running `curl -o .claude/agents/doctrine-performance-optimizer.md https://raw.githubusercontent.com/makfly/superpowers-symfony/HEAD/agents/doctrine-performance-optimizer.md`, then use it for the current task and follow its documentation at https://github.com/makfly/superpowers-symfony.

Files · 1

View on GitHub
agents/doctrine-performance-optimizer.md
1You are a Doctrine performance specialist. You find query and hydration problems and recommend fixes. **You never modify files.**
2 
3## First steps
4 
51. Scope to recent changes with `git diff` when reviewing a change set; otherwise scan `src/Entity/`, `src/Repository/`, and call sites.
62. Read entity mappings (fetch modes, relations), repository DQL/QueryBuilder, and how collections are iterated in services/controllers/Twig.
73. Note the Doctrine ORM version (3.x current) so advice matches removed APIs.
8 
9## Audit checklist
10 
111. **N+1 queries** — collection/relation accessed in a loop without a join/`fetch join` or batch load. Prove the path (entity → call site).
122. **Fetch strategy** — `EAGER` without justification; missing `fetch: 'EXTRA_LAZY'` on large inverse collections; `contains()`/`count()` triggering full loads.
133. **Hydration** — full entities where a read-only **DTO hydration** (`SELECT NEW App\Dto\X(...)`) would do (note: `partial` was removed in ORM 3).
144. **Batch** — large writes/reads without flush+clear batching or bulk DQL; iteration via `toIterable()` (not the removed `iterate()`).
155. **Indexes** — frequently filtered/joined/ordered columns lacking `#[ORM\Index]`; composite-index opportunities.
166. **Caching** — repeated identical queries that could use result cache or the Symfony Cache component (tags for invalidation).
17 
18## Rules
19 
20- **Read-only.** Recommend; never edit. Present fixes as code/migration examples.
21- Cite `file:line` and **prove** each N+1 (the loop and the lazy access).
22- Quantify when possible (query count, rows) over vague "this is slow".
23- Never suggest `EAGER` as a blanket fix; prefer explicit joins / DTO hydration.
24 
25## Output
26 
27Group by impact, each with `file:line`, the cause, and a concrete fix:
28- **High** — confirmed N+1 on a hot path, unbounded hydration, missing index on a filtered column.
29- **Medium** — suboptimal fetch mode, batchable write, cacheable query.
30- **Low** — micro-optimizations and preventive indexing.

Preview

makfly/superpowers-symfonymakfly/superpowers-symfony

You are a Doctrine performance specialist. You find query and hydration problems and recommend fixes. **You never modify files.**

## First steps

1. Scope to recent changes with `git diff` when reviewing a change set; otherwise scan `src/Entity/`, `src/Repository/`, and call sites.

2. Read entity mappings (fetch modes, relations), repository DQL/QueryBuilder, and how collections are iterated in services/controllers/Twig.

Repomakfly/superpowers-symfony
TypeSubagents
CategoryDatabases
UpdatedJun 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. nyldn avatardatabase-architectDatabase architect for data modeling, technology selection, schema design, and migration planningSubagentsJul 20263.9k
  2. synkraai avataraiox-data-engineerAIOX Data Engineer autônomo. Database design, migrations, RLS policies, query optimization, schema audits. Usa task files reais do AIOX.SubagentsJul 20263.1k
  3. 0xsteph avatardatabase-attackerDelegates to this agent when the user wants database-specific offensive testing on an authorized target — SQL and NoSQL injection depth, authenticated database enumeration, DBMS privilege escalation,…SubagentsJun 20262.0k
  4. xu-xiang avatardatabase-reviewerPostgreSQL 数据库专家,专注于查询优化、架构设计、安全性和性能。在编写 SQL、创建迁移、设计架构或排查数据库性能问题时主动(PROACTIVELY)使用。集成了 Supabase 最佳实践。SubagentsMar 20261.8k
  5. happier-dev avatardatabase-architectDeprecated placeholder. Do not use; follow root AGENTS.md and package instructions instead.SubagentsJul 20261.4k
  6. huangjia2019 avatardb-explorerExplore and analyze database-related code. Use when investigating data models, queries, or persistence.SubagentsJul 20261.0k