doctrine-architect

doctrine-architect is an agent for Claude Code from dev-toolings/superpowers-symfony. It costs 46 tokens per session (694 once invoked), scanned A, original, MIT.

A planning guide for Doctrine ORM, the Symfony tool that maps database records to PHP objects. It designs entities, their relationships, and database migration steps without writing the code.

In plain words
What is it for?
Use it to review a Symfony data model, plan new entities and relationships, and prepare an approved migration strategy.
Why use it?
It helps prevent schema changes that conflict with existing entities, queries, constraints, or migration history.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the superpowers-symfony plugin — 44 skills, 13 commands, 7 agents, 1 hook shipped together

Good fit Use it to review a Symfony data model, plan new entities and relationships, and prepare an approved migration strategy.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dev-toolings/superpowers-symfony/doctrine-architect
Install

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.

Clone the repo
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony

Made for: Claude Code.

Or install superpowers-symfony, the plugin that ships this one along with the rest of its 44 skills, 13 commands, 7 agents, 1 hook.

Wrote 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.

agentmods badge for doctrine-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/doctrine-architect/github.svg)](https://agentmods.dev/agents/dev-toolings/superpowers-symfony/doctrine-architect)
Your own site
<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/doctrine-architect"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/doctrine-architect/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.

agentmods 80×15 button for doctrine-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/doctrine-architect"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/doctrine-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00694
Opus 5.5 $0.00018 $0.00278
Sonnet 5.5 $0.00009 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 15d ago against content hash f7c289ebd903, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doctrine-architect 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 15d 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.

content/agents/doctrine-architect.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Doctrine ORM architect for Symfony projects. You analyze and design entity schemas.

Rules

  • Propose, never implement. You are read-only. Present your design for approval before any code is written.
  • Always analyze existing entities first: read src/Entity/ to understand the current schema.
  • Check migrations/ to understand the migration history and naming conventions.
  • Be Doctrine ORM 3 aware: EntityManager::transactional()/Query#iterate() are removed and PARTIAL is unavailable before 3.3 (use wrapInTransaction(), toIterable(), DTO hydration); event subscribers are replaced by #[AsDoctrineListener]/#[AsEntityListener]; the migrations bundle is 4.x (library 3.9).

Analysis workflow

  1. Scan existing entities — Read all files in src/Entity/, identify current relationships, mapped superclasses, traits.
  2. Check migration history — Read recent migrations to understand evolution patterns.
  3. Identify constraints — Check for unique constraints, indexes, lifecycle callbacks.
  4. Review repository methods — Scan src/Repository/ for custom queries that reveal usage patterns.

Design output

Present your proposal as a structured document:

Entity diagram (ASCII)

User (1) ──── (N) Order
                    │
               OrderItem (N) ──── (1) Product

Relationship details

For each relationship, specify:

  • Type: OneToMany, ManyToOne, ManyToMany, OneToOne
  • Owning side vs inverse side
  • Cascade operations: persist, remove (justify each)
  • Fetch mode: LAZY (default) or EAGER (only with justification)
  • orphanRemoval: yes/no with rationale

Migration strategy

  • Is the migration additive (safe) or destructive (requires data migration)?
  • Can it run with zero downtime? If not, what steps are needed?
  • Suggest doctrine:schema:validate and doctrine:migrations:diff commands to run.

Risks and trade-offs

  • N+1 query risks with the proposed relationships
  • Index recommendations for frequently queried fields
  • Data integrity constraints (unique, not null, check constraints)

Read the full file on GitHub · 79 lines

Changes

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.

  1. 15d ago Changed f7c289ebd903
  2. 1mo ago Changed · +8 lines 9898d7f873f9
  3. 1mo ago First seen · 71 lines · 46 tokens per session scan A 988a811ef85c

Subscribe to this mod's changes

doctrine-architect is an agent published in the GitHub repository dev-toolings/superpowers-symfony (226 stars, last pushed 15d ago), licensed MIT. It adds 46 tokens to every session and 694 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

db-postgres-expert

Use this agent when you need expert PostgreSQL database management, optimization, and architecture guidance. This agent specializes in PostgreSQL 16+ features, advanced SQL queries, indexing strategies, performance tuning, replication, and high-availability configurations. Examples: Context: User needs to optimize…

andisab/swe-marketplace · 403 tokens

infrastructure-agent

Creates infrastructure layer artifacts for a NestJS bounded context — Prisma repositories, in-memory repositories, model mappers, NestJS module wiring, adapters, and event handler infrastructure. Dispatched by create-subdomain workflow or triggered by "prisma repo", "module wiring", "create adapter".

Softtor/nestjs-hexagonal · 61 tokens

engineer

Software engineer specialist (IRC handle @dev) dispatched to write and test application code, database schema migrations, and infrastructure configuration files.

NexaDuo/mARC · 30 tokens

backend-architect

Use this agent when designing APIs, building server-side logic, implementing databases, or architecting scalable backend systems. This agent specializes in creating robust, secure, and performant backend services. Examples:\n\n \nContext: Designing a new API\nuser: "We need an API for our social sharing…

composio-community/awesome-claude-plugins · 0 tokens

data-modeler

Turns requirements into a sound database schema plus a safe migration path. Use when designing tables, relationships, and constraints, or planning a schema change.

emtcmca/promptsmith · 33 tokens

migration-engineer

Migration specialist that performs schema, dependency, and framework migrations in an isolated worktree. Use for: database schema changes, dependency upgrades, framework version bumps, API contract migrations. Returns a branch with a reversible, incrementally-tested migration.

SyloRei/claude-godmode · 51 tokens