agentsclimarketplace

Ui component

Skill syniol/llm-software-project/.agent/skills/ui-component

Instructions for creating UI components following the design system, accessibility standards, and file structure conventions.From its SKILL.md

Install
npx -y skills add syniol/llm-software-project --skill ui-component

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.8 KB, 424 tokens by cl100k_base, as published. Nobody here has run it

UI Component Creation Skill

When creating a new UI component, follow this procedure exactly:

1. File Structure

Every component must produce these files:

components/
└── MyComponent/
    ├── MyComponent.tsx          # Component implementation
    ├── MyComponent.test.tsx     # Unit tests (React Testing Library)
    ├── MyComponent.stories.tsx  # Storybook stories
    └── index.ts                 # Barrel export

2. Props Interface

  • Define a Props interface with JSDoc on every prop.
  • Export the interface for consumer use.
/** Props for the MyComponent component. */
export interface MyComponentProps {
  /** The primary label displayed to the user. */
  label: string;
  /** Optional click handler. */
  onClick?: () => void;
  /** Visual variant. Defaults to 'primary'. */
  variant?: 'primary' | 'secondary' | 'ghost';
}

3. Accessibility (WCAG 2.1 AA)

  • All interactive elements must have aria-label or visible label text.
  • Colour contrast ratio must be at least 4.5:1 for normal text, 3:1 for large text.
  • Support keyboard navigation (Tab, Enter, Escape).
  • Include role attributes where semantic HTML is insufficient.

4. Design System Tokens

  • Use design tokens for all colours, spacing, typography, and radii. Never hardcode values.
  • Example: var(--color-primary), var(--spacing-md), var(--radius-lg).

5. Responsive Breakpoints

BreakpointMin WidthTarget
sm640pxMobile
md768pxTablet
lg1024pxSmall Desktop
xl1280pxLarge Desktop

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.