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.
npx skills add tarlepp/symfony-flex-backend --skill add-rest-resourcegit clone --depth 1 https://github.com/tarlepp/symfony-flex-backendWrote 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/skills/tarlepp/symfony-flex-backend/add-rest-resource)<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-rest-resource"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-rest-resource/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/skills/tarlepp/symfony-flex-backend/add-rest-resource"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-rest-resource.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.00028 | $0.00666 |
| Opus 5.5 | $0.00011 | $0.00266 |
| Sonnet 5.5 | $0.00006 | $0.00133 |
| Haiku 4.5 | $0.00003 | $0.00067 |
Grade A, and why
add-rest-resource 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 today.
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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a REST resource
Use this skill when adding a CRUD API resource or extending an existing resource's input, output, or behavior.
Follow the shared skill guidance in .github/skills/shared-guidance.md.
Workflow
- Inspect
composer.json,symfony.lock, the target endpoint's tests, and a complete nearby feature.ApiKeyis one reference implementation; confirm its patterns against current code before reusing them. Check existing routes, role requirements, DTO conventions, and migrations before editing. - Keep the change within the existing vertical-slice architecture:
Entity -> DTO / AutoMapper -> Repository -> Resource -> Controller. Extend an existing class or pattern where appropriate; do not create a parallel abstraction. - For a persistence change, update the entity using Doctrine attributes and
existing entity interfaces/traits. Add serialization groups and Symfony
Validator constraints consistent with the field's API exposure and
validation needs. Generate and review a Doctrine migration; do not use
doctrine:schema:updateor hand-write schema changes. Follow.github/skills/add-doctrine-entity/SKILL.mdfor entity changes; every entity requires a corresponding repository and resource. - Define API input/output through DTOs in
src/DTO/. Follow the existingRestDtopatterns, validation constraints, and patch/visited-field behavior. Updatesrc/AutoMapper/request mapping and configuration when request values need conversion (for example, resolving related entity IDs to entity references). Do not expose entities directly in responses. - Add or update the repository in
src/Repository/, followingBaseRepositoryconventions and entity generics. Keep query/data-access behavior there; put orchestration and business rules in a resource or service. - Add or update the resource in
src/Resource/, extendingRestResourceand preserving its entity/repository types. Reuse lifecycle callbacks and repository helpers where they fit instead of duplicating generic CRUD behavior. - Add or update the controller and route using the closest existing endpoint
pattern. Generic CRUD endpoints commonly extend
App\Rest\Controller, use role-specific action traits, map create/update/patch methods to their DTO classes, and apply explicit route and authorization attributes. Keep access checks at least as restrictive as the intended API policy. Use a custom__invokecontroller only when that matches the endpoint's existing style. - Follow
.github/skills/write-tests/SKILL.mdfor testing. Cover authorization and validation outcomes when relevant; update fixtures only when the tests need the new data. - Update API documentation attributes or relevant project docs if the change affects the documented contract or usage.
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.
- today First seen · 60 lines · 28 tokens per session scan A 1b201761ec65
add-rest-resource is a skill published in the GitHub repository tarlepp/symfony-flex-backend (288 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 666 once invoked, about $0.0001 per session on Opus 5.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-10-18.
Other skills, from other repositories
horse-database-pooling
Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
api-platform-performance
Tune API Platform 4.3 + Doctrine + Symfony performance — recognize the 4.x default trap eagerloading.forceeager: true (often counter-productive, switch to false + targeted join fetches), use EXTRALAZY for large collections, project DTOs in DQL (NEW App\\Dto\\PostListItem(...)) to avoid hydrating full entities for list…
doctrine-batch-processing
Process large-volume Doctrine datasets (million-row imports, mass updates, ETL) without memory blowup. Use toIterable() + EntityManager::clear() per batch, partial hydration with DQL projection (NEW App\Dto\X(...)), HINTREADONLY when entities aren't mutated, MEMORYPEAKUSAGE tracking. Trigger on "iterate over all…
doctrine-fetch-modes
Tune Doctrine fetch modes to eliminate N+1 and over-hydration — LAZY (default), EXTRALAZY for huge collections (count(), contains() without load), EAGER per-property only with justification, partial hydration with addSelect(), IndexBy for O(1) lookups, HINTREADONLY. Covers the API Platform 4.x eagerloading.forceeager…
doctrine-transactions
Handle Doctrine transactions correctly — EntityManager::wrapInTransaction() for atomic multi-entity writes, doctrinetransaction Messenger middleware for command-bus atomicity, Doctrine\ORM\OptimisticLockException handling with #[Version] column, isolation levels, flush strategies (per-request vs explicit). Trigger…
api-integration-architect
Design, implement, debug, and optimize API integrations with expert-level patterns for REST, GraphQL, webhooks, and authentication flows.