/utopia-design:screenfrom Utopia Design
Build or update a Flutter screen from an outside design input using ONLY components from the utopia_ui component manifest (the merged manifest when the project registers custom components). Applies when: implementing or recreating an HTML mockup, a screenshot, a handoff bundle, a DESIGN.md, or the packaged HTML twin gallery; deciding which utopia_ui component a design element maps to; reporting an unmappable element as a gap instead of hand-rolling it. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover editing design/tokens.json (-> utopia-design:tokens); importing external design VALUES such as colors or spacing (-> utopia-design:import - VALUES onto tokens there, STRUCTURE onto components here); regenerating the theme or the HTML twin (-> utopia-design:sync); or state management, screen scaffolding, navigation (-> utopia-hooks). Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.
Ships in Utopia Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill turns an outside design input into Flutter screen code built exclusively from
the utopia_ui component manifest - the machine-readable API surface described in
protocol/SPEC.md section 3. It owns which manifest component a design element maps
to and how it is constructed (constructor, props, defaults). It does not own the
token document, regenerating generated surfaces, or app/state architecture - see the
frontmatter description above for the exact positive/negative boundary.
Where SPEC.md / VERSIONING.md live: the protocol documents ship inside the
utopia_ui package under protocol/ (hence the protocol/SPEC.md citations),
alongside the protocol/schemas/ the validators check against. Resolve the installed
copy the same way this skill resolves the manifest: read
.dart_tool/package_config.json for utopia_ui's rootUri (snippet in
utopia-design:tokens's
getting-started.md), then open
<root>/protocol/. If it does not resolve, treat every SPEC.md / VERSIONING.md
citation in this skill as background rationale and continue - never block on the
missing file.
The one boundary worth stating twice: this skill maps STRUCTURE (an element in a
mockup/screenshot -> a manifest component id -> a constructor call). utopia-design:import
maps VALUES (a color/spacing/typography value in an external source -> a
design/tokens.json path). A design handoff bundle usually needs both: run
utopia-design:import for its token values, this skill for its structure. Never use
this skill to "fix" a color or spacing value, and never use utopia-design:import to
decide which widget to build.
Before touching anything, confirm the project actually resolves utopia_ui:
pubspec.yaml declares utopia_ui: directly, or pubspec.lock resolves it
transitively. This mirrors the plugin's own SessionStart / PostToolUse hook gate and
the identical check the other three design skills run - the manifest this skill builds
against does not exist without the library present.
flutter pub add utopia_ui
flutter pub get
Only proceed with the rest of this skill once the project resolves the package.DESIGN.mdutopia_ui componentsutopia_ui component (and which constructor/props) a given design
element should usedesign/tokens.json -> use utopia-design:tokensutopia_cli scaffolding -> use utopia-hooks, deferred to entirely; this skill
never restates any of it| Priority | Reference | Impact | Description |
|---|---|---|---|
| 1 | component-mapping.md | CRITICAL | Resolving the manifest from the pub cache; the component entry shape (props, portable types, defaults); models/helpers; tokenBindings; a worked design-to-constructor-call example |
| 2 | gap-reporting.md | HIGH | Why gaps must stay visible (SPEC.md section 7); the fixed report format; the composition-first check; a fully worked GAP example; anti-patterns |
| 3 | design-inputs.md | MEDIUM | Reading each input type for structure - HTML mockup, screenshot, handoff bundle, DESIGN.md; the values-vs-structure boundary; the twin gallery as an input |
| 4 | twin-gallery.md | MEDIUM | The HTML twin's frozen bundle contract, components.html/gallery.html structure, CSS naming, the tier-1 specimen list, and what still needs the real shipped files |
utopia_ui resolves before building anything (the usage gate above).button) or, when the project registers
custom components, a namespaced project id (<package>:<kebab-name>, SPEC.md
3.3/3.8) - constructed per components[].constructors[].props: required props,
verbatim defaults, and portable types exactly as documented (SPEC.md 3.5). Props typed "model" or a list of
model resolve via models[] by modelName; helpers[] carries the exported
functions/hooks a screen may need (e.g. useUtopiaTableState, utopiaCardSliver).
Never invent a prop, never use a widget class absent from the manifest,
never build from memory of "typical" utopia_ui API shape - the manifest
matching the resolved package version is the only truth; drift is assumed (SPEC.md
3.7). See component-mapping.md..dart_tool/package_config.json (utopia_ui rootUri ->
manifest/utopia.manifest.json) - the identical resolution technique
utopia-design:tokens's
getting-started.md documents
for the token document; do not re-derive or duplicate that snippet here, just point
it at the manifest file instead of the token document. When the project has a merged
manifest (design/merged.manifest.json, SPEC.md 3.8), prefer IT as the mapping
target - it adds the project's own registered components; it is derived output:
regenerate it, never edit it. See component-mapping.md. Optionally run
dart run utopia_ui_tools:validate_manifest with zero arguments as a freshness
check (the packageVersion drift gate); its exact CLI contract and gates are
utopia-design:sync's
regeneration.md, not re-specified
here.utopia_ui, or ask the user); and
a component-spec seed (proposed namespaced id, needed props, states, token bindings)
so a scaffold decision can start immediately.
Never a hand-rolled widget styled to imitate one, never a raw Material/Cupertino
stand-in - except that a functionally-required element (the only way to cancel,
submit, or dismiss) may get a minimal declared, unstyled stand-in, as defined in
gap-reporting.md. Gaps appear both in the final response and
as a // TODO comment at the insertion point in the generated screen code.
Composition-first: before declaring a GAP, check whether the element decomposes
into existing manifest components - the manifest's composes hints point at exactly
this. A GAP is for genuinely missing capability, not for an element that just needs
assembling from parts that already exist. See gap-reporting.md.UtopiaTheme/context per the component's tokenBindings (each entry's
path) - never a
hardcoded literal for a value that has a token. The plugin's PostToolUse hook (Rule
B) already nudges exactly this on newly-edited Dart; this skill is the fix it points
at.Center/Expanded wrappers the design does not show. See
design-inputs.md.utopia_hooks), do not substitute
silently: implement with the plainest idiomatic Flutter as a DECLARED fallback, say so
in the response, and leave a code comment naming the intended architecture - an
undisclosed architecture fallback is the state-management version of an undeclared
stand-in.After building or updating a screen, verify:
id in manifest/utopia.manifest.json - the
resolved package's manifest, not a remembered one.model / list of model resolves through models[] by
modelName - not through an invented class.tokenBindings - no hardcoded literal where a token exists.// TODO comment (in the code) - never a hand-rolled lookalike or an UNDECLARED
Material/Cupertino stand-in.composes hints reviewed for
an existing-components answer first.dartType - wrapped
IList([...]) where the manifest says IList, a bare List literal only where it
says List.design/tokens.json; its
getting-started.md is the
resolution snippet this skill's manifest lookup reuses.validate_manifest contract this skill's freshness check reuses.Built on utopia_ui and the Utopia Design Protocol, by UtopiaSoftware.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub utopia-uss/utopia-flutter-skills --plugin utopia-design5 skills in this plugin
/componentTurn a reported component GAP (or any need for a custom component) into a LIVE manifest id: scaffold it from utopia_ui primitives, write its overlay YAML (design/overlay/<local-part>.yaml), regenerate the project + merged manifests (generate_manifest), validate, and hand back the namespaced id. Applies when: scaffolding a custom component, registering one in the project manifest, making something reusable, turning a utopia-design:screen gap report's component-spec seed into a live id. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover deciding whether something is a gap, or building screens (-> utopia-design:screen); editing design/tokens.json (-> utopia-design:tokens); regenerating the theme or the HTML twin (-> utopia-design:sync); widget-authoring and state conventions (-> utopia-hooks); or contributing it UPSTREAM into utopia_ui. Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.
/importBring an external design source into a utopia_ui project's design/tokens.json: a Figma DTCG export, a foreign tokens.css / Tailwind @theme, a Claude Design handoff bundle, or a DESIGN.md. Applies when: identifying the source type and parsing its values; mapping them onto the closed utopia token tree; showing a proposal and diff before any write, then applying via the tokens skill's edit loop; reporting unmapped external tokens or uncovered utopia slots as gaps; running a re-import 3-way diff against already-synced values. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover hand-editing design/tokens.json with no external source (-> utopia-design:tokens), regenerating the theme or the HTML twin (-> utopia-design:sync), building screens (-> utopia-design:screen), or a Figma write-API sync (out of scope; Figma only via DTCG export). Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.