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.svg" alt="Measured on agentmods" 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.00018 | $0.04114 |
| Opus 5 | $0.00009 | $0.02057 |
| Sonnet 5 | $0.00004 | $0.00823 |
| Haiku 4.5 | $0.00002 | $0.00411 |
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 8d 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 — 404 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:
- Four layers — Data, Repository, Business Logic, Presentation — every feature spans exactly these four layers
- 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
- 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 accept data layer dependencies via constructor injection — never instantiate clients internally
- App bootstrap wires all layers —
main_<flavor>.dartcreates clients and repositories, provides them viaRepositoryProvider
Architecture Overview
| Layer | Responsibility | Location | Depends On | Example |
|---|---|---|---|---|
| Data | External communication — API calls, local storage, platform plugins | packages/<name>_api_client/ |
External packages only | user_api_client, local_storage_client |
| Repository | Data orchestration — combines data sources, transforms models, caches | packages/<name>_repository/ |
Data layer packages | user_repository, weather_repository |
| Business Logic | State management — processes user actions, emits state changes | lib/<feature>/bloc/ or lib/<feature>/cubit/ |
Repository layer | LoginBloc, ProfileCubit |
| Presentation | UI — widgets, pages, views, layout | lib/<feature>/view/ |
Business Logic layer | LoginPage, ProfileView |
What ships with it
5 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.
- 8d 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 (160 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 4,114 once invoked, about $0.0001 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-30.
Other skills, from other repositories
Flutter Testing Patterns
Flutter app testing with widget tests, integration tests, golden tests, Mockito, bloc testing, and Flutter Driver for end-to-end scenarios.
fl-route-config
Configures routes with the IRoute / CustomRouter abstractions in core and exposes navigation via a BuildContext coordinator.
fl-bloc-pattern
Implements BLoC state management using CoreBlocBase, an abstract State hierarchy, and a freezed StateData.
fl-bus-event
Handles cross-feature BusEvent communication with EventBusManager in the Flutter base template.
fl-module-scaffold
Scaffolds a new feature module under apps/main/lib/presentation/modules using the bundled module generator.
fl-reviewer
Reviews UI-layer changes — screens, blocs, widgets, routes — against the template's StateBase + CoreBlocBase + fltheme conventions.