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 Poorgramer-Zack/dart-expert-skills --skill openapi-to-dartgit clone --depth 1 https://github.com/Poorgramer-Zack/dart-expert-skillsWrote 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/poorgramer-zack/dart-expert-skills/openapi-to-dart)<a href="https://agentmods.dev/skills/poorgramer-zack/dart-expert-skills/openapi-to-dart"><img src="https://agentmods.dev/badge/skills/poorgramer-zack/dart-expert-skills/openapi-to-dart/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/poorgramer-zack/dart-expert-skills/openapi-to-dart"><img src="https://agentmods.dev/badge/skills/poorgramer-zack/dart-expert-skills/openapi-to-dart.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.00134 | $0.02138 |
| Opus 5 | $0.00067 | $0.01069 |
| Sonnet 5 | $0.00027 | $0.00428 |
| Haiku 4.5 | $0.00013 | $0.00214 |
Grade A, and why
implementing-openapi-in-dart 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 12d 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 — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implementing OpenAPI 3.0 in Dart
Given an OpenAPI 3.0 spec, implement a type-safe Dart API layer with:
- Freezed (or Equatable) for models
- Dio for HTTP with interceptors and error handling
- json_serializable for JSON serialisation
Process
- Read the OpenAPI spec — parse
components/schemasfor models,pathsfor endpoints. - Map schemas → Dart models (Freezed or Equatable — see Model Strategy).
- Map paths → Dio service methods.
- Add a repository layer that wraps the service.
- Wire error handling via
DioException→ domainApiError.
Dependencies
dependencies:
dio: ^5.9.2
freezed_annotation: ^3.1.0 # if using Freezed
json_annotation: ^4.11.0
equatable: ^2.0.5 # if using Equatable
dev_dependencies:
build_runner: ^2.14.1
freezed: ^3.2.5 # if using Freezed
json_serializable: ^6.13.1
Directory Structure
lib/
└── data/
├── network/
│ ├── dio_client.dart # Dio instance + interceptors
│ ├── api_error.dart # global error model
│ └── services/
│ └── product_service.dart # one file per resource tag
└── models/
├── product.dart
└── ...
Dio Client Setup
import 'package:dio/dio.dart';
Dio createDioClient({required String baseUrl, String? accessToken}) {
final dio = Dio(BaseOptions(
baseUrl: baseUrl,
connectTimeout: const Duration(seconds: 10),
receiveTimeout: const Duration(seconds: 10),
headers: {'Content-Type': 'application/json'},
));
dio.interceptors.add(InterceptorsWrapper(
onRequest: (options, handler) {
if (accessToken != null) {
options.headers['Authorization'] = 'Bearer $accessToken';
}
handler.next(options);
},
onError: (error, handler) {
// Convert DioException to domain ApiError before propagating
handler.next(error);
},
));
return dio;
}
Model Strategy
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.
- 12d ago First seen · 305 lines · 134 tokens per session scan A 8f88a6de81a9
implementing-openapi-in-dart is a skill published in the GitHub repository Poorgramer-Zack/dart-expert-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 134 tokens to every session and 2,138 once invoked, about $0.0007 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-31.
Other skills, from other repositories
at_client_skills-sdk
Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…
signals-dart
Advanced reactive state primitives, collections, mixins, and utilities of signalscore.
signals-migration-6-to-7
Detailed guidelines, patterns, and rules for migrating codebases from signals.dart version 6.x to version 7.x.
firebase-auth
Use when setting up auth, managing auth state, implementing email/password or social sign-in, handling auth errors, or managing users.
dart-3-updates
Use when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code.
effective-dart
Use when writing Dart code, reviewing for style, refactoring naming, adding doc comments, structuring imports, or enforcing type annotations.