vgv-ai-flutter-plugin
AGENTS.md168 starsChanged 3 months agoMITView on GitHub
VGV AI Flutter Plugin provides best-practices skills for Flutter and Dart development. It is a documentation-only repository — there is no Dart/Flutter source code, no pubspec.yaml, and no tests. All value lives in the markdown skill files.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- animationsSkill
- blocSkill
- create-projectSkill
- dart-flutter-sdk-upgradeSkill
- green-gateSkill
- internationalizationSkill
- layered-architectureSkill
- license-complianceSkill
- material-themingSkill
- navigationSkill
- static-securitySkill
- testingSkill
- ui-packageSkill
- very-good-analysis-upgradeSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 3 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 128
Every SKILL.md follows this structure:
- Distinctive: line 152
Use fenced code blocks with language identifiers for all examples
- Very specific: line 160
Create skills/<skill_name>/SKILL.md following the format above, plus the Codex sidecar skills/<skill_name>/agents/openai.yaml …
- Very specific: line 162
Create evals/<skill_name>/<case_name>/ — one case directory per major workflow the skill covers, each with a routing grader, plus one …
- Very specific: line 167
Update keywords and the description (marketplace text) in .claude-plugin/plugin.json
- Very specific: line 168
Update the skills table in README.md (skill name must link to the SKILL.md file)
- Very specific: line 169
Add the skill's slash command (e.g., /<skill-name>) to the Usage list in README.md
- Very specific: line 170
Add any new domain terms to the words list in config/cspell.json
- Distinctive: line 171
Update the repository structure in AGENTS.md
- Very specific: line 180
Create agents/<agent_name>.md with YAML frontmatter:
- Very specific: line 189
Add an Agents table row in README.md (agent name links to the agents/<name>.md file)
- Distinctive: line 244
Run them by hand before opening a PR.
- Very specific: line 256
Use conventional commits: type(scope): description
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
VGV AI Flutter Plugin
Project Overview
VGV AI Flutter Plugin provides best-practices skills for Flutter and Dart development. It is a documentation-only repository — there is no Dart/Flutter source code, no pubspec.yaml, and no tests. All value lives in the markdown skill files.
Repository Structure
.mcp.json # MCP server configuration (Dart and Very Good CLI)
skills_lint.yaml # skills_lint rule severities, read by the CI Skills Lint job
.claude-plugin/
plugin.json # Plugin manifest (name, version, keywords)
agents/
flutter-reviewer.md # Read-only Flutter code reviewer subagent
docs/ # Gitignored, local only
plan/ # Planning and design documents
evals/ # `claude plugin eval` suite — all 15 skills, 100 cases
README.md # Case format, grader reference, how to add a case
_fixture/
fixture.sh # The only copy of the neutral Flutter skeleton; every case symlinks here
<skill>/ # One directory per skill, named for the skill it covers
NOTES.md # What each case discriminates and why it exists
<case-name>/ # One directory per case, named for the case
prompt.md # Frontmatter: run limits and tools. Body: the prompt
case.yaml # schema_version, name, and the scaffold hook
fixture.sh # Symlink to _fixture/fixture.sh
graders/
<name>.md # One grader per file; frontmatter is its type and options
results/ # Written by each run — gitignored
hooks/
hooks.json # Hook definitions (PreToolUse and PostToolUse)
scripts/
allow-readonly-git.sh # Restricts flutter-reviewer Bash to git diff/status
allow-readonly-git_test.sh # Tests for allow-readonly-git.sh
analyze.sh # Runs dart analyze on modified .dart files
block-cli-workarounds.sh # Prevents direct CLI bypass via Bash
block-cli-workarounds_test.sh # Tests for block-cli-workarounds.sh
check-vgv-cli.sh # Validates VGV CLI installed and >= 1.3.0
check-vgv-cli_test.sh # Tests for check-vgv-cli.sh
format.sh # Runs dart format on modified .dart files
vgv-cli-common.sh # Shared utilities for VGV CLI hook scripts
warn-missing-mcp.sh # Warns at session start if VGV CLI is missing/outdated
warn-missing-mcp_test.sh # Tests for warn-missing-mcp.sh
skills/ # every <skill>/ ships SKILL.md + agents/openai.yaml (Codex sidecar)
accessibility/SKILL.md
accessibility/references/
audit-templates.md
examples.md
platforms/android.md
platforms/ios.md
platforms/linux.md
platforms/macos.md
platforms/web.md
platforms/windows.md
testing.md
widget-mapping.md
animations/SKILL.md
animations/references/
explicit-animations.md
implicit-animations.md
looping-animations.md
page-transitions.md
staggered-animations.md
bloc/SKILL.md
bloc/references/
architecture.md
patterns.md
testing.md
widgets.md
create-project/SKILL.md
dart-flutter-sdk-upgrade/SKILL.md
dart-flutter-sdk-upgrade/references/
version-conflicts.md
green-gate/SKILL.md
green-gate/references/
coverage.md
internationalization/SKILL.md
internationalization/references/
backend.md
directionality.md
setup.md
layered-architecture/SKILL.md
layered-architecture/references/
data-flow.md
model-transformation.md
pubspec.md
testing.md
worked-example.md
license-compliance/SKILL.md
material-theming/SKILL.md
material-theming/references/
color-scheme.md
components.md
spacing.md
typography.md
navigation/SKILL.md
navigation/references/
parameters.md
redirects.md
testing.md
typed-routes.md
static-security/SKILL.md
static-security/references/
binary-protection.md
crypto.md
packages.md
supply-chain.md
testing/SKILL.md
testing/references/
animation-testing.md
configuration.md
coverage.md
golden-tests.md
matchers.md
mocktail.md
test-patterns.md
widget-tests.md
ui-package/SKILL.md
ui-package/reference.md
very-good-analysis-upgrade/SKILL.md
very-good-analysis-upgrade/references/
lint-fixes.mdSkill File Format
Every SKILL.md follows this structure:
- YAML frontmatter with the following fields:
name(required) — must match the skill's folder name exactly; lowercase letters, numbers, and hyphens only (e.g.,bloc)description(required) — when the skill should be triggeredallowed-tools(optional) — space-separated list of tools the skill may use (e.g.,Read Glob Grep)argument-hint(optional) — placeholder hint shown to the user (e.g.,"[file-or-directory]")model(optional) — model to use while the skill is active. The override applies for the rest of the current turn and is not saved to settings, so a user on Opus who triggers a skill pinned tosonnetstays on sonnet until their next prompt. Nine skills here set it. Note the eval consequence:create-projectpinshaiku, so in a two-arm run its with-plugin arm answers on a weaker model than the no-plugin arm, which understates its measured lift. Routing is decided before the switch, so a pin never explains a routing misseffort(optional) — reasoning effort while the skill is active (low/medium/high/xhigh/max), overriding the session level for that turn. Seven skills here set it
- H1 title — human-readable skill name
- Core Standards — enforced constraints, always first
- Content sections — architecture, code examples, workflows, anti-patterns
Every skill also ships a Codex sidecar at agents/openai.yaml beside its SKILL.md, holding the skill-picker metadata interface.display_name and interface.short_description. Every skill in this plugin is model-invoked (the model may auto-activate it), so no skill sets disable-model-invocation or a Codex policy block; a user-invoked-only skill would set both, kept in sync. See CONTRIBUTING.md → Cross-harness portability.
Writing Conventions
- Frame standards as clear directives — no soft language ("consider", "prefer")
- Use fenced code blocks with language identifiers for all examples
- Provide complete, copy-pasteable snippets, not fragments
- Reference packages by full name (e.g.,
package:mocktail) - Include anti-patterns alongside correct patterns when helpful
- Align pipe characters vertically in all markdown tables (enforced by markdownlint MD060)
Adding a New Skill
- Create
skills/<skill_name>/SKILL.mdfollowing the format above, plus the Codex sidecarskills/<skill_name>/agents/openai.yaml(interface.display_name+interface.short_description) - Create
evals/<skill_name>/<case_name>/— one case directory per major workflow the skill covers, each with a routing grader, plus one negative-control case. Routing graders carryweight: 3andarm: both; withoutarm: boththe runner drops them from the score in a two-arm run and a routing failure scores 1.00. Nothing has to be registered, and the fixture symlink is the only setup step. Seeevals/README.md - Update
keywordsand thedescription(marketplace text) in.claude-plugin/plugin.json - Update the skills table in
README.md(skill name must link to theSKILL.mdfile) - Add the skill's slash command (e.g.,
/<skill-name>) to the Usage list inREADME.md - Add any new domain terms to the
wordslist inconfig/cspell.json - Update the repository structure in
AGENTS.md
Adding a New Agent
Agents are subagents that Claude Code dispatches as isolated, specialized helpers (e.g., reviewers).
They live in agents/<name>.md at the plugin root and are auto-discovered — unlike skills, no
.claude-plugin/plugin.json change is required. An agents/<name>.md file registers as
vgv-ai-flutter-plugin:<name>.
- Create
agents/<agent_name>.mdwith YAML frontmatter:name(required) — must match the file name; lowercase letters, numbers, and hyphens onlydescription(required) — when Claude should dispatch the agenttools(optional) — comma-separated bare tool names. Thetoolsfield cannot scope Bash by command; for a read-only agent, omit write tools (Edit,Write,NotebookEdit) and restrict Bash with an agent-scoped PreToolUse hook (seeflutter-reviewer.md)skills(optional) — bare skill names to preload at startup (full skill content is injected)model(optional) —inheritto use the session modelhooks(optional) — agent-scoped hooks, e.g. a PreToolUseBashhook
- Add an Agents table row in
README.md(agent name links to theagents/<name>.mdfile) - Add any new domain terms to the
wordslist inconfig/cspell.json - Update the repository structure in
AGENTS.md
Maintaining Existing Skills, Hooks, and MCP Tools
Most documentation drift comes from changing existing assets without updating the docs that describe them. When you touch any of the following, update the matching documentation in the same change:
- Updating a skill's scope or description — update the matching row in the
README.mdskills table and theinterface.short_descriptionin the skill'sagents/openai.yaml, so all three stay in sync. Nothing checks them against each other.descriptionalso carries every trigger phrase and is capped at 1024 characters, whichskills_lintenforces as an error. Several are already within ten characters of it, so check the current length before adding a trigger phrase. Keep it to triggers and scope, leaving pure teaching material to the body. Do not cut a sentence just because the body repeats it — routing happens before the body loads — and re-run the skill's eval cases after any trim. - Changing what a skill teaches — apply the KEEP / DEMOTE / DELETE rubric in
CONTRIBUTING.md→ What Belongs in aSKILL.md. ASKILL.mdcarries VGV opinions; framework reference that Claude already knows belongs inreferences/or nowhere. Then run the skill's eval cases to confirm the new guidance actually lands in the model's output, and update any case that asserted the old behavior. A failing case after a deliberate change means the case needs updating; a failing case after a Claude Code or MCP server change means the skill does. - Restructuring a skill's reference files (
reference.md↔references/) — update the repository structure block inAGENTS.mdto match the new layout, and update every markdown link pointing at the moved file. CI catches a link that points at a file that no longer exists (check-relative-pathsinskills_lint.yaml), but it cannot tell you a link now points at the wrong file, so still read each one. - Adding or changing a hook in
hooks/hooks.json— update the Hooks section inREADME.md(and the## Hookssection inCLAUDE.mdif behavior changes). - Adding or changing an MCP tool — update the MCP Integration tools table
in
README.md, and check whether any skill'sallowed-toolsnames a tool that was renamed or removed. Nothing validates those names.
Evals
Evals ask whether Claude routes to a skill and follows it. evals/README.md is the
single source of truth for the case format, the grader reference, prerequisites,
and what makes a case worth having — read it before writing a case, and put new eval
documentation there rather than here.
claude plugin eval, cases under
evals/<skill>/<case>/. Run with claude plugin eval . --scaffold. Needs Claude Code
= 2.1.269 and uses the local session, so no API key. Read the two arm scores, not the total: the no-plugin arm is supposed to fail.
--scaffold is not optional. Every run starts in an empty workspace, and without the
flag the fixture script is skipped silently and cases fail for reasons unrelated to the
skill.
Run them by hand before opening a PR. They do not run on a pull request, because they
call real models; .github/workflows/evals.yaml runs them after a merge to main, scoped
by --tag to the changed skills, with-plugin arm only, and always non-blocking. A full
run is manual (workflow_dispatch) and is the expensive one.
Isolation is structural rather than configured: each run gets a throwaway home, workspace and configuration, and the eval directory is unreadable from inside a run. Nothing about the fixture or the tool grants can leak skill content into the no-plugin arm the way the previous harness could.
Commits
Use conventional commits: type(scope): description
Examples: feat: add bloc skill, chore: add logo to README
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

