symfony:ports-and-adapters

symfony:ports-and-adapters is a skill for Claude Code from dev-toolings/superpowers-symfony. It costs 29 tokens per session (231 once invoked), scanned A, a copy of symfony:brainstorming, MIT.

A Symfony architecture guide based on Ports and Adapters, also called Hexagonal Architecture. It keeps business rules separate from databases, web requests, and other outside systems.

In plain words
What is it for?
Use it to plan and implement medium or complex Symfony architecture and workflow changes while preserving clear boundaries and recording risks and follow-up work.
Why use it?
It reduces coupling, so changes to infrastructure are less likely to disturb core business logic. It also provides checkpoints and decision records for complex changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to plan and implement medium or complex Symfony architecture and workflow changes while preserving clear boundaries and recording risks and follow-up work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dev-toolings/superpowers-symfony/ports-and-adapters
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.

Any agent
npx skills add dev-toolings/superpowers-symfony --skill ports-and-adapters
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 symfony:ports-and-adapters

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/ports-and-adapters"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/ports-and-adapters.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 231 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 80% copy Near-identical to another mod 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.00029 $0.00231
Opus 5 $0.00015 $0.00115
Sonnet 5 $0.00006 $0.00046
Haiku 4.5 $0.00003 $0.00023

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

Security

Grade A, and why

symfony:ports-and-adapters 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 10d 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.

Origin

This is a copy

80% identical to symfony:brainstorming — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ports-and-adapters/SKILL.md · 40 lines

What it actually says

Ports And Adapters (Symfony)

Use when

  • Refining architecture/workflows/context handling in Symfony projects.
  • Planning and executing medium/complex changes safely.

Default workflow

  1. Establish current boundaries, constraints, and coupling points.
  2. Propose smallest coherent architectural adjustment.
  3. Execute in checkpoints with validation at each stage.
  4. Summarize tradeoffs and follow-up backlog.

Guardrails

  • Use existing project patterns by default.
  • Avoid broad refactors without explicit need.
  • Keep decision log clear and auditable.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Architecture/workflow changes.
  • Checkpoint validation outcomes.
  • Residual risks and next steps.

References

  • reference.md
  • docs/complexity-tiers.md
Files

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.

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. 10d ago First seen · 40 lines · 29 tokens per session scan A bb4564ec32f3

Subscribe to this mod's changes

symfony:ports-and-adapters is a skill published in the GitHub repository dev-toolings/superpowers-symfony (210 stars, last pushed 10d ago), licensed MIT. It adds 29 tokens to every session and 231 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 80% identical to symfony:brainstorming, differing in 7 lines, and is treated as a copy.

Related

Other skills, from other repositories

mcp-server-dev

Create MCP servers — multi-tool services exposed via Model Context Protocol. Use this skill whenever users mention MCP servers, building servers, server scaffolding, tool registration, or want to package tools for distribution via uvx or npx. Also use when the conversation involves stdio transport, server lifecycle…

andisab/swe-marketplace · 175 tokens

mcp-tool-dev

Create MCP tools — individual tool functions exposed via Model Context Protocol. Use this skill whenever users mention MCP tools, tool handlers, tool functions, tool definitions, or want to add capabilities to an MCP server. Also use when the conversation involves designing tool schemas, writing tool descriptions, or…

andisab/swe-marketplace · 158 tokens

fastify-expert

Use when building or debugging Fastify services - files importing fastify, fastify-plugin, @fastify/ packages, or @sinclair/typebox; projects with a Fastify app factory, route plugins, or app.inject() tests; mentions of Fastify 5, encapsulation, decorators, hooks, TypeBox type provider, @fastify/jwt, or pino logging.…

Aarvion-AI/stackwise-skills · 140 tokens

go-expert

Use when writing or reviewing Go backend services - go.mod, .go files, net/http handlers, pgx/sqlc database code, goroutines, context.Context plumbing, or failing go test runs. Builds HTTP APIs on the Go 1.22+ stdlib router, fixes error-wrapping and context-cancellation bugs, designs leak-free goroutine lifecycles…

Aarvion-AI/stackwise-skills · 117 tokens

fastapi-expert

Use when building or debugging FastAPI services - files importing fastapi, pydantic, or sqlalchemy.ext.asyncio; projects with pyproject.toml using uv/ruff/mypy; mentions of FastAPI, Pydantic v2, APIRouter, Depends, async endpoints, OAuth2/JWT auth, or pytest with httpx. Builds REST APIs, migrates Pydantic v1 to v2…

Aarvion-AI/stackwise-skills · 134 tokens

nestjs-expert

Use when working in a NestJS project - nest-cli.json, @nestjs/ imports, .module.ts / .controller.ts / .service.ts files, main.ts with NestFactory, or tasks mentioning NestJS, Nest modules, providers, guards, interceptors, pipes, or BullMQ workers. Builds and refactors NestJS 11 APIs, wires DI and config, integrates…

Aarvion-AI/stackwise-skills · 128 tokens