lit-ui-designer
Skill75 starsChanged 4 months agoMITView on GitHub
Design, build, review, or polish world-class Lit/LitElement web component UIs. Use for Lit components, custom elements, Web Components, shadow DOM styling, design systems/tokens, professional UI polish, accessibility/WCAG reviews, keyboard interactions, ARIA patterns, responsive states, and production-quality TypeScript/CSS implementations.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/heygen-skills/CLAUDE.mdCLAUDE.md
- 1passwordSkill
- ask-curlSkill
- boardSkill
- cleanup-unused-filesSkill
- codeflow-maintainerSkill
- codex-session-managerSkill
- coven-astraSkill
- coven-board-entrySkill
- coven-charmSkill
- coven-cloud-maintainerSkill
- coven-codySkill
- coven-echoSkill
- coven-identity-canonSkill
- coven-kittySkill
- coven-parallel-workSkill
- coven-sageSkill
- coven-task-managerSkill
- daily-dev-agenticSkill
- discrawlSkill
- disk-space-optimizerSkill
- epubSkill
- familiar-board-stewardshipSkill
- heygen-avatarSkill
- heygen-videoSkill
- heygen-skillsSkill
- higgsfield-generateSkill
- higgsfieldSkill
- linear-issue-managementSkill
- lobsterSkill
- maintainer-barSkill
- memory-recallSkill
- memory-timeline-managerSkill
- ml-engineerSkill
- nodriverSkill
- ocrSkill
- openclaw-devSkill
- openclaw-trustSkill
- opencoven-designSkill
- OpenCoven Role Creation ProcessSkill
- pr-agentSkill
- project-managerSkill
- prompt-engineerSkill
- prompt-vaultSkill
- research-ingestionSkill
- ritual-dapp-frontendSkill
- rollcallSkill
- security-agentSkill
- skill-scannerSkill
- slidev-deck-pipelineSkill
- tauri-apple-releaseSkill
- threejs-animationSkill
- tinyfish-agent-runSkill
- tinyfish-browserSkill
- tinyfish-fetchSkill
- tinyfish-searchSkill
- tinyfishSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to create or improve Lit web component interfaces that feel professional, accessible, robust, and production-ready.
- Distinctive: line 12
Inspect before inventing: Read the existing component, styles, tokens, tests/stories, screenshots, and surrounding UX.
- Very specific: line 14
Choose native semantics first: Prefer real HTML controls (button, a, input, dialog, headings, lists, tables) before ARIA.
- Very specific: line 15
Implement Lit idiomatically: Keep public properties as external API, private @state for internals, declarative render(), classMap/styleMap …
- Distinctive: line 16
Design with craft: Use clear hierarchy, spacing rhythm, restrained color, meaningful motion, strong focus states, and polished empty/error …
- Very specific: line 17
Verify: Run the smallest meaningful gates: typecheck/test/build, accessibility checks if present, and browser/screenshot review for …
- Distinctive: line 21
Use TypeScript and decorators when the repo already uses them.
- Distinctive: line 22
Keep reactive public props as inputs.
- Very specific: line 23
Use @state() or state: true for private reactive state.
- Distinctive: line 24
Keep expensive derived values outside hot render paths or memoize when needed.
- Distinctive: line 25
Use stable keys/repeat directives for lists that reorder or update often.
- Very specific: line 26
Use static styles = css\...\`` for component styles.
- Very specific: line 27
Avoid dynamic <style> blocks and unsafeCSS.
- Very specific: line 28
Use :host, :host([attr]), ::slotted, and CSS parts intentionally.
- Distinctive: line 55
When reviewing or polishing Lit UI, report findings in this order:
- Distinctive: line 66
Read only as needed:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lit UI Designer
Use this skill to create or improve Lit web component interfaces that feel professional, accessible, robust, and production-ready.
Workflow
- Inspect before inventing. Read the existing component, styles, tokens, tests/stories, screenshots, and surrounding UX. Preserve repo conventions unless they are clearly broken.
- Define the UX contract. Identify primary user goal, component states, keyboard/mouse/touch behavior, responsive behavior, empty/loading/error/disabled states, and integration boundaries.
- Choose native semantics first. Prefer real HTML controls (
button,a,input,dialog, headings, lists, tables) before ARIA. Add ARIA only when native semantics cannot express the pattern. - Implement Lit idiomatically. Keep public properties as external API, private
@statefor internals, declarativerender(),classMap/styleMapwhen helpful, and custom events for user-driven state changes. - Design with craft. Use clear hierarchy, spacing rhythm, restrained color, meaningful motion, strong focus states, and polished empty/error states. Avoid generic “AI dashboard” slop.
- Verify. Run the smallest meaningful gates: typecheck/test/build, accessibility checks if present, and browser/screenshot review for meaningful visual work.
Lit implementation standards
- Use TypeScript and decorators when the repo already uses them; otherwise follow local Lit style.
- Keep reactive public props as inputs. Do not silently mutate owner-controlled props except for user-driven control patterns; emit a composed/bubbling event to announce changes.
- Use
@state()orstate: truefor private reactive state. - Keep expensive derived values outside hot render paths or memoize when needed.
- Use stable keys/repeat directives for lists that reorder or update often.
- Use
static styles = css\...`` for component styles. Prefer CSS custom properties for theming and per-instance variation. - Avoid dynamic
<style>blocks andunsafeCSS; use them only when the value is fully trusted and there is no safer design-token/custom-property option. - Use
:host,:host([attr]),::slotted, and CSS parts intentionally. Document exported parts and CSS custom properties when creating reusable components. - Dispatch events with
bubbles: trueandcomposed: truewhen parents outside the shadow root must handle them.
Accessibility bar
Target WCAG 2.2 AA unless the repo specifies stricter requirements.
- Keyboard: every interactive path works without a mouse; focus order is logical; Escape/Enter/Space/Arrow behavior matches the widget pattern.
- Focus: visible, high-contrast focus indicators; never remove outlines without replacement.
- Names: every icon-only control has an accessible name; form inputs have labels; status regions are announced when appropriate.
- Contrast: meet AA for text and meaningful UI indicators; do not encode meaning by color alone.
- Motion: respect
prefers-reduced-motion; keep transitions purposeful and short. - Shadow DOM: remember labels, focus delegation, slots, composed events, and ARIA relationships can behave differently across shadow boundaries. Test actual behavior.
- ARIA: if implementing a complex widget, follow WAI-ARIA APG keyboard and role guidance exactly; do not sprinkle roles as decoration.
Professional UI checklist
- Layout has a clear information hierarchy: title, primary action, secondary actions, metadata, content.
- Spacing follows a consistent scale; alignment is deliberate; density matches the product surface.
- Loading, empty, error, offline, disabled, hover, active, selected, and focus states are designed.
- Copy is specific and calm; labels use verbs for actions and nouns for destinations.
- Components are responsive by design, not patched after the fact.
- Visual effects support comprehension; avoid gratuitous blur/glow/gradient noise.
- Dark mode and high-contrast modes are considered when the product supports them.
Review protocol
When reviewing or polishing Lit UI, report findings in this order:
- Blocking accessibility or correctness issues
- Lit/web-component architecture issues
- Visual craft and UX polish
- Nice-to-have improvements
For implementation work, prefer a small, shippable slice over a sprawling redesign. If a full redesign is needed, create a plan and one representative component first.
References
Read only as needed:
references/lit-patterns.md— Lit architecture, properties, events, styles, and component APIs.references/accessibility-checklist.md— accessibility checks for shadow DOM, custom controls, keyboard UX, and ARIA.references/design-quality.md— professional visual/UI quality standards and anti-slop guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

