Jpa Patterns
decebals/claude-code-java
JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries).
Optimize Doctrine fetching with DTO hydration (SELECT NEW), fetch joins, lazy loading, query hints, and DBAL 4 access
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modes --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .claude/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .claude/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modes --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .agents/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .agents/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .agents/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modes --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .cursor/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .cursor/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/dev-toolings/superpowers-symfony.git --path content/skills/doctrine-fetch-modes--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modes --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .gemini/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .gemini/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .github/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .github/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .github/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install dev-toolings/superpowers-symfony doctrine-fetch-modes --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/content/skills/doctrine-fetch-modes .opencode/skills/doctrine-fetch-modes && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "doctrine-fetch-modes" agent skill from https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/doctrine-fetch-modes into .opencode/skills/doctrine-fetch-modes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctrine-fetch-modes", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
doctrine-fetch-modesOptimize Doctrine fetching with DTO hydration (SELECT NEW), fetch joins, lazy loading, query hints, and DBAL 4 access
Doctrine Fetch Modes is an agent skill from dev-toolings/superpowers-symfony. Optimize Doctrine fetching with DTO hydration (SELECT NEW), fetch joins, lazy loading, query hints, and DBAL 4 access
Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).
It sits in Databases, covering Web performance. It works with SQL. The repository describes itself as: Claude Code plugin for Symfony 7.4 LTS & 8.x — 44 skills, 7 AI subagents & 13 commands for API Platform v4, Doctrine ORM 3, TDD (Pest/PHPUnit), Messenger, security & DDD. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 459bcd0. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGlobGrepWriteEditBashFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Doctrine Fetch Modes loads about 560 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 282 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Glob, Grep, Write, Edit, BashAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from dev-toolings/superpowers-symfony at commit 459bcd0, republished under its MIT licence (© dev-toolings). 282 words, ~560 tokens.
.claude/skills/doctrine-fetch-modes/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.LAZY, EAGER or EXTRA_LAZY on a mapping, or porting ORM 2 code that relied on PARTIAL objects.fetch: 'LAZY'; set fetch: 'EXTRA_LAZY' on large collections so count(), contains() and slice() run targeted SQL.addSelect() plus leftJoin()).readonly DTO with SELECT NEW (constructor argument order must match the NEW list).Query::HINT_READ_ONLY or an index-by alias (createQueryBuilder('p', 'p.id')) when the result is only displayed or looked up by id.fetchAllAssociative(), fetchOne(), executeStatement()).PARTIAL in DQL fails on ORM 3.0 to 3.2 and only returns from 3.3: use SELECT NEW DTOs for read-only lists instead.fetch: 'EAGER' on a mapping; a fetch join in the query gives the same result per use case.SELECT NEW returns DTOs, not managed entities: never modify or flush them.query(), exec() and fetchAll().SELECT NEW queries that fill them.doctrine:query:dql --show-sql.reference.md© dev-toolings, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in content/skills/doctrine-fetch-modes of dev-toolings/superpowers-symfony.
Open the folder on GitHubat commit 459bcd0
Doctrine Fetch Modes next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Doctrine Fetch Modes this skilldev-toolings/superpowers-symfony | 223 | — | ~560 | Automated safety check: Notes | MIT | |
| Jpa Patternsdecebals/claude-code-java | 751 | 1 repos | ~4k | Automated safety check: Pass | MIT | |
| Formatting Insight AxesPostHog/posthog | 40k | — | ~2.1k | Automated safety check: Pass | Custom licence | |
| Performance TuningNoobyGains/godmode | 107 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Evolving The Data ModelTriliumNext/Trilium | 38k | — | ~2.1k | Automated safety check: Pass | AGPL-3.0 | |
| Orchardcore Data MigrationOrchardCMS/OrchardCore | 8.2k | — | ~1.7k | Automated safety check: Pass | BSD-3-Clause |
decebals/claude-code-java
JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries).
PostHog/posthog
Pick the right y-axis unit when creating or updating an insight via posthog:insight-create or posthog:insight-update — both TrendsQuery (trendsFilter.aggregationAxisFormat) and SQL insights…
NoobyGains/godmode
A skill your agent uses when performance is a concern - sluggish pages, slow queries, bloated bundles, high-latency APIs, or whenever someone says "optimize" or "make it faster"
TriliumNext/Trilium
A skill your agent uses when adding a DB migration or a new column/field to a Becca entity in Trilium ("add a migration", "new column on notes/attributes", "ALTER TABLE", "add a field to…
OrchardCMS/OrchardCore
Creates and updates OrchardCore data migrations (DataMigration classes with CreateAsync/UpdateFromX).
ynulihao/AgentSkillOS
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries.
dev-toolings/superpowers-symfony
Schedule recurring tasks with the Symfony Scheduler component (native since 7.x); define schedules, triggers, and integrate with Messenger
dev-toolings/superpowers-symfony
Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper ([Map], stateOptions) for decoupled input/output contracts
dev-toolings/superpowers-symfony
Implement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the [ApiFilter] attribute deprecated since 4.4 - for search, date, range, boolean, and custom filtering
dev-toolings/superpowers-symfony
Configure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned REST/GraphQL APIs
dev-toolings/superpowers-symfony
Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control
dev-toolings/superpowers-symfony
Control API Platform serialization with groups, [Context], IRI links (readableLink/writableLink), and custom context builders
Works with
Categories
Optimize Doctrine fetching with DTO hydration (SELECT NEW), fetch joins, lazy loading, query hints, and DBAL 4 access. Doctrine Fetch Modes is an agent skill from dev-toolings/superpowers-symfony.
Doctrine Fetch Modes fits situations like: tasks that involve Web performance.
Run `npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a claude-code`. Or copy the skill folder (content/skills/doctrine-fetch-modes in dev-toolings/superpowers-symfony) into .claude/skills/doctrine-fetch-modes in your project. Claude Code loads it when a task matches its description.
Run `npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a codex`. Or copy the skill folder (content/skills/doctrine-fetch-modes in dev-toolings/superpowers-symfony) into .agents/skills/doctrine-fetch-modes in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dev-toolings/superpowers-symfony --skill doctrine-fetch-modes -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doctrine-fetch-modes, .gemini/skills/doctrine-fetch-modes, .github/skills/doctrine-fetch-modes and .opencode/skills/doctrine-fetch-modes in your project.
SKILL.md names no scripts, command-line tools or credentials: Doctrine Fetch Modes is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit, Bash.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Doctrine Fetch Modes is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 560 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Doctrine Fetch Modes: Jpa Patterns (decebals/claude-code-java, 751 stars), Formatting Insight Axes (PostHog/posthog, 40k stars), Performance Tuning (NoobyGains/godmode, 107 stars) and Evolving The Data Model (TriliumNext/Trilium, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
dev-toolings (a GitHub organization) maintains it in dev-toolings/superpowers-symfony, which has 223 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 5, 2026.
Source: dev-toolings/superpowers-symfony on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.