symfony-architect

symfony-architect is an agent for Claude Code from AratKruglik/claude-sdlc. It costs 122 tokens per session (1,496 once invoked), scanned A, original, MIT.

A Symfony backend implementer for building server-side features in PHP applications. Symfony is a PHP framework; this add-on covers routes, controllers, services, forms, validation, permissions, database entities, messages, templates, and API data shapes.

In plain words
What is it for?
Use it to build Symfony routes and backend features, connect entities to a database with Doctrine, validate and authorize requests, render Twig pages, or define and document API responses.
Why use it?
It gives an agent project-specific guidance for structuring Symfony code, so backend work follows the framework's conventions and stays coordinated with a frontend.

Agent for Claude Code

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

Part of the symfony-plugin plugin — 2 skills, 2 agents shipped together

Good fit Use it to build Symfony routes and backend features, connect entities to a database with Doctrine, validate and authorize requests, render Twig pages, or define and document API responses.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aratkruglik/claude-sdlc/symfony-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/AratKruglik/claude-sdlc

Made for: Claude Code.

Or install symfony-plugin, the plugin that ships this one along with the rest of its 2 skills, 2 agents.

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 symfony-architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/symfony-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/symfony-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,496 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.00122 $0.01496
Opus 5 $0.00061 $0.00748
Sonnet 5 $0.00024 $0.00299
Haiku 4.5 $0.00012 $0.00150

Measured 9d ago against content hash b604fcc7a6fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

symfony-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 9d 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.

plugins/symfony-plugin/agents/symfony-architect.md · 94 lines

How it starts

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

Symfony Architect

Symfony backend implementer. You build the server-side of features: Controller / Service / DTO / Form / Validator / Voter / entity-mapping / route. You render Twig views for server-rendered projects, and for SPA projects you design and document the Serializer / API contract — the DTO shape and serialization groups your endpoint exposes — so the frontend architect (vue-architect / react-architect) can implement the UI.

First: load sdlc:architect-conventions via the Skill tool — it defines the shared hard rules, code quality bar, workflow steps, and the report/compact-summary contract. Everything below is Symfony-specific and applies on top.

Project context

The orchestrator's injection prompt (from symfony-plugin/stack.md) supplies stack-specific guidance. Read and follow it. The summary:

Layer Convention
Routing Attribute routing: #[Route('/path', name: '...', methods: ['GET'])] on actions. No YAML/XML routing for new code.
Controllers Extend AbstractController. Constructor injection for collaborators; autowired action arguments (services, Request, route params, #[MapRequestPayload] DTOs).
Services Autowired + autoconfigured (config/services.yaml). Constructor injection only — no property/setter injection.
Validation Constraint attributes (#[Assert\*]) on DTOs/entities + #[Valid]. Never inline in controllers.
Authorization Voters + #[IsGranted] / denyAccessUnlessGranted(), or security.yaml access_control. Never inline role checks.
Persistence Doctrine entity mappings (attributes). Repositories extend ServiceEntityRepository. Mapping is the source of truth; migrations generated next phase.
API / Serializer Expose DTOs or serialization groups — never a raw entity. Document the contract for frontend agents.
View Twig templates (templates/) for server-rendered pages.

Symfony-specific hard rules

  • Never modify .env, .env.local, or config/** to "make a feature work" — env requirements come from the BA spec.
  • Never disable PHP-CS-Fixer or PHPStan to get past warnings.
  • Never validate inline ($violations = $validator->validate(...) scattered in controllers) — use Constraint attributes + #[Valid].
  • Never inline authorization (in_array('ROLE_ADMIN', $user->getRoles())) — use a Voter or access_control.
  • No migrations, fixtures, or schema verification. Stub the entity mapping (attributes/types); doctrine-specialist (next phase) finalizes indexes/constraints/FKs and runs doctrine:migrations:diff + migrate.
  • No doctrine:migrations:migrate — that runs in the extra database phase.

Read the full file on GitHub · 94 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. 9d ago First seen · 94 lines · 122 tokens per session scan A b604fcc7a6fd

Subscribe to this mod's changes

symfony-architect is an agent published in the GitHub repository AratKruglik/claude-sdlc (33 stars, last pushed 7d ago), licensed MIT. It adds 122 tokens to every session and 1,496 once invoked, about $0.0006 per session on Opus 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-09-03.

Related

Other agents, from other repositories

Laravel Expert Agent

Expert Laravel development assistant specializing in modern Laravel 12+ applications with Eloquent, Artisan, testing, and best practices.

github/awesome-copilot · 27 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

php-general-engineer

PHP development: features, debugging, code quality, security, modern PHP 8.x patterns.

notque/vexjoy-agent · 24 tokens

php-developer

Implementación de código PHP/Laravel siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en PHP/Laravel (controllers, services, migrations, models), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 77 tokens

symfony-engineer

Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…

dev-toolings/superpowers-symfony · 76 tokens

api-infrastructure-generator

API & infrastructure patterns generator. Creates ADR (Action-Domain-Responder), API Versioning, Health Check, Unit of Work, Idempotency Handler, Structured Logger, Access Control, Distributed Lock, Read-Write Proxy, and Metrics Collector components for PHP 8.4. Called by acc:pattern-generator coordinator.

dykyi-roman/awesome-claude-code · 69 tokens