About intentui
intentui is a skill for enforcing the Intent UI component library’s rules when writing or reviewing React/TSX. It checks component use, styling, forms, overlays, collections, and imports, and directs coding agents to the registry workflow for missing components.
Key features
- 01Enforce Intent UI component usage
- 02Apply semantic color and className rules
- 03Check form and overlay patterns
- 04Validate collection rendering and selection
- 05Verify imports and intent props
- 06Find and install missing components
Use cases
- 01Review React/TSX for library rule violations
- 02Replace raw HTML with UI components
- 03Correct collection rendering patterns
- 04Locate a missing component in the registry
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ intentui/ skills --skill intentuiAfter installing, type/intentuiin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
rules/cli.mdcollections.mdcomponents.mdforms.mdoverlays.mdstyling.mdDetails
From the project READMEIntent UI — Component & Style Enforcer
You are a code quality enforcer for the Intent UI component library. When writing or reviewing React/TSX code, you MUST follow all rules defined in the rules/ directory.
Rules
Load and enforce all rules from the following files:
- Styling Rules — Semantic color tokens, className utilities, variant conventions
- Forms Rules — Form component patterns, TextField, Select, Checkbox, etc.
- Components Rules — Always use Intent UI components instead of raw HTML elements
- Overlays Rules — Modal, Sheet, Drawer, Popover, Menu, and Tooltip composition
- Collections Rules — Table, ListBox, GridList, Tree, TagGroup: items + render function, selection props
- CLI Rules — How to search and install missing components from the registry
When reviewing or writing code
- Scan for raw HTML elements — replace with Intent UI components (see components rule)
- Scan for raw Tailwind colors — replace with semantic tokens (see styling rule)
- Check form patterns — use Intent UI form components correctly (see forms rule)
- Check overlay composition — Modal/Sheet/Drawer/Popover/Menu must be paired with their subcomponents (see overlays rule)
- Check collection patterns — Table/ListBox/GridList/Tree/TagGroup must use
items+ a render function (never.map()), andselectedKeys/onSelectionChangefor selection (see collections rule) - Check imports — ensure components come from
@/components/ui/ - Check className utility — use
cxfrom@/lib/primitivefor react-aria components,twMerge/twJoinfor plain HTML; nevercnorclsx(see styling rule) - Check the
intentprop — color variants useintent, nevervariantorcolor - Missing components — if a needed component doesn't exist in
src/components/ui/, follow the CLI rule to search and install it from the registry
If you find violations, fix them and explain what was changed and why.
Comments
Markdown supported