What problem does it solve?
Flet example code often lives as loose flat .py files that cannot be indexed by the Gallery or MCP tooling. This Skill standardizes those examples into runnable, self-contained projects with consistent metadata, mobile-safe layouts, and updated documentation references.
Core Features & Use Cases
- Project-per-example conversion: Moves flat foo.py files into foo/main.py folders and generates pyproject.toml with Gallery/MCP metadata including categories, controls, layout patterns, and complexity.
- Code modernization: Wraps content in ft.SafeArea for mobile safety, migrates custom controls to @ft.control style, removes deprecated use_material3 usage, and enforces the ft.run(main) entrypoint.
- Reference and validation updates: Rewrites docs includes and test imports to the new main.py paths, then validates with compileall and ruff.
- Use Case: You have an examples/controls/chip folder mixing flat files and partial conversions. Ask the Skill to normalize it, and every example becomes a runnable project with correct metadata, updated docs, and passing lint checks.
Quick Start
Convert the examples in examples/controls/chip to the project-per-example format with pyproject.toml metadata and update all doc references.