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 anoopsg/agent_rules --skill create-infrastructuregit clone --depth 1 https://github.com/anoopsg/agent_rulesWrote 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/anoopsg/agent_rules/create-infrastructure)<a href="https://agentmods.dev/skills/anoopsg/agent_rules/create-infrastructure"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/create-infrastructure/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/anoopsg/agent_rules/create-infrastructure"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/create-infrastructure.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.00057 | $0.01244 |
| Opus 5.5 | $0.00023 | $0.00498 |
| Sonnet 5.5 | $0.00011 | $0.00249 |
| Haiku 4.5 | $0.00006 | $0.00124 |
Grade A, and why
create-infrastructure 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 22d 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 — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Infrastructure Creation Skill
This skill defines the process for creating a feature's data layer,
covering models, repositories, and persistence. Backend calls go through
the shared ApiClient (see the add-api-endpoint skill). Shared low-level
clients live in lib/src/infrastructure/ (see the create-client skill).
1. Directory Structure
Each feature owns its data layer inside lib/src/features/. A flat
feature (e.g. settings) uses data/; a feature group with sub-features
(e.g. auth) uses _self/data/:
lib/src/features/my_domain/data/ # or my_domain/_self/data/ for a group
├── models/ # Domain Models, shaped for the app
│ └── user_profile.dart # Uses dart_mappable (no `_model` suffix)
├── my_repository.dart # Business logic interface
└── data.dart # Barrel file
Export data.dart from the feature barrel (e.g. my_domain.dart).
A feature has no services/, DTOs or mocks/. Chopper services, DTOs and
mock fixtures live in the API adapter under
lib/src/infrastructure/api/adapters/openapi/ and are added with the
add-api-endpoint skill. Small helpers the repository needs may sit next to
it (e.g. session_storage.dart in auth/_self/data/).
2. Data Modeling (dart_mappable)
Always use @MappableClass() for models to get built-in JSON conversion
and equality. Models must be immutable.
@MappableClass()
class const UserProfile({
required final String id,
required final String email,
}) with UserProfileMappable;
- Shape models for the app, not the wire. JSON keys and API shapes
belong to the adapter's DTOs, which map to your model with
toModel(). - Mappers register automatically.
lib/src/_bootstrap/mappers.dartinitializes every mapper of the package aftermelos run generate; never register them by hand.
3. Backend Calls (ApiClient)
The app has one ApiClient in lib/src/infrastructure/api/api_client.dart.
Each method is named after an operationId in contracts/openapi.json and
returns your feature model as a Result; the openapi adapter maps its DTOs
and errors to it. Repositories never touch Chopper, http, DTOs or mocks.
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.
- 22d ago Changed · -12 lines · -2 tokens per session 5684ad369a25
- 1mo ago Changed 46dd3e39dcaa
- 1mo ago Changed · +8 lines · +7 tokens per session d88b54bd404f
- 1mo ago Changed · -8 lines cc1707375289
- 3mo ago First seen · 158 lines · 52 tokens per session scan A baeab004203f
create-infrastructure is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 23d ago), licensed MIT. It adds 57 tokens to every session and 1,244 once invoked, about $0.0002 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-08-31.
create-infrastructure compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-infrastructureanoopsg/agent_rules | Skill | 2 | 23d ago | MIT | A | 57 | Claude Code, Codex |
| laravel-inertia-reactAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-best-practicesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 54 | Claude Code, Codex |
| laravel-queuesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 105 | Claude Code, Codex |
| api-design-patternsAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-mcpAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 51 | Claude Code, Codex |
| designing-data-intensive-applicationsciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 34 | Claude Code, Codex |