AI Agent Skills (TanStack Intent)

Discover and use the AI agent skills shipped with @loke/design-system, @loke/ui, and @loke/icons.

AI Agent Skills (TanStack Intent)

All three LOKE packages ship SKILL.md files via @tanstack/intent. These skills guide AI agents through common tasks — composing overlays, building forms, using icons, and more.


1. Run install

npx @tanstack/intent@latest install

This prints a skill — a prompt you paste into your AI agent. The skill instructs your agent to:

  1. Check for existing intent-skills mappings in your config files (AGENTS.md, CLAUDE.md, .cursorrules, etc.)
  2. Run npx @tanstack/intent@latest list to discover available skills from your installed packages
  3. Scan your repository structure to understand your project
  4. Propose relevant skill-to-task mappings based on your codebase patterns
  5. Ask if you want a target other than AGENTS.md
  6. Write or update an intent-skills block in your agent config

If an intent-skills block already exists, the agent updates that file in place. If none exists, AGENTS.md is the default target.


2. Use skills in your workflow

When your AI agent works on a task matching a skill mapping, it loads the corresponding SKILL.md into context automatically. This means agents can discover and apply best practices without manual prompting — they get domain-specific guidance tailored to the LOKE libraries directly in their context.


3. Keep skills up-to-date

Skills version with each package release. Updating a package brings updated skills — no manual action needed:

bun update @loke/design-system @loke/ui @loke/icons

To see what skills are available:

npx @tanstack/intent@latest list

To check for skills referencing outdated source docs:

npx @tanstack/intent@latest stale

Available skills

@loke/design-system skills

These skills cover all design system components and theming. Load paths: node_modules/@loke/design-system/skills/<skill>/SKILL.md

SkillCovers
getting-startedInstall, Tailwind v4 config, stylesheet import, TooltipProvider setup
formsForm components: Input, Select, Checkbox, RadioGroup, Switch, Textarea, Calendar, DatePicker
display-componentsAlert, Badge, Avatar, Card, Heading, Text, Separator, Pagination, Skeleton
data-tablesTable component patterns and column configuration
layoutBox, Stack, Inline, Columns, MaxWidthWrapper, PageLayout, VisuallyHidden
overlay-compositionDialog, Sheet, Popover, DropdownMenu, Command, Tooltip, Toast — "use client" boundaries
interactive-componentsAccordion, Collapsible, Tabs, Sidebar
themingCSS custom properties, dark mode, color token customization

@loke/ui skills

These skills cover headless primitives, utility functions, and hooks. Load paths: node_modules/@loke/ui/skills/<skill>/SKILL.md

SkillCovers
loke-uiOverview of all headless primitives and when to use @loke/ui vs @loke/design-system
choosing-the-right-componentDecision guide for picking the right primitive
accordionAccordion primitive
alert-dialogAlertDialog primitive
checkboxCheckbox primitive
collapsibleCollapsible primitive
commandCommand (combobox/search) primitive
context-and-collectionContext and Collection utilities
dialogDialog primitive
dropdown-menuDropdownMenu and Menu primitives
hooksuseCallbackRef, useControllableState, useDirection, useEscapeKeydown, useId, useIsDocumentHidden, useIsHydrated, useLayoutEffect, useMobile, usePrevious, useSize
labelLabel primitive
overlay-infrastructurePortal, Presence, DismissableLayer, FocusGuards
popoverPopover primitive
primitive-and-slotPrimitive and Slot utilities
radio-groupRadioGroup primitive
selectSelect primitive
switchSwitch primitive
tabsTabs primitive
tooltipTooltip primitive

@loke/icons skills

These skills cover icon discovery, usage, and customization. Load paths: node_modules/@loke/icons/skills/<skill>/SKILL.md

SkillCovers
use-iconsImporting and rendering icons in React
find-iconsSearching the icon catalog to find the right icon
add-iconsAdding new SVG icons to the library
create-custom-iconsCreating custom icon components