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.00946 |
| Opus 5.5 | $0.00011 | $0.00378 |
| Sonnet 5.5 | $0.00006 | $0.00189 |
| Haiku 4.5 | $0.00003 | $0.00095 |
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 11d 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 — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What is this?
Use this skill when adding a CRUD API resource or extending an existing resource's input, output, or behavior.
Follow the shared skill guidance, including repository instructions and AI rules.
Table of Contents ᐞ
Workflow ᐞ
- Inspect 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 add-doctrine-entity for 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). Follow add-api-dto-mapping for the detailed DTO, validation, mapping, and argument-resolution workflow. 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. Follow add-doctrine-query for custom queries, filtering, search, sorting, pagination, and database tests. - 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. - Exercise the changed actions through HTTP. Assert successful response status, shape, and field exposure, plus validation failures and permitted/denied callers where affected. For writes, verify persisted state and create/update/patch differences rather than only a successful status. Update fixtures only when the tests need the new data.
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.
- 11d ago Changed · -1 lines 9296ceaf4b20
- 16d ago Changed · -2 lines a424aaac8903
- 17d ago Changed · +2 lines b425b5037f84
- 1mo ago Changed · +7 lines d7658d42da3a
- 1mo ago Changed · +20 lines c6b336a5ab78
- 1mo ago Changed · +3 lines ac41195641fe
- 1mo ago 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 (286 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 946 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.
add-rest-resource compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-rest-resourcetarlepp/symfony-flex-backend | Skill | 286 | yesterday | MIT | A | 28 | Claude Code, Codex |
| horse-database-poolingHashLoad/horse | Skill | 1.4k | 23d ago | MIT | A | 30 | Claude Code, Codex |
| flapi-restDataZooDE/flapi | Skill | 75 | 6d ago | none | A | 116 | Claude Code |
| flapi-setupDataZooDE/flapi | Skill | 75 | 6d ago | none | A | 133 | Claude Code |
| flapi-cache-designDataZooDE/flapi | Skill | 75 | 6d ago | none | B | 150 | Claude Code |
| api-platform-performancegerard-labs/superpowers-api-platform | Skill | 2 | 6mo ago | MIT | A | 0 | Claude Code |
| doctrine-fetch-modesgerard-labs/superpowers-api-platform | Skill | 2 | 6mo ago | MIT | A | 130 | Claude Code |