Skip to main content

control-ui-solid

Port or review OpenClaw Control UI code moving from Lit 3 and Web Awesome to Solid 2, including components, projections, lifecycle boundaries, and migration proof.

v1.0.0New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install openclaw-control-ui-solid
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/openclaw-control-ui-solid/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
Signed
0Save

Instructions

Control UI on Solid 2

The Control UI is migrating from Lit 3 + Web Awesome to Solid 2 in one cutover; the plan and lane assignments live with the migration coordinator. Read ui/AGENTS.md and the assigned work order first. Renderer-neutral and additive foundations land before the integration-branch port; remove Lit and Web Awesome at cutover.

Use the exact installed Solid 2 pins and APIs in the owning package manifests. Add dependencies only within the work order; keep the seven-day release-age gate and coordinated package upgrades. The helpers, lint rules, and codemod below describe the migration target: verify that the prerequisite lane has landed before using them. A missing prerequisite or a fix outside the assigned paths goes back to the coordinator.

Architecture you must keep

  • Domain owners stay plain TypeScript. Gateway store, capabilities, lib/sessions/* (reconciler, provenance, refresh coordinator), caches, persistence, and mutation authority keep synchronous mutate-then-read semantics. Never move authoritative state into a Solid signal: Solid 2 setters become visible only after a microtask flush.
  • Projections in ui/src/lib/reactive/ publish what owners admitted. One per owner and scope, never a second store. Preserve initial reads, subscriptions, equality contracts, and explicit disposal. Mutable snapshots publish a revision signal. Event channels (invalidations, confirmations, handoffs, Gateway events) stay events.
  • Lifetimes are explicit: application → connection/presentation scope → session/pane → view. Retained, presented, retiring, and disposed are different states. Hidden retained surfaces stay mounted and read parked projections, frozen while hidden and caught up on reveal. Iframe/MCP teardown has an awaited retiring phase before DOM removal.
  • Stale-result rules from ui/AGENTS.md still apply. Key async reads by complete connection, agent, session, and query identity. Async memos discard superseded results but get no AbortSignal; keep generation guards around shared caches and Gateway writes. For immediate transport cancellation, use an owned async-iterable adapter whose return() aborts. Cancellation is never rollback. action and optimistic stores present mutations; captured targets, live authority, and uncertain outcomes stay with the domain owner.
  • Route loaders stay in the router. Preserve pending-module retention, loader-pending rendering, retained Chat, and connection-scope retirement through the router adapter.
  • Commit is not layout settlement. Use the shared RenderLifecycle.afterCommit contract for committed DOM; geometry still settles through requestAnimationFrame/ResizeObserver. Keep one live sidebar and stable retained pane/iframe nodes.

Conversion playbook

LitSolid 2
element class + customElements.definefunction X(props) rendering the existing <openclaw-x> host tag (CSS and E2E select it)
@property() fooprops.foo; never destructure props; merge for defaults (undefined overrides), omit for a remainder
@state()createMemo derivation first; createSignal only for genuinely local state
willUpdatecreateMemo / function-form createSignal
updated()createEffect(compute, apply); apply runs after DOM commit; return cleanup from apply
firstUpdatedonSettled (one-shot; return cleanup, no reactive primitive creation or flush() inside)
connected/disconnectedCallbackcomponent body / onCleanup
requestUpdate()delete it
html/svg templatesJSX
cond ? html\…` : nothing`<Show when> or a ternary; nothing in attributes → undefined
.prop=${v}prop:prop={v} preserves explicit property assignment on native and custom elements; ordinary JSX works only for the renderer's recognized stateful properties
?disabled=${b}disabled={b} (ARIA enumerations need "true"/"false" strings)
@click=${fn}onClick={fn}: camelCase; lowercase onclick becomes an attribute string
@some-event=${fn}onSome-event={fn} or ref={listen("some-event", fn, opts)}
repeat(items, key, tpl)<For each={items} keyed={key}> (item and index are accessors)
keyed(k, tpl)<Show when={k} keyed> only for truthy identities; it hides falsy keys that Lit would render. Preserve every valid identity and explicit reset; never key by streaming text
guard(deps, fn)Equality-gated dependency memo feeding an untracked render computation; preserve every explicit dependency and parked-work gate
live(v)liveValue ref factory: compare the DOM value before writing
ref()ref={el} or a callback (unowned: no cleanup inside)
class strings / classMapclass={["a", { b: cond }]}
styleMapstyle={{ … }}
unsafeHTML(sanitized)the shared sanitized-HTML helper only
untilasync createMemo + <Loading>
@consumeuseApplication()
@lit/taskasync createMemo + isPending/refresh, or an explicit owner if it has side effects
ReactiveControlleruseX() primitive with owner cleanup; extract domain logic first
custom directiveref directive factory (behavior) or component (content owner)
t("key")unchanged; it reads the locale revision signal

The planned codemod (scripts/codemods/lit-to-solid.mts) handles mechanical bindings and leaves TODO(solid2): <reason> markers for ownership decisions. Resolve every marker before handoff; the migration lint gate must reject them. Do not mechanically convert keyed, live, guard, cache, custom directives, unsafe HTML, controller lifetimes, or cancellation.

Render light DOM under the existing host tag. Scope former shadow styles to that host; replace :host, slots, and Web Awesome ::part selectors deliberately. Keep the shared stylesheet policy. Use jsxImportSource: "@solidjs/web" and its JSX types, not Solid 1's solid-js/web or JSX namespace.

Traps that compile but break

  • on:x={…}, attr:x, bool:x, classList, and use: compile to literal attributes or no-ops in Solid 2. Lint flags them.
  • onWaSelect listens to waselect. Dashed events need onWa-select or listen(...).
  • Reads after a write see the old value until flush(). Don't write-then-read in handlers; derive.
  • Reactive reads after the first await in an async memo are not tracked.
  • A memo's equals compares results after computation; it does not replace Lit guard's check before rendering. Compare the explicit dependency vector element by element in a dependency memo, then read that memo from a separate computation and invoke untrack(fn). An equivalent owner-controlled gate is also valid. Hidden data must not become a new rendering dependency for parked content.
  • Ref callbacks run without an owner, so onCleanup inside them does nothing. Create reactive work and register cleanup in the ref factory's owned setup or component body. For one-shot settled DOM work, return cleanup from onSettled.
  • Nonkeyed Show callback children get accessors; keyed children get raw values. Calling a branch accessor after its branch unmounted throws.
  • Solid 1 APIs such as createResource, onMount, mergeProps, and Context.Provider do not carry over. Use async computations, onSettled, merge, and the context component itself.
  • action uses a generator: yield restores transaction context; await alone does not.
  • Proxies and stores break WeakMap identity caches. Keep immutable message/tool objects out of stores.
  • Never let two renderers own the same DOM children (an unported Lit element inside Solid gets its own host node).

Overlays (Web Awesome replacements)

Target floor: Safari/WebKit 26.2, Chrome/Edge and Firefox from the last ~6 months. The floor and capability enforcement ship with cutover, not with additive foundations. Linux WebKitGTK qualification remains a coordinator prerequisite.

  • Positioning: CSS anchor positioning (anchor-name, position-area, position-try-fallbacks). No Floating UI. Caret popups anchor to an invisible element placed at the measured caret.
  • Top layer and light dismiss: use popovers for nonmodal overlay surfaces so they stay usable inside <dialog>.showModal(). auto supplies native light dismissal; manual needs the owning dismissal policy. Do not create competing native and library dismissal owners.
  • Dialogs: native <dialog> under the existing modal policy (focus entry/return, cancellation, native occlusion leases).
  • Menus: the shared Solid <Menu> on the qualified headless engine; Zag is the plan's first candidate, with a Solid 2 adapter and roving-focus/cancellation parity still requiring proof. Never hand-roll keyboard models or silently substitute an unqualified engine.
  • Ownership: one overlay lifecycle owner per surface (opening/open/closing/hidden; cancellation decided before listeners, inertness, occlusion, or focus change; completion never published for a superseded transition).
  • Native occlusion (ui/src/lib/native-overlay-occlusion.ts) still applies; top layer does not cover native views.
  • Preserve prompt usable-state focus, newer user focus, native Tab exit, nested Escape, vetoed transitions, and synchronous rollback of rejected controlled values. Exercise close/reopen, late veto, disconnect/remount, and native overlap during closing; settled screenshots cannot prove these races.

Tests

  • Mount with mountSolid() and always dispose. Settle with flush() plus outcome-based waits; flush() does not settle promises.
  • Follow test authoring and test-audit when changing tests. Record focused wall time and CI seconds in the PR; preserve TSX test discovery and owner routing.
  • Keep assertions; replace harness. Delete tests only when the behavior they protect is gone.
  • The quantitative chat gates (zero textarea writes, constant stream work, retained identity, heap/idle budgets, zero removed markdown nodes) and the WeakRef + collectGarbageForTest suites must stay green.
  • Follow OpenClaw testing and Crabbox. Migration suites, typechecks, changed checks, builds, and E2E go to Testbox via node scripts/crabbox-wrapper.mjs: one task-owned lease, stopped at handoff. Quick single-file tests may run locally when a remote round trip costs more than it saves. No local Docker/OrbStack.

Proof per port

Use the work order's scoped proof for additive foundations or docs-only lanes. For rendered ports, preserve existing budgets and collect:

  • touched unit/browser/E2E suites
  • the visual parity diff against main
  • Solid lint and tsgo
  • Node and Bun lanes for touched tests
  • WebKit for overlay/focus code
  • no TODO(solid2)
  • the inventory shrinks and the ratchet passes

Run Codex autoreview, resolve actionable findings, and follow the work order's publication boundary. Phase 1 lanes open ready PRs against main; integration-port lanes hand off tested commits to the coordinator without opening CI-triggering PRs. Do not merge without a landing order. Report branch/HEAD, grouped files, exact proof commands/results and lease/run IDs, requested calibration, open questions, and stopped lease status.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from OpenClaw

View source →

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.634 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.534 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.345 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.246 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.173 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

Frequently asked questions about control-ui-solid

What does the control-ui-solid skill do?

Port or review OpenClaw Control UI code moving from Lit 3 and Web Awesome to Solid 2, including components, projections, lifecycle boundaries, and migration proof. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the control-ui-solid skill?

Run `npx @skills-hub-ai/cli install openclaw-control-ui-solid` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/openclaw-control-ui-solid/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does control-ui-solid work with?

control-ui-solid runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the control-ui-solid skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use control-ui-solid after installing it?

In Claude Code, type `/openclaw-control-ui-solid` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the control-ui-solid skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.