heroui-recommender
About
This skill helps developers select appropriate HeroUI components when building new UI features or migrating from shadcn/ui. It provides component recommendations, usage examples with TypeScript types, and ensures proper implementation patterns. Use it during feature implementation or migration to maintain consistent UI/UX across your application.
Documentation
HeroUI Component Recommender Skill
This Skill helps developers select and implement the right HeroUI components for features, ensuring consistent UI/UX across the application.
When to Activate
- Starting implementation of new UI features
- Migrating components from shadcn/ui to HeroUI
- Uncertain which HeroUI component fits requirements
- Need usage examples with TypeScript types
- Want to verify proper HeroUI patterns
Available HeroUI Components
The project uses these HeroUI components (from package.json):
Interactive Components
- Button (
@heroui/button) - Actions, CTAs, form submissions - Tabs (
@heroui/tabs) - Section navigation, category switching - Pagination (
@heroui/pagination) - List navigation, data tables - Input (
@heroui/input) - Form fields, search boxes - Popover (
@heroui/popover) - Contextual information, tooltips - Tooltip (
@heroui/tooltip) - Hover hints, icon explanations
Display Components
- Card (
@heroui/card) - Content containers, dashboard widgets - Table (
@heroui/table) - Data grids, listings - Chip (
@heroui/chip) - Tags, badges, status indicators - Alert (
@heroui/alert) - Notifications, warnings, info messages - Toast (
@heroui/toast) - Temporary notifications, success messages
Layout Components
- Spacer (
@heroui/spacer) - Flexible spacing between elements - Spinner (
@heroui/spinner) - Loading states, async operations
Complete Suite
- @heroui/react - Full HeroUI component library
Actions Performed
- Analyze Requirements: Understand the feature/UI needs
- Recommend Components: Suggest appropriate HeroUI components
- Provide Examples: Show TypeScript usage with proper types
- Fetch Latest Docs: Use Context7 MCP to get up-to-date HeroUI documentation
- Check Patterns: Ensure semantic colors and accessibility best practices
- Migration Guide: If replacing shadcn/ui, provide migration steps
Example Recommendations
Feature: Data Table with Pagination
Recommended Components:
Tablefrom@heroui/table- Main data displayPaginationfrom@heroui/pagination- Navigation controlsChipfrom@heroui/chip- Status badgesSpinnerfrom@heroui/spinner- Loading state
Usage Example:
import { Table, TableHeader, TableColumn, TableBody, TableRow, TableCell } from "@heroui/table";
import { Pagination } from "@heroui/pagination";
import { Chip } from "@heroui/chip";
export function DataTable() {
return (
<div className="flex flex-col gap-4">
<Table aria-label="Car registrations">
<TableHeader>
<TableColumn>Make</TableColumn>
<TableColumn>Model</TableColumn>
<TableColumn>Status</TableColumn>
</TableHeader>
<TableBody>
<TableRow key="1">
<TableCell>Toyota</TableCell>
<TableCell>Camry</TableCell>
<TableCell>
<Chip color="success" variant="flat">Active</Chip>
</TableCell>
</TableRow>
</TableBody>
</Table>
<Pagination total={10} initialPage={1} />
</div>
);
}
Feature: Form with Validation
Recommended Components:
Inputfrom@heroui/input- Form fieldsButtonfrom@heroui/button- Submit actionAlertfrom@heroui/alert- Error messages
Feature: Dashboard Cards
Recommended Components:
Cardfrom@heroui/card- ContainerChipfrom@heroui/chip- Metrics, trendsSpinnerfrom@heroui/spinner- Loading state
Semantic Color System
All HeroUI components support semantic colors:
Text Colors:
text-foreground- Primary text (auto-adjusts for light/dark mode)text-default-900- Strong emphasistext-default-600- Secondary texttext-muted-foreground- Metadata, captions
Component Colors:
color="default"- Neutral, standard UIcolor="primary"- Main actions, CTAscolor="secondary"- Supporting actionscolor="success"- Positive states, confirmationscolor="warning"- Caution, important noticescolor="danger"- Errors, destructive actions
Accessibility Guidelines
Ensure all HeroUI components include:
aria-labelattributes for screen readers- Keyboard navigation support
- Focus indicators
- Semantic HTML structure
- Proper heading hierarchy
Migration from shadcn/ui
Common Mappings:
- shadcn
Button→@heroui/button - shadcn
Card→@heroui/card - shadcn
Badge→@heroui/chip - shadcn
Table→@heroui/table - shadcn
Tabs→@heroui/tabs - shadcn
Tooltip→@heroui/tooltip
Note: Do NOT modify files in src/components/ui/ (shadcn/ui). Create new HeroUI components in appropriate directories.
Tools Used
- Context7 MCP: Fetch latest HeroUI documentation
mcp__context7__resolve-library-id- Find HeroUI library IDmcp__context7__get-library-docs- Get component documentation
- Read: Examine existing component implementations
- Grep: Find similar patterns in codebase
Documentation Resources
When fetching HeroUI docs via Context7:
- Library ID:
/heroui/reactor component-specific packages - Focus on: TypeScript types, props, variants, colors, accessibility
Project-Specific Guidelines
From apps/web/CLAUDE.md:
- New Features: Use HeroUI components with TypeScript-first approach
- Component Selection: Leverage HeroUI's professional design system
- Data Visualisation: Use HeroUI's table and chart components for market data
- Customisation: Apply HeroUI theming to match Singapore car market branding
- Performance: Take advantage of tree-shakeable, optimized components
- Legacy Code: Gradually migrate shadcn/ui to HeroUI equivalents
Quick Install
/plugin add https://github.com/sgcarstrends/sgcarstrends/tree/main/heroui-recommenderCopy and paste this command in Claude Code to install this skill
GitHub 仓库
Related Skills
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
Algorithmic Art Generation
MetaThis skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.
webapp-testing
TestingThis Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.
finishing-a-development-branch
TestingThis skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.
