html-to-flutter

html-to-flutter is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 189 tokens per session (3,599 once invoked), scanned A, original, MIT.

A coding guide for rebuilding HTML, CSS, JavaScript, or TypeScript interfaces as Flutter and Dart applications. It explains how web structure, styling, behavior, and responsive rules map to Flutter's widget and constraint-based layout system.

In plain words
What is it for?
Use it to port webpages or web apps, translate responsive layouts and design tokens, recreate interactions and state changes, map browser data access and routing, and adapt behavior for mobile, desktop, and web Flutter targets.
Why use it?
It helps preserve the original interface's meaning, behavior, accessibility, and visual intent instead of mechanically replacing web elements with widgets. It also reduces mistakes caused by treating the browser DOM and Flutter layout as the same system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to port webpages or web apps, translate responsive layouts and design tokens, recreate interactions and state changes, map browser data access and routing, and adapt behavior for mobile, desktop, and web Flutter targets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/html-to-flutter
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.

Any agent
npx skills add ariaramin/flutter-skills --skill html-to-flutter
Clone the repo
git clone --depth 1 https://github.com/ariaramin/flutter-skills

Made for: Claude Code, Codex.

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 html-to-flutter

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaramin/flutter-skills/html-to-flutter/github.svg)](https://agentmods.dev/skills/ariaramin/flutter-skills/html-to-flutter)
Your own site
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/html-to-flutter"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/html-to-flutter/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 html-to-flutter

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/html-to-flutter"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/html-to-flutter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,599 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.00189 $0.03599
Opus 5.5 $0.00076 $0.01440
Sonnet 5.5 $0.00038 $0.00720
Haiku 4.5 $0.00019 $0.00360

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

Security

Grade A, and why

html-to-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 6d 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.

skills/html-to-flutter/SKILL.md · 301 lines

How it starts

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

HTML/CSS/JavaScript → Flutter

Rebuild the source application according to Flutter's rendering, state, and platform models. Preserve product intent, behavior, semantics, and visual system; do not recreate the DOM in widgets.

Operating model

Treat the source as four overlapping systems:

  • HTML → semantic structure, information hierarchy, controls, content relationships.
  • CSS → layout intent, constraints, responsive behavior, design tokens, interaction states, typography, decoration, animation.
  • JavaScript/TypeScript → state transitions, business rules, data access, events, routing, persistence, async behavior, browser integrations.
  • Flutter/Dart → declarative widgets, constraint-driven layout, typed state/data models, explicit architecture, platform adaptation.

Remember the Flutter box-layout rule:

Constraints go down. Sizes go up. Parents set positions.

Model UI as UI = f(state), not as a mutable collection of elements.

Non-negotiable rules

  1. Translate intent, semantics, behavior, and constraints, not syntax.
  2. Analyze the source before writing Flutter code.
  3. Never assume div = Container or any universal tag-to-widget mapping.
  4. Rebuild architecture rather than reproducing the DOM/component hierarchy mechanically.
  5. Convert DOM/CSSOM mutation into explicit state changes and declarative composition.
  6. Preserve semantic intent: buttons stay buttons, links stay links, headings remain headings, labels remain associated with fields, and dialogs retain modal/focus behavior.
  7. Extract repeated colors, typography, spacing, radius, elevation, component variants, and relevant breakpoints into a Flutter design system before styling pages repeatedly.
  8. Keep network, repositories, persistence, and non-trivial business logic out of widget build() methods.
  9. Keep build() side-effect free. Create futures, subscriptions, controllers, timers, focus nodes, and animation controllers at appropriate ownership/lifecycle boundaries.
  10. Keep state as local as ownership permits and maintain a clear source of truth for shared state.
  11. Do not force a state-management package unless the project already uses one or the problem genuinely requires it.
  12. Distinguish responsive layout changes from adaptive platform/input behavior.
  13. Prefer LayoutBuilder for decisions based on a component's available parent constraints.
  14. Prefer narrow MediaQuery accessors for window/environment characteristics such as size, padding, text scaling, accessibility settings, and display features.
  15. Derive breakpoints from where the composition stops working well; do not rely only on mobile/tablet/desktop labels.
  16. Prefer semantic framework controls over decorated gesture surfaces when the source represents a standard control.
  17. Do not use Container as Flutter's default <div> equivalent. Use the narrowest widgets that express layout/decoration intent.
  18. Do not use Stack merely because the source used CSS positioning. Use it when overlap or shared-box anchoring is intrinsic.
  19. Do not copy CSS pixel dimensions mechanically. Preserve fixed dimensions only where the product requirement is genuinely fixed.
  20. Do not add scrolling merely to silence overflow. Fix the layout model and choose wrapping, truncation, recomposition, or scrolling according to source intent.
  21. Use lazy lists/grids/slivers for large or unbounded collections.
  22. Avoid unnecessary intrinsic measurement, clipping, opacity layers, large blurred shadows, and other expensive rendering constructs unless required.
  23. Use const where configuration is genuinely immutable, but do not treat it as a substitute for correct state boundaries.
  24. Do not claim rebuilds are inherently expensive. Distinguish build, layout, paint, compositing, and rasterization.
  25. Profile before performance optimization and measure in profile/release conditions on relevant targets.
  26. Rewrite ordinary application logic in Dart. Keep JavaScript only where a browser API or JS-only SDK makes interop the better boundary.
  27. For modern Dart web interop, prefer current dart:js_interop and package:web APIs; do not add deprecated legacy web/JS libraries to new code.
  28. Do not assume Flutter Web should replace document-centric, SEO-heavy websites. Decide product fit explicitly.
  29. Embed HTML/platform views only when preserving the existing implementation is more valuable than native Flutter reimplementation.
  30. Preserve text scaling, keyboard/focus behavior, semantics, and platform usability even when pixel fidelity is a goal.
  31. Make visual fidelity measurable against known viewports, states, fonts, and interaction modes.
  32. Verify current APIs against the project's installed Flutter/Dart SDK before finalizing production code.

Read the full file on GitHub · 301 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. 6d ago First seen · 301 lines · 189 tokens per session scan A f95d65d653a1

Subscribe to this mod's changes

html-to-flutter is a skill published in the GitHub repository ariaramin/flutter-skills (6 stars, last pushed 6d ago), licensed MIT. It adds 189 tokens to every session and 3,599 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-10-11.

Related

Other skills, from other repositories