dart-meta

dart-meta is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 133 tokens per session (3,757 once invoked), scanned A, original, MIT.

A guide for using Dart's package:meta annotations and related API-contract tools. These annotations tell developers and static-analysis tools about intended rules for APIs, immutability, testing, and other code contracts.

In plain words
What is it for?
It supports reviewing and designing public and internal Dart or Flutter APIs, immutable models, subclass rules, lifecycle contracts, and analyzer checks.
Why use it?
It helps avoid decorative or misleading annotations and choose stronger guarantees from the Dart language or architecture when available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It supports reviewing and designing public and internal Dart or Flutter APIs, immutable models, subclass rules, lifecycle contracts, and analyzer checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/dart-meta
Install

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.

Any agent
npx skills add ariaramin/flutter-skills --skill dart-meta
Clone the repo
git clone --depth 1 https://github.com/ariaramin/flutter-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for dart-meta

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaramin/flutter-skills/dart-meta/github.svg)](https://agentmods.dev/skills/ariaramin/flutter-skills/dart-meta)
Your own site
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/dart-meta"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/dart-meta/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.

agentmods 80×15 button for dart-meta

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/dart-meta"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/dart-meta.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.03757
Opus 5.5 $0.00053 $0.01503
Sonnet 5.5 $0.00027 $0.00751
Haiku 4.5 $0.00013 $0.00376

Measured 1mo ago against content hash 0ed29e145e2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dart-meta 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 1mo 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.

skills/dart-meta/SKILL.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dart package:meta

Use package:meta as an API-contract and static-analysis tool, not as annotation decoration and not as a general runtime optimization mechanism.

Operating hierarchy

When expressing a contract, prefer the strongest accurate mechanism in this order:

Dart language guarantee
        ↓
Architecture / real privacy or package boundary
        ↓
Analyzer-enforced metadata contract
        ↓
Lint-enforced convention
        ↓
Documentation-only intent

Default rule:

If Dart can express the invariant directly, use Dart. If architecture/privacy can express it more strongly, use architecture/privacy. Use meta when analyzer/tooling can catch a realistic misuse that the stronger layers cannot express cleanly.

Specialist exceptions exist: package:meta/dart2js.dart compiler hints and RecordUse have compiler/build-tooling effects. Do not generalize those effects to ordinary meta.dart annotations.

Non-negotiable rules

  1. Prefer modern Dart language features over historical metadata when semantics match.
  2. Use an annotation only when it communicates a real contract and catches or documents a plausible misuse.
  3. Do not add metadata for cosmetic consistency or “more explicit” code when it provides no meaningful contract.
  4. Do not claim ordinary meta.dart annotations improve Flutter rebuild speed, CPU execution, AOT, tree shaking, startup, memory, database/network performance, or binary size.
  5. Treat @immutable as a correctness/analyzer contract, not a Flutter optimization switch.
  6. Distinguish final-field compliance from semantic/deep immutability; protect collection ownership when observable mutation would violate the value contract.
  7. Prefer _private for same-library privacy.
  8. Prefer package structure (lib/src, curated exports) before relying on @internal as the sole package boundary.
  9. Treat @protected as a supported subclass-extension contract, not Java-style access control.
  10. Treat @internal as API governance, not security or authorization.
  11. Use @visibleForTesting sparingly; test public behavior or extract a collaborator first when that creates cleaner design.
  12. Use @mustCallSuper only when the superclass implementation preserves a real invariant/resource/lifecycle obligation.
  13. Use @mustBeOverridden only when retaining a concrete base implementation is intentional and every concrete subclass must still make an explicit override decision.
  14. Use @nonVirtual only when the class remains intentionally extensible but one concrete member must not be overridden.
  15. Use @useResult only when discarding the value is likely a programmer bug; avoid result-annotation noise.
  16. Use @awaitNotRequired only when the returned Future is genuinely safe to ignore under the documented contract; never use it merely to silence async lints.
  17. Use @experimental for genuinely unstable public APIs whose consumers consciously accept compatibility risk; otherwise keep the API internal.
  18. Give deprecations actionable migration guidance and do not promise removal dates/versions without actual package policy.
  19. Treat metadata changes in published packages as API-design changes that can affect supported use even when method signatures stay the same.
  20. Avoid deprecated legacy meta APIs in new code except when demonstrating or performing migration.
  21. Do not suppress meta-related analyzer diagnostics broadly just to make analysis green; first determine whether the caller, annotation, or architecture is wrong.
  22. Do not copy Flutter-framework annotation density into ordinary application code without framework-like extension requirements.
  23. Verify the annotation exists in the project's resolved meta version and is legal on the intended target.
  24. Keep meta as a direct dependency when production code under lib/ imports it; do not rely on a transitive dependency.
  25. Ordinary meta use does not require code generation or build_runner.

Read the full file on GitHub · 335 lines

Changes

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.

  1. 1mo ago First seen · 335 lines · 133 tokens per session scan A 0ed29e145e2d

Subscribe to this mod's changes

dart-meta is a skill published in the GitHub repository ariaramin/flutter-skills (11 stars, last pushed 23d ago), licensed MIT. It adds 133 tokens to every session and 3,757 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-10-11.

Related

dart-meta compared with skills from other repositories

dart-meta next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart-metaariaramin/flutter-skillsSkill1123d agoMITA133Claude Code, Codex
update-v8-versionopeninterpreter/openinterpreterSkill69kyesterdayApache-2.0A86Codex
rust-checkHmbown/CodeWhaleSkill41kyesterdayMITA15Claude Code, Codex
omh-rustrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
use-modern-goJetBrains/go-modern-guidelinesSkill4.0k1mo agoApache-2.0A32Claude Code
modern-gosmallnest/pigoSkill50512d agoMITA102Claude Code, Codex
cuga-contributor-workflowscuga-project/cuga-agentSkill1.2ktodayApache-2.0A97Claude Code, Codex