Agent skill

Ports And Adapters

by dev-toolings in dev-toolings/superpowers-symfony

Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries

MITAuto-check passedTesting & QA

Install Ports And Adapters

skills CLI
$ npx skills add dev-toolings/superpowers-symfony --skill ports-and-adapters -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dev-toolings/superpowers-symfony ports-and-adapters --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/ports-and-adapters .claude/skills/ports-and-adapters && rm -rf skills-src

Use ~/.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/

Facts

Skill name
ports-and-adapters
GitHub stars
223
Token cost
~443 tokens
SKILL.md length
209 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries

  • Works in 5 steps: Model the domain in plain PHP: entities… → Declare ports as interfaces inside the… → Write use cases in the application layer… → …
  • Testing & QA work in your project
  • SKILL.md covers Use when, Default workflow, Guardrails and Progressive disclosure, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ports And Adapters is an agent skill from dev-toolings/superpowers-symfony. Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries

Its SKILL.md is about 440 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 Testing & QA. It works with Symfony. 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.

When your agent uses it

  • Testing & QA work in your project

Example prompts

  • “/ports-and-adapters”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Model the domain in plain PHP: entities and value objects without ORM attributes.
  2. Declare ports as interfaces inside the domain, such as a repository interface.
  3. Write use cases in the application layer as commands and handlers that depend only on ports.
  4. Implement adapters in infrastructure (Doctrine repository, API client) and map entities outside the domain, with XML mapping.
  5. Bind each port to its adapter in the service configuration; controllers live in infrastructure.

What it can do on your machine

Read from SKILL.md and the folder at commit 459bcd0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ports And Adapters loads about 443 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 209 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~443

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.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

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

SKILL.md

The full file from dev-toolings/superpowers-symfony at commit 459bcd0, republished under its MIT licence (© dev-toolings). 209 words, ~443 tokens.

Download SKILL.mdSave it as .claude/skills/ports-and-adapters/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ports-and-adapters
description
Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries
allowed-tools
Read, Glob, Grep
capabilities
read, search
tags
architecture

Ports And Adapters (Symfony)

Use when

  • Domain rules must not depend on Doctrine, HTTP, or a vendor SDK.
  • An infrastructure dependency (storage, payment, mail provider) must be swappable or faked.
  • Structuring a bounded context into Domain, Application and Infrastructure layers.

Default workflow

  1. Model the domain in plain PHP: entities and value objects without ORM attributes.
  2. Declare ports as interfaces inside the domain, such as a repository interface.
  3. Write use cases in the application layer as commands and handlers that depend only on ports.
  4. Implement adapters in infrastructure (Doctrine repository, API client) and map entities outside the domain, with XML mapping.
  5. Bind each port to its adapter in the service configuration; controllers live in infrastructure.

Guardrails

  • Nothing under src/Domain/ imports Symfony, Doctrine or vendor SDK classes.
  • Dependencies point inward: infrastructure knows the domain, never the reverse.
  • Do not add the layers to a CRUD module with no business rules.
  • Test the domain with plain unit tests and the adapters with integration tests.

Progressive disclosure

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

Output contract

  • The layer layout and the port interfaces.
  • The adapters and their service bindings.
  • Domain unit tests that boot no kernel.

References

  • 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

Files

SKILL.md and 1 other file in content/skills/ports-and-adapters of dev-toolings/superpowers-symfony.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 459bcd0

Compare with similar skills

Ports And Adapters 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.

Ports And Adapters compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ports And Adapters this skilldev-toolings/superpowers-symfony223—~443Automated safety check: PassMIT
MongoDB Source Connector E2E Harnessairbytehq/airbyte22k—~1.9kAutomated safety check: PassCustom licence
source-mssql E2E Test Harnessairbytehq/airbyte22k—~4.4kAutomated safety check: PassCustom licence
Bug Triagesymfony/symfony31k—~1.9kAutomated safety check: PassMIT
Airbyte source-mysql E2E Testsairbytehq/airbyte22k—~2.6kAutomated safety check: PassCustom licence
TiDB Test Diff Triagepingcap/tidb41k—~498Automated safety check: PassApache-2.0

Similar skills

  • Official

    Starts a throwaway MongoDB 7.0 replica set and runs the Airbyte spec, check, discover and read commands against source-mongodb-v2 images for local end-to-end testing.

    22k GitHub stars~1.9k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Official

    Stands up a throwaway local SQL Server 2022 backend, applies SQL fixtures and runs Airbyte spec, check, discover and read against source-mssql images.

    22k GitHub stars~4.4k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Bug Triage

    symfony/symfony

    Decide whether open Bug PRs target the correct branch. An agent skill from symfony/symfony.

    31k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Stands up a throwaway local MySQL 8.0 backend, applies SQL fixtures and sweeps the Airbyte spec, check, discover and read commands against a source-mysql image.

    22k GitHub stars~2.6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Investigates TiDB plan or test-result diffs that the change does not explain, ruling out failpoint setup and merge effects before expected outputs are updated.

    41k GitHub stars~498 tokensUpdated today
    Testing & QAAuto-check passed
  • Merge Up

    symfony/symfony

    Cascade-merge maintained Symfony branches from oldest to newest (e.g.

    31k GitHub stars~4k tokensUpdated today
    DevelopmentAuto-check passed

More from dev-toolings/superpowers-symfony

All 44 skills in this repo
  • Symfony Scheduler

    dev-toolings/superpowers-symfony

    Schedule recurring tasks with the Symfony Scheduler component (native since 7.x); define schedules, triggers, and integrate with Messenger

    223 GitHub stars~526 tokensUpdated 4 days ago
    Auto-check: notes
  • API Platform Dto Resources

    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

    223 GitHub stars~593 tokensUpdated 4 days ago
    Auto-check: notes
  • API Platform Filters

    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

    223 GitHub stars~610 tokensUpdated 4 days ago
    Auto-check: notes
  • API Platform Resources

    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

    223 GitHub stars~560 tokensUpdated 4 days ago
    Auto-check: notes
  • API Platform Security

    dev-toolings/superpowers-symfony

    Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control

    223 GitHub stars~551 tokensUpdated 4 days ago
    Auto-check: notes
  • API Platform Serialization

    dev-toolings/superpowers-symfony

    Control API Platform serialization with groups, [Context], IRI links (readableLink/writableLink), and custom context builders

    223 GitHub stars~519 tokensUpdated 4 days ago
    Auto-check: notes

Works with

Questions about Ports And Adapters

What does Ports And Adapters do?

Implement Hexagonal Architecture (Ports and Adapters) in Symfony; separate domain logic from infrastructure with clear boundaries. Ports And Adapters is an agent skill from dev-toolings/superpowers-symfony.

When should I use Ports And Adapters?

Ports And Adapters fits situations like: testing & QA work in your project.

How do I install Ports And Adapters in Claude Code?

Run `npx skills add dev-toolings/superpowers-symfony --skill ports-and-adapters -a claude-code`. Or copy the skill folder (content/skills/ports-and-adapters in dev-toolings/superpowers-symfony) into .claude/skills/ports-and-adapters in your project. Claude Code loads it when a task matches its description.

How do I install Ports And Adapters in Codex?

Run `npx skills add dev-toolings/superpowers-symfony --skill ports-and-adapters -a codex`. Or copy the skill folder (content/skills/ports-and-adapters in dev-toolings/superpowers-symfony) into .agents/skills/ports-and-adapters in your project. Codex loads it when a task matches its description.

Can I use Ports And Adapters in Cursor, Gemini CLI or GitHub Copilot?

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 ports-and-adapters -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ports-and-adapters, .gemini/skills/ports-and-adapters, .github/skills/ports-and-adapters and .opencode/skills/ports-and-adapters in your project.

What does Ports And Adapters need to run?

SKILL.md names no scripts, command-line tools or credentials: Ports And Adapters is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep.

Does Ports And Adapters access the network?

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.

Is Ports And Adapters safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ports And Adapters use?

Ports And Adapters is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ports And Adapters use?

About 443 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ports And Adapters?

Skills that share tags, products or a category with Ports And Adapters: MongoDB Source Connector E2E Harness (airbytehq/airbyte, 22k stars), source-mssql E2E Test Harness (airbytehq/airbyte, 22k stars), Bug Triage (symfony/symfony, 31k stars) and Airbyte source-mysql E2E Tests (airbytehq/airbyte, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ports And Adapters?

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.