Agent Skills

Task-oriented operational guides for AI coding agents writing code with the Rikka Web Components toolkit. 14 skills, each one folder ≈ one task. Follow the [agentskills.io](https://agentskills.io) format (SKILL.md with YAML frontmatter).

Install all 14 skills

Start here

Umbrella: rikka
rikka/SKILL.md

Orientation. The four LLM-specific footguns, minimal counter example, which skill to load for which task. Load first.

Overview
overview/SKILL.md

What rikka is, the three packages, design principles, when (and when not) to use it.

Common Pitfalls
common-pitfalls/SKILL.md

Cross-cutting mistakes. Read before generating rikka code. Covers the 4 LLM-specific footguns.

Reactive state

Reactive State
reactive-state/SKILL.md

signal, computed, effect. The TC39-Signals-based primitives.

DOM

DOM Creation
dom-creation/SKILL.md

h(), tag helpers, h`...` template literal. Creates real DOM elements — no virtual DOM.

Signal Binding
signal-binding/SKILL.md

Binding signals to text nodes, attributes, template slots. Fine-grained vs coarse-grained. The most error-prone area.

Control Flow
control-flow/SKILL.md

For (lists), Show / When / Switch / Match (conditionals).

Form Binding
form-binding/SKILL.md

Two-way binding for <input>, <textarea>, <select> via writable signals.

SVG
svg/SKILL.md

SVG elements, namespace handling, name-collision tags (a, script, style, title, text, span).

Custom elements

Custom Element
custom-element/SKILL.md

defineElement, attributes, events, methods, render — the full ElementConfig reference.

Shadow DOM & Styling
shadow-dom-styling/SKILL.md

css`...`, inlineStyle`...`, adoptStyle, :host selector.

Template Binding
template-binding/SKILL.md

The template option of defineElement with {{name}} / {{@event}} syntax.

Composition
composition/SKILL.md

Composable functions + MyElement.h(...) to embed a custom element inside another.

Operations

Browser Compatibility
browser-compatibility/SKILL.md

Browser support matrix and polyfills for Custom Elements / Shadow DOM / CSSStyleSheet. SSR guidance.

Use from an AI agent

The fastest path: install with the skills CLI. Each skill auto-loads into context based on its description frontmatter field. The full set totals ~2,800 lines.

npx skills add yw662/rikka