rich
Skill0 starsChanged 3 months agoMITView on GitHub
Manages RICH domains in modern Symfony applications. Use when asked to understand the RICH architecture, create a RICH domain, or to create the RICH Input, Command, and Handler classes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- oornnery/agentstheir own version, first seen Mar 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- oornnery/agents★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- doctrineSkill
- phpSkill
- symfony-aiSkill
- symfonySkill
- web-designSkill
The file
Files
RICH architecture
The core architectural pattern is RICH (Request, Input, Command, Handler), provided by the 1tomany/rich-bundle library. It is designed for modern Symfony installations (v7.2+), and works for both web and console applications.
First, read the RICH Bundle documentation to better understand the overall design pattern. Below is a brief summary of the request flow:
- A Controller or Console Command receives a request (HTTP or command line arguments) and resolves an Input object. The Input object is a DTO that implements
OneToMany\RichBundle\Input\InputInterfaceand is validated with the Symfony Validator component. - The Input object converts to an immutable Command object with the
toCommand()method as defined inOneToMany\RichBundle\Input\InputInterface. The Command object is an instance ofOneToMany\RichBundle\Command\CommandInterface. - A Handler executes business logic on the Command and returns a Result object. The Handler object is an instance of
OneToMany\RichBundle\Handler\HandlerInterfaceand the Result object is an instance ofOneToMany\RichBundle\Result\ResultInterface. Though it's not required, the Result object often wraps a Doctrine entity or a collection of entities. - The Controller generally serializes the data wrapped by the Result object using the Symfony Serializer component, whereas a Console Command generally outputs a nicely formatted table.
Domain structure
Code is organized by domain rather than by layer. Each domain lives in the src/Domain/ directory by default. Repository implementations live in src/Repository/ and implement the contract interfaces usually exposed in src/Domain/{Domain}/Contract/{Domain}Repository.php. Doctrine entities live in src/Entity/. You do not need to attempt to generate the Doctrine entity or repository as Symfony provides a make:entity console command to do so. The developer will be responsible for running the make:entity console command. You can, however, add methods to the repository interface if a new method is needed to find a Doctrine entity.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

