ui-skills

Enforce UI constraints for React, Tailwind, and motion/react components.

3|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/BenjaminG/ai-skills --skill ui-skills-benjaming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui-skills
Source: https://github.com/BenjaminG/ai-skills/tree/main/ui-skills
Command: npx skills add https://github.com/BenjaminG/ai-skills --skill ui-skills-benjaming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies opinionated constraints to ensure consistent, accessible, and maintainable user interfaces across UI work with agents.

Core Features & Use Cases

  • Enforces Tailwind CSS defaults for styling consistency.
  • Requires motion/react for animations where needed; uses Base UI primitives when possible.
  • Encourages accessible components with proper aria-labels and focus management.
  • Guides safe interaction patterns (AlertDialog for destructive actions) and avoids common pitfalls.
  • Use Case: Validate a React component against the constraints to spot violations and refactor accordingly.

Quick Start

Use the ui-skills to review the current UI work and report constraint violations with concrete fixes.

Frequently Asked Questions about ui-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my React components for UI accessibility and consistency violations?

To check React components for UI accessibility and consistency violations, this Skill automates reviews of your code against opinionated constraints, reporting structural issues and concrete fixes for proper aria-labels, focus management, and safe interaction patterns.

What are opinionated UI constraints and why use them for frontend development?

Opinionated UI constraints are predefined rules for styling, structure, and interaction that ensure frontend interfaces remain consistent, accessible, and maintainable across projects, preventing common pitfalls like missing focus management or unsafe destructive actions.

Can I use this Skill to enforce Tailwind CSS defaults in my project?

Yes, you can use this Skill to enforce Tailwind CSS defaults in your project. It validates your React components against Tailwind styling rules to ensure design consistency and structural compliance across your UI work.

How do I validate safe interaction patterns for destructive actions in React?

To validate safe interaction patterns for destructive actions in React, this Skill checks your components against established constraints, guiding you to use AlertDialog primitives and avoid common pitfalls during manual validations and automated reviews.

Does this UI constraint checker support animation libraries like motion/react?

Yes, this UI constraint checker supports animation libraries like motion/react. It specifically targets React components styled with Tailwind, requiring motion/react for animations and using Base UI primitives where appropriate.