validate-flutter

validate-flutter is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 0 tokens per session (2,250 once invoked), scanned A, original, MIT.

A command that checks Flutter code for quality, security, performance, and compliance issues. Compliance means meeting required rules or standards.

In plain words
What is it for?
Use it to validate a Flutter project containing pubspec.yaml, choose a preset, generate terminal, HTML, JSON, or Markdown results, and optionally apply automatic fixes.
Why use it?
It gives the user selectable strictness, report formats, and focus areas, so validation can match the project's needs and produce actionable results.

Command for Claude Code

Part of the prprompts-flutter-generator plugin — 25 commands, 4 hooks shipped together

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.

agentmods
npx agentmods add commands/kandil7/prprompts-flutter-generator/validate-flutter
Clone the repo
git clone --depth 1 https://github.com/Kandil7/prprompts-flutter-generator

Made for: Claude Code.

Or install prprompts-flutter-generator, the plugin that ships this one along with the rest of its 25 commands, 4 hooks.

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 validate-flutter

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/validate-flutter.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/validate-flutter)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/validate-flutter"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/validate-flutter.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.02250
Opus 5 $0.00000 $0.01125
Sonnet 5 $0.00000 $0.00450
Haiku 4.5 $0.00000 $0.00225

Measured 4d ago against content hash 7a9cd3ca2fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate-flutter 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.

.claude/commands/refactoring/validate-flutter.md · 365 lines

How it starts

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

Validate Flutter Code

You are validating Flutter code quality, security, performance, and compliance using the PRPROMPTS validation system.

Overview

This command runs comprehensive validation checks on Flutter code and generates detailed reports with actionable recommendations.

Steps

1. Gather Information

Ask the user:

  1. Flutter project path: Where is the Flutter project?

    • Example: ./flutter-app, ., ./mobile
    • Validate that pubspec.yaml exists
  2. Validation strictness: What level of strictness?

    • Strict: High standards (min score 85/100)
    • Standard: Balanced (min score 70/100) - recommended
    • Lenient: Permissive (min score 50/100)
    • Security: Focus on security issues only
    • Performance: Focus on performance issues only
  3. Report format: How should results be displayed?

    • Terminal: Colorized output in terminal (default)
    • HTML: Interactive HTML report with charts
    • JSON: Machine-readable format
    • Markdown: Documentation-friendly format
  4. Auto-fix: Should fixable issues be corrected automatically?

2. Run Validation

Execute the validation command:

prprompts validate <path> --config <preset> --format <format>

Example:

prprompts validate ./flutter-app --config strict --format html --fix

3. Show Results

Display validation results with clear formatting:

🔍 Validation Results

┌──────────────────────────────────────┐
│        Score: 85/100                 │
│        Grade: B                      │
└──────────────────────────────────────┘

📊 Detailed Scores:
┌────────────────┬───────┬───────┐
│ Category       │ Score │ Grade │
├────────────────┼───────┼───────┤
│ Code Quality   │ 90/100│   A   │
│ Security       │ 100/100│  A   │
│ Performance    │ 75/100│   C   │
│ Accessibility  │ 65/100│   D   │
│ Architecture   │ 88/100│   B   │
└────────────────┴───────┴───────┘

⚠️  Issues Summary:
  • Errors: 2
  • Warnings: 5
  • Info: 8

Read the full file on GitHub · 365 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. 4d ago First seen · 365 lines · 0 tokens per session scan A 7a9cd3ca2fa9

Subscribe to this mod's changes

validate-flutter is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,250 tokens. 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.