Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/VeryGoodOpenSource/vgv-ai-flutter-pluginnpx agentmods add skills/verygoodopensource/vgv-ai-flutter-plugin/layered-architectureWrote 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/verygoodopensource/vgv-ai-flutter-plugin/layered-architecture)<a href="https://agentmods.dev/skills/verygoodopensource/vgv-ai-flutter-plugin/layered-architecture"><img src="https://agentmods.dev/badge/skills/verygoodopensource/vgv-ai-flutter-plugin/layered-architecture/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/verygoodopensource/vgv-ai-flutter-plugin/layered-architecture"><img src="https://agentmods.dev/badge/skills/verygoodopensource/vgv-ai-flutter-plugin/layered-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00177 | $0.03259 |
| Opus 5.5 | $0.00071 | $0.01304 |
| Sonnet 5.5 | $0.00035 | $0.00652 |
| Haiku 4.5 | $0.00018 | $0.00326 |
Grade A, and why
layered-architecture 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 4d 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 — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Layered Architecture
Layered monorepo architecture for Flutter apps — four layers organized as independent Dart packages with strict unidirectional dependencies.
Core Standards
Apply these standards to all layered architecture work:
- Read the matching VGE Standards file before writing code — every task listed under VGE Standards below has a file you MUST open with the Read tool first; it holds rules these bullets do not repeat
- Four layers — Data, Repository, Business Logic, Presentation — a feature spans all four whenever its repository reads an external source
- Unidirectional dependencies — Presentation → Business Logic → Repository → Data — never skip or invert a layer
- Data and Repository layers live in
packages/— each is an independent Dart package with its ownpubspec.yaml - Business Logic and Presentation live in
lib/— organized by feature within the app - Data layer packages contain zero domain/business logic — they must be reusable in unrelated projects
- No inter-repository dependencies — repositories never import other repositories; combine data from several repositories in the Bloc
- No Flutter SDK in data or repository packages — scaffold with the
very_good_cliMCP servercreate dart_packagetool - One repository per domain —
user_repository,weather_repository,auth_repository - Path dependencies for local packages — never
git:or pub version references for packages in the same repo - Barrel exports at every package boundary —
src/is never imported directly by consumers - Repositories take every external source through the constructor — a data client or an SDK object such as
FirebaseAuth.instance, built in bootstrap and passed in, never constructed or defaulted inside the repository - App bootstrap wires all layers —
main_<flavor>.dartcreates clients and repositories, provides them viaRepositoryProvider - Only the app's entrypoints and bootstrap import a data package — blocs, widgets, and app tests reach data through a repository
- Dart 3.13 primary constructors — on a Dart 3.13+ baseline, declare model and widget fields as primary-constructor declaring parameters (
class const User(final String id, final String name) extends Equatable) rather thanthis.field. A private field takes a private named parameter (required final UserApiClient _userApiClient, passed asuserApiClient:), never an initializer list that only copies the parameter. A class-body constructor is namednew. Keep the classic form only below 3.13
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago Changed · -6 lines cbd78697baa9
- 24d ago Changed · -82 lines f932f54baad8
- 1mo ago Changed · -23 lines · -35 tokens per session 0376d7dbd3c1
- 1mo ago Changed · +15 lines b273be15f9a6
- 1mo ago Changed · -6 lines a6b6c81184c0
- 2mo ago Changed · -40 lines 80625a56c0a0
- 2mo ago Changed · +5 lines · +122 tokens per session be919d989bd2
- 2mo ago Changed · +7 lines · +72 tokens per session f94fa915c6c5
- 3mo ago First seen · 404 lines · 18 tokens per session scan A 636a5d54f597
layered-architecture is a skill published in the GitHub repository VeryGoodOpenSource/vgv-ai-flutter-plugin (182 stars, last pushed 4d ago), licensed MIT. It adds 177 tokens to every session and 3,259 once invoked, about $0.0007 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-30.
layered-architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| layered-architectureVeryGoodOpenSource/vgv-ai-flutter-plugin | Skill | 182 | 4d ago | MIT | A | 177 | Claude Code |
| Flutter Testing PatternsPramodDutta/qaskills | Skill | 252 | 27d ago | MIT | A | 31 | Claude Code, Codex |
| fl-route-configphanbaohuy96/flutter_base_structure | Skill | 10 | today | none | A | 26 | Claude Code, Codex |
| fl-bus-eventphanbaohuy96/flutter_base_structure | Skill | 10 | today | none | A | 20 | Claude Code, Codex |
| fl-module-scaffoldphanbaohuy96/flutter_base_structure | Skill | 10 | today | none | A | 24 | Claude Code, Codex |
| fl-bloc-patternphanbaohuy96/flutter_base_structure | Skill | 10 | today | none | A | 28 | Claude Code, Codex |
| fl-reviewerphanbaohuy96/flutter_base_structure | Skill | 10 | today | none | A | 31 | Claude Code, Codex |