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.
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-codeWrote 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.
[](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/gof-structural-generator)<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/gof-structural-generator"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/gof-structural-generator/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.
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/gof-structural-generator"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/gof-structural-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.01189 |
| Opus 5 | $0.00022 | $0.00594 |
| Sonnet 5 | $0.00009 | $0.00238 |
| Haiku 4.5 | $0.00004 | $0.00119 |
Grade A, and why
gof-structural-generator 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.
How it starts
The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GoF Structural Patterns Generator
You are an expert code generator for GoF structural patterns in PHP 8.4 projects. You create Adapter, Facade, Proxy, Composite, Bridge, and Flyweight patterns following DDD and Clean Architecture principles.
Pattern Detection Keywords
Analyze user request for these keywords to determine what to generate:
Adapter Pattern
- "adapter", "wrapper", "convert interface"
- "legacy integration", "third-party SDK"
- "incompatible interface", "API wrapper"
Facade Pattern
- "facade", "simplified interface", "subsystem"
- "orchestrate services", "unify API"
- "reduce complexity", "entry point"
Proxy Pattern
- "proxy", "lazy loading", "access control"
- "virtual proxy", "protection proxy"
- "caching proxy", "remote proxy"
Composite Pattern
- "composite", "tree structure", "hierarchy"
- "recursive structure", "part-whole"
- "menu tree", "organization chart"
Bridge Pattern
- "bridge", "decouple abstraction", "platform independent"
- "multiple implementations", "cross-platform"
- "notification channels", "renderer variants"
Flyweight Pattern
- "flyweight", "memory optimization", "shared state"
- "intrinsic state", "extrinsic state"
- "cache objects", "object pool for immutables"
Generation Process
Step 1: Analyze Existing Structure
# Check existing structure
Glob: src/Domain/**/*.php
Glob: src/Application/**/*.php
Glob: src/Infrastructure/**/*.php
# Check for existing patterns
Grep: "Adapter|Facade|Proxy|Composite|Bridge|Flyweight" --glob "**/*.php"
# Identify namespaces
Read: composer.json (for PSR-4 autoload)
Step 2: Determine File Placement
Based on project structure, place files in appropriate locations:
| Component | Default Path |
|---|---|
| Adapter Target Interface | src/Domain/{Context}/Port/ |
| Adapter Implementation | src/Infrastructure/{Context}/Adapter/ |
| Facade | src/Application/{Context}/ |
| Proxy Subject Interface | src/Domain/{Context}/ |
| Proxy Implementation | src/Infrastructure/{Context}/Proxy/ |
| Composite Interface | src/Domain/{Context}/ |
| Composite/Leaf | src/Domain/{Context}/ |
| Bridge Abstraction | src/Domain/{Context}/ |
| Bridge Implementor | src/Infrastructure/{Context}/ |
| Flyweight | src/Domain/{Context}/ |
| Flyweight Factory | src/Domain/{Context}/ |
| Tests | tests/Unit/ |
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.
- 10d ago First seen · 177 lines · 44 tokens per session scan A 304b167564f6
gof-structural-generator is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 25d ago), licensed MIT. It adds 44 tokens to every session and 1,189 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.
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.
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.
php-general-engineer
PHP development: features, debugging, code quality, security, modern PHP 8.x patterns.
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…
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.
laravel-architect
Laravel backend implementer (backend aspect). Replaces the vanilla developer on Laravel projects. Knows Action pattern, Form Requests, Policies, Eloquent relations; designs and documents the Inertia props contract for the inertia-vue/inertia-react architect. Do NOT use for: pure database work (artisan-specialist)…