/utopia-design:componentfrom Utopia Design
Turn 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.
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.
Every real project outgrows the utopia_ui primitive set - the canonical example is a
stock-market tile that composes library widgets, reads the theme, and also needs
project-specific values (gain/loss colors) the closed token tree has no slot for
(SPEC.md 3.8). This skill owns the one loop that turns such a
need into a live, namespaced component manifest id: scaffold in project code, write the
overlay YAML that opts the component into the project manifest, regenerate the project +
merged manifests, validate, and stop. It does not decide whether an element is a gap
(that's utopia-design:screen), does not touch tokens or the theme/twin, and does not
own widget-authoring or state conventions (utopia-hooks, deferred to entirely). See
the frontmatter description above for the exact positive/negative boundary.
SPEC.md 3.8 states the loop this skill implements almost verbatim: "a screen-building gap report names a missing component -> the component is scaffolded in the project (theme via context) -> an overlay YAML registers it -> project + merged manifests regenerate -> the design tool re-imports the merged manifest -> the id is live in every later development cycle." This skill is that loop, start to finish.
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 plugin resolves every packaged artifact: read
.dart_tool/package_config.json for utopia_ui's rootUri (the snippet lives 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.
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 every other design skill in this plugin runs - the manifest this
skill writes into does not mean anything 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.Second, separate prerequisite: regenerating and validating the project/merged manifests
(steps 4-5 of the loop below) needs utopia_ui_tools, not utopia_ui itself.
Confirm it resolves the same inspect-first way - pubspec.yaml (under
dev_dependencies) or pubspec.lock lists it - and install it first if not:
flutter pub add --dev utopia_ui_tools
This is the identical prerequisite utopia-design:tokens's
validation.md documents for
validate_tokens - do not assume the tools are available, install then run.
utopia-design:screen gap report's component-spec seed needs turning into a real,
namespaced component (the most common entry point)design/tokens.json -> utopia-design:tokensutopia_ui itself - that path is a
maintainer conversation, not this loop; this skill only ever produces a project
(namespaced) component| Priority | Reference | Impact | Description |
|---|---|---|---|
| 1 | scaffold-and-register.md | CRITICAL | The loop end-to-end, worked through the stock-market-tile example: seed -> scaffold -> overlay YAML -> regenerate -> validate -> screen usage; the single pinned CLI contract (Step 4's exact generate_manifest --project CLI) |
| 2 | overlay-and-manifests.md | HIGH | The overlay key reference (from the real overlay/*.yaml files); the three-manifest-document model and truth table; flavor markers; freshness gates; what validate_manifest enforces on the merged view |
utopia_ui resolves, and that utopia_ui_tools resolves, before doing
anything (the two gates above).UtopiaTheme/context (the plugin's
PostToolUse hook nudges exactly this on newly-edited Dart) - never a hardcoded
literal where a token exists. Project-specific values (SPEC.md 3.8's stock-tile
gain/loss colors) live as project constants "on the side" - a legal, documented
pattern, not a smell, and not a reason to invent a token (the tree stays
closed; see overlay-and-manifests.md and
utopia-design:tokens's
token-profile.md "When to
add a new entry"). Widget style itself - Screen/State/View, hooks, DI - defers
entirely to utopia-hooks; this skill never restates any of it. utopia-hooks
is a separate plugin and may be absent from a session. When it is not available
(no such skill listed, and the project does not already use 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.design/overlay/<local-part>.yaml. A component
exists in the project manifest exactly when its overlay file exists - there is
no other registration mechanism.dart run utopia_ui_tools:generate_manifest --project from inside the
project. It emits BOTH design/project.manifest.json and
design/merged.manifest.json (fixed paths), self-validates before writing
(exit 1 + findings, nothing written, on failure) and reruns
byte-identically. Exact flags, defaults, and the shadow-class warning:
scaffold-and-register.md.validate_manifest pointed at design/merged.manifest.json
(a ZERO-ARG run validates the shipped library manifest instead - not what
you want here) and confirm the SPEC.md 3.8 gates pass - namespace
enforcement, utopiaUiVersion freshness, embedded-library equality,
referential integrity across the merge, flat model-name uniqueness. See
overlay-and-manifests.md.<projectPackageName>:<kebab-name>. Bare ids (button) are reserved for utopia_ui
library components forever - never fake a bare id for a project component, and
never omit the namespace "just this once."design/project.manifest.json
and design/merged.manifest.json are regenerated by generate_manifest --project, the
same discipline utopia-design:sync enforces for the theme Dart file and the twin's
CSS. A hand-edit is silently overwritten the next regeneration and, in the meantime,
misrepresents what the overlay + source actually say.After running this skill's loop, verify:
UtopiaTheme/context - none hardcoded.design/overlay/<local-part>.yaml for the component, using
only the real overlay keys (states, notes, examples, tokenBindingsAdd, and
the optional class: binding when the filename is not the class's kebab
derivation) - see overlay-and-manifests.md.<projectPackageName>:<kebab-name> - never bare.design/project.manifest.json and design/merged.manifest.json were
regenerated (never hand-edited) after the overlay changed.validate_manifest was run and passed - namespace enforcement, utopiaUiVersion
freshness, embedded-library equality, referential integrity, flat model-name
uniqueness.design/tokens.json; unrelated artifacts to this skill's project/merged manifests, but
the same "generated, never hand-edited" discipline applies to both.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
5 skills in this plugin
/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.
/screenBuild 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.
npx claudepluginhub utopia-uss/utopia-flutter-skills --plugin utopia-design