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.02152 |
| Opus 5.5 | $0.00054 | $0.00861 |
| Sonnet 5.5 | $0.00027 | $0.00430 |
| Haiku 4.5 | $0.00013 | $0.00215 |
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 19d 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 — 298 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.11.1
freezed_annotation: ^3.1.0 # if using Freezed
json_annotation: ^4.12.0
equatable: ^3.0.0 # if using Equatable (3.0 removed EquatableMixin)
dev_dependencies:
build_runner: ^2.17.1
freezed: ^4.0.3 # if using Freezed (4.x conflicts with custom_lint/riverpod_lint)
json_serializable: ^6.15.2
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;
}
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.
- 19d ago Changed · -7 lines 8bbc0901ffa0
- 3mo 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 20d ago), licensed MIT. It adds 134 tokens to every session and 2,152 once invoked, about $0.0005 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.
implementing-openapi-in-dart compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| implementing-openapi-in-dartPoorgramer-Zack/dart-expert-skills | Skill | 7 | 20d ago | MIT | A | 134 | Claude Code, Codex |
| at_client_skills-sdkatsign-foundation/at_client_sdk | Skill | 1.4k | today | BSD-3-Clause | A | 220 | Claude Code |
| firebase-authevanca/flutter-ai-rules | Skill | 676 | 18d ago | MIT | A | 29 | Claude Code |
| flutter-mcp-toolkit-custom-toolsArenukvern/mcp_flutter | Skill | 401 | 4d ago | MIT | A | 81 | Claude Code |
| dart-3-updatesevanca/flutter-ai-rules | Skill | 676 | 18d ago | MIT | A | 42 | Claude Code |
| effective-dartevanca/flutter-ai-rules | Skill | 676 | 18d ago | MIT | A | 31 | Claude Code |
| signals-dartrodydavis/signals.dart | Skill | 825 | 24d ago | Apache-2.0 | A | 20 | Claude Code, Codex |