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.
npx skills add zakariaf/Flutter-Skills --skill custom-canvas-and-gesturesgit clone --depth 1 https://github.com/zakariaf/Flutter-SkillsWrote 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/zakariaf/flutter-skills/custom-canvas-and-gestures)<a href="https://agentmods.dev/skills/zakariaf/flutter-skills/custom-canvas-and-gestures"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/custom-canvas-and-gestures/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.
<a href="https://agentmods.dev/skills/zakariaf/flutter-skills/custom-canvas-and-gestures"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/custom-canvas-and-gestures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00207 | $0.05110 |
| Opus 5.5 | $0.00083 | $0.02044 |
| Sonnet 5.5 | $0.00041 | $0.01022 |
| Haiku 4.5 | $0.00021 | $0.00511 |
Grade A, and why
custom-canvas-and-gestures 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 2mo 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 — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Custom Canvas & Gestures
Hand-painted surfaces (CustomPainter/Canvas) own every pixel, so they look byte-identical across platforms — but only if the painter stays dumb, the coordinate math is shared, and gestures translate rather than decide. This skill is the contract for that layer: how it splits, how pixels and pointers agree, and how a screen reader hears a canvas.
Read the reference for the task at hand:
references/painter-and-scene.md— the View/Painter/Scene split, the shared transform, hit-testing by geometry class, zero-allocationpaint(), the two-path repaint pitfall.references/gestures-and-semantics.md— gesture-as-translator, arena arbitration, clamp-not-collision drags, custom-canvas Semantics, action/gesture parity.references/text-and-shapes.md— measuredTextPainterfitting, optical centring,RoundedSuperellipseBorder, physical-pixel hairlines, concentric radii, painter-over-image-asset.
Run scripts/check_painter_hygiene.sh and scripts/analyze.sh before a PR.
Non-negotiable rules
-
A canvas surface is three collaborators — a View, a Painter, and an immutable Scene — never one god-widget. The View watches the ViewModel, builds an immutable
Scenevalue type holding everything the painter needs and nothing more, and hands it toCustomPaint. ThePainter extends CustomPainteris dumb: noNotifier, noBuildContext, noDateTime, no domain rules — it draws the Scene and never decides state. A dumb painter is testable and re-skinnable. -
shouldRepaintis one value compare —old.scene != scene— and nothing else. BecauseScenehas value equality, this is both correct and cheap.=> truerepaints every frame; a wrongfalsefreezes the surface — both fail silently. Config-driven repaints go throughshouldRepaint; per-frame animation goes through therepaint:Listenable. The two paths must never double-repaint. -
Exactly one affine transform maps logical space ↔ canvas pixels, read by BOTH the painter and the hit-tester. Build it once per layout from the incoming
Size; exposetoCanvas/toLogicalas exact inverses. The single most corrosive bug is a painter and hit-tester that disagree by a few pixels; a shared, tested transform forecloses it. The hit-tester never re-derives scale fromsize— it callstransform.toLogical.
What ships with it
8 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.
- examples/gesture_translator.dart 4.4 KB
- examples/scene_painter.dart 7.8 KB
- examples/text_fitter.dart 4.4 KB
- references/gestures-and-semantics.md 5.5 KB
- references/painter-and-scene.md 7.1 KB
- references/text-and-shapes.md 5.3 KB
- scripts/analyze.sh 688 B runs code
- scripts/check_painter_hygiene.sh 4.1 KB runs code
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.
- 2mo ago First seen · 270 lines · 207 tokens per session scan A 36de200b1426
custom-canvas-and-gestures is a skill published in the GitHub repository zakariaf/Flutter-Skills (66 stars, last pushed 1mo ago), licensed MIT. It adds 207 tokens to every session and 5,110 once invoked, about $0.0008 per session on Opus 5.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.
custom-canvas-and-gestures compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| custom-canvas-and-gestureszakariaf/Flutter-Skills | Skill | 66 | 1mo ago | MIT | A | 207 | Claude Code |
| android-edge-to-edgeHoangNguyen0403/agent-skills-standard | Skill | 584 | yesterday | MIT | A | 52 | Claude Code, Codex |
| common-mobile-animationHoangNguyen0403/agent-skills-standard | Skill | 584 | yesterday | MIT | A | 52 | Claude Code, Codex |
| flutter-design-systemHoangNguyen0403/agent-skills-standard | Skill | 584 | yesterday | MIT | A | 32 | Claude Code, Codex |
| accessibilityVeryGoodOpenSource/vgv-ai-flutter-plugin | Skill | 179 | 5d ago | MIT | A | 119 | Claude Code |
| common-mobile-ux-coreHoangNguyen0403/agent-skills-standard | Skill | 584 | yesterday | MIT | A | 45 | Claude Code, Codex |
| material-themingVeryGoodOpenSource/vgv-ai-flutter-plugin | Skill | 179 | 5d ago | MIT | A | 137 | Claude Code |