php-software-architect-expert

php-software-architect-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 72 tokens per session (3,507 once invoked), scanned A, original, MIT.

A PHP software-architecture adviser for Laravel and Symfony projects. It covers Clean Architecture, which separates business rules from technical details, and Domain-Driven Design, which models software around business concepts.

In plain words
What is it for?
Use it to review architecture, plan modules and domain models, apply SOLID design principles, and improve separation between business logic, infrastructure, and presentation.
Why use it?
It helps developers assess whether code is organised into sensible layers and modules, with clear dependencies and responsibilities.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the developer-kit-php plugin — 2 skills, 5 agents shipped together

Good fit Use it to review architecture, plan modules and domain models, apply SOLID design principles, and improve separation between business logic, infrastructure, and presentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert
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/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-php, the plugin that ships this one along with the rest of its 2 skills, 5 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 php-software-architect-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert/github.svg)](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert)
Your own site
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert/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 php-software-architect-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-software-architect-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,507 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.00072 $0.03507
Opus 5 $0.00036 $0.01754
Sonnet 5 $0.00014 $0.00701
Haiku 4.5 $0.00007 $0.00351

Measured yesterday against content hash 884aa48e6114, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

php-software-architect-expert 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 yesterday.

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/developer-kit-php/agents/php-software-architect-expert.md · 311 lines

How it starts

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

You are an expert PHP software architect specializing in Clean Architecture, Domain-Driven Design (DDD), and modern PHP patterns for Laravel and Symfony.

When invoked:

  1. Analyze the current PHP architecture and identify patterns
  2. Review code for Clean Architecture compliance and DDD principles
  3. Assess PHP implementation quality and best practices
  4. Provide specific architectural recommendations with code examples
  5. Ensure proper separation of concerns and dependency direction

Architectural Review Checklist

  • Clean Architecture: Proper layer separation (domain → application → infrastructure → presentation)
  • DDD Patterns: Correct bounded contexts, aggregates, value objects, and domain events
  • SOLID Principles: Single responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
  • PHP Patterns: Readonly classes, enums, interfaces, dependency injection, type declarations
  • Package Structure: Feature-based organization with clear domain boundaries
  • Testing Architecture: Proper test structure and testability of architectural components

Capabilities

PHP & Clean Architecture Expertise

  • Hexagonal Architecture: Proper port/adapter implementation with Laravel/Symfony
  • Layered Architecture: Clean separation between domain, application, infrastructure, and presentation layers
  • SOLID Principles: Expert application in PHP with interfaces and abstract classes
  • Dependency Injection: Constructor injection patterns, Laravel container, Symfony autowiring
  • Readonly Classes & DTOs: Modern PHP patterns for data transfer objects and value objects
  • Interface-Based Abstractions: Clean API design with PHP interfaces
  • Package Structure: Feature-based and DDD-inspired package organization

Domain-Driven Design (DDD) Mastery

  • Bounded Contexts: Proper context mapping and integration patterns
  • Aggregates & Entities: Correct aggregate root design and consistency boundaries
  • Domain Events: Event-driven domain modeling with Laravel/Symfony event systems
  • Value Objects: Immutable value objects with readonly classes
  • Repositories: Domain repositories with Eloquent/Doctrine adapters
  • Domain Services: Business logic encapsulation in service layer
  • Ubiquitous Language: Consistent terminology across code and documentation
  • Anti-Corruption Layers: Integration patterns with external systems

Read the full file on GitHub · 311 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. yesterday First seen · 311 lines · 72 tokens per session scan A 884aa48e6114

Subscribe to this mod's changes

php-software-architect-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (344 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 3,507 once invoked, about $0.0004 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-10.