flet-review

flet-review is a command for Claude Code from brunobrown/claude-flet-plugin. It costs 14 tokens per session (1,951 once invoked), scanned A, original, MIT.

A command for reviewing Flet code, where Flet is a Python framework for building user interfaces. It checks whether the project is an app or extension and applies the matching review rules.

In plain words
What is it for?
Use it to review Flet applications and extensions for rendering, entry-point, state, component, and extension-code issues.
Why use it?
It helps find incorrect APIs, state-management mistakes, and other Flet-specific patterns that may cause bugs or poor maintainability.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the flet plugin — 6 skills, 3 commands, 2 agents shipped together

Good fit Use it to review Flet applications and extensions for rendering, entry-point, state, component, and extension-code issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/brunobrown/claude-flet-plugin/flet-review
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.

Clone the repo
git clone --depth 1 https://github.com/brunobrown/claude-flet-plugin

Made for: Claude Code.

Or install flet, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 agents.

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 flet-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/brunobrown/claude-flet-plugin/flet-review/github.svg)](https://agentmods.dev/commands/brunobrown/claude-flet-plugin/flet-review)
Your own site
<a href="https://agentmods.dev/commands/brunobrown/claude-flet-plugin/flet-review"><img src="https://agentmods.dev/badge/commands/brunobrown/claude-flet-plugin/flet-review/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 flet-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/brunobrown/claude-flet-plugin/flet-review"><img src="https://agentmods.dev/badge/commands/brunobrown/claude-flet-plugin/flet-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,951 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.00014 $0.01951
Opus 5 $0.00007 $0.00975
Sonnet 5 $0.00003 $0.00390
Haiku 4.5 $0.00001 $0.00195

Measured 10d ago against content hash 57dd6886b27d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

flet-review 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 10d 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.

commands/flet-review.md · 150 lines

How it starts

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

/flet-review — Review Flet Code

You are performing a comprehensive code review of Flet code. First, determine whether the code is a Flet app or a Flet extension, then apply the appropriate checklist.


Step 1: Identify Code Type

Scan the codebase to determine:

  • App: Contains ft.run(main), @ft.component, page.render_views()
  • Extension: Contains @ft.control("Name"), ft.Service or ft.LayoutControl
  • Both: App that uses a custom extension

Step 2: App Checklist

If reviewing a Flet app, check all of these:

Entry Point & Rendering

  • Uses ft.run(main) — NOT ft.app()
  • Uses page.render_views() or page.render() — NOT page.add()
  • Does NOT call page.update() manually (declarative mode handles this)
  • page.render(Component) passes reference, NOT page.render(Component())

State Management

  • @ft.observable comes BEFORE @dataclass (order matters)
  • ft.use_state() used for local form fields (not @ft.observable)
  • Observable lists use .append() / .clear() to trigger re-renders
  • State created outside components in main() when handlers need access
  • No direct mutation of observable list elements (items[0] = x)

Hooks

  • All hooks called inside @ft.component only (never in regular functions)
  • Hooks NOT inside conditionals or loops (fixed order required)
  • use_effect cleanup uses cleanup= parameter (NOT return value)
  • use_effect dependencies array is correct ([] for mount-only)
  • use_ref used for mutable refs that shouldn't trigger re-renders

Components

  • All components use @ft.component decorator
  • Context accessed via ft.use_context(AppCtx) (not passing page as prop)
  • Factory functions used in loops to avoid closure traps
  • Async handlers use try/except for error handling

Navigation

  • view_ref[0].show_drawer() used (NOT page.show_drawer())
  • PAGE_BUILDERS dict maps page IDs to component functions
  • Router clears page.views before adding new views (imperative router pattern)
  • on_view_pop handler implemented for router-based navigation
  • 0.85.0+: New apps prefer ft.Router over hand-rolled on_route_change for nested routes/loaders
  • 0.85.0+: ft.Router(manage_views=True, ...) paired with page.render_views(App) (not page.render)
  • 0.85.0+: View(route=ft.use_view_path()) in view-stack mode (unique Navigator key per stack level)
  • 0.85.0+: use_route_outlet() only called inside layout-route components (routes with children)
  • 0.85.0+: No page.go(route) — use page.navigate(route) (sync) or await page.push_route(route) (async)
  • 0.85.0+: pop_views_until paired with on_views_pop_until (not on_view_pop)

Read the full file on GitHub · 150 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. 10d ago First seen · 150 lines · 14 tokens per session scan A 57dd6886b27d

Subscribe to this mod's changes

flet-review is a command published in the GitHub repository brunobrown/claude-flet-plugin (3 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 1,951 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-31.