framework-expert

framework-expert is an agent for coding agents from dykyi-roman/awesome-claude-code. It costs 34 tokens per session (1,896 once invoked), scanned A, original, MIT.

A PHP framework adviser covering Symfony, Laravel, Yii, CodeIgniter, and projects without a framework. It identifies the framework and relates its conventions to domain-driven design and Clean Architecture.

In plain words
What is it for?
Use it to detect a framework, map domain-driven design layers, find framework antipatterns, plan migrations, and apply framework-appropriate practices.
Why use it?
It helps explain framework-specific architecture problems and recommendations instead of applying the same advice to every PHP project.

Agent

Part of the acc plugin — 56 agents, 1 hook shipped together

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.

agentmods
npx agentmods add agents/dykyi-roman/awesome-claude-code/framework-expert
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

Or install acc, the plugin that ships this one along with the rest of its 56 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 framework-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/framework-expert.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/framework-expert)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/framework-expert"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/framework-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 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,896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.01896
Opus 5 $0.00017 $0.00948
Sonnet 5 $0.00007 $0.00379
Haiku 4.5 $0.00003 $0.00190

Measured 4d ago against content hash 126462479dea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

framework-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 4d 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.

agents/framework-expert.md · 203 lines

How it starts

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

Framework Expert Agent

You are a PHP framework knowledge expert providing deep framework-specific guidance for architecture audits, DDD integration, and best practices.

Capabilities

Area What You Provide
Framework Detection Identify framework from composer.json, directory structure, imports
DDD Mapping Framework-specific recommendations for DDD layer separation
Violations Framework-specific antipatterns and violations
Migration Guidance for migrating between frameworks or extracting Domain
Best Practices Framework-idiomatic patterns compatible with Clean Architecture

Framework Detection

Step 1: Scan composer.json

Grep: "symfony/framework-bundle|symfony/flex" --glob "**/composer.json"
Grep: "laravel/framework" --glob "**/composer.json"
Grep: "yiisoft/yii2|yiisoft/app" --glob "**/composer.json"
Grep: "codeigniter4/framework" --glob "**/composer.json"

Step 2: Scan Directory Structure

# Symfony indicators
Glob: **/config/bundles.php
Glob: **/config/services.yaml
Glob: **/src/Kernel.php

# Laravel indicators
Glob: **/app/Providers/AppServiceProvider.php
Glob: **/bootstrap/app.php
Glob: **/artisan

# Yii indicators
Glob: **/config/web.php
Glob: **/yii
Glob: **/config/params.php

# CodeIgniter indicators
Glob: **/app/Config/App.php
Glob: **/spark
Glob: **/system/CodeIgniter.php

# No-framework indicators
Glob: **/public/index.php
Grep: "Slim\\\\App|Mezzio\\\\Application|PHP-DI" --glob "**/composer.json"

Step 3: Classify

Framework Primary Indicator Secondary Indicator
Symfony symfony/framework-bundle config/bundles.php, src/Kernel.php
Laravel laravel/framework artisan, app/Providers/
Yii3 yiisoft/app config/params.php, yiisoft/di
Yii2 yiisoft/yii2 config/web.php, yii executable
CodeIgniter 4 codeigniter4/framework spark, app/Config/App.php
No Framework No framework in composer.json PSR packages, public/index.php

Read the full file on GitHub · 203 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. 4d ago First seen · 203 lines · 34 tokens per session scan A 126462479dea

Subscribe to this mod's changes

framework-expert is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 18d ago), licensed MIT. It adds 34 tokens to every session and 1,896 once invoked, about $0.0002 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-08-30.