baseline-ui
Apply UI Quality Standards
AI-generated interfaces often lack consistency and accessibility. This skill enforces opinionated UI standards for Tailwind CSS, accessible components, performance best practices, and design constraints.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "baseline-ui". /baseline-ui
Resultado esperado:
- Violation found: Line 23 uses `h-screen`
- Why it matters: `h-screen` causes layout issues on mobile browsers with dynamic toolbars
- Fix: Replace with `h-dvh` for dynamic viewport height
- Violation found: Line 51 animates `width` property
- Why it matters: Layout property changes trigger reflow, causing janky animations
- Fix: Use `transform: scaleX()` instead with origin-aligned transform
Usando "baseline-ui". /baseline-ui Button.tsx
Resultado esperado:
- Button.tsx - Accessibility Violation: Icon-only button lacks aria-label
- Impact: Screen readers cannot announce the button purpose
- Fix: Add `aria-label="Edit settings"` to the button element
- Button.tsx - Animation Violation: Button has custom letter-spacing
- Impact: Modifying tracking breaks visual rhythm and accessibility
- Fix: Remove `tracking-wide` unless explicitly requested by design
Auditoría de seguridad
SeguroAll 54 static findings are FALSE POSITIVES. The scanner misinterpreted Markdown documentation syntax (backtick characters) as Ruby shell commands and UI terminology as security threats. This skill is pure documentation with no executable code, network requests, or security risks.
Problemas de riesgo medio (1)
Problemas de riesgo bajo (3)
Puntuación de calidad
Lo que puedes crear
Front-End Developer Review
Use /baseline-ui to review React components against established quality standards before committing code.
AI Assistant Guidelines
Configure AI assistants to follow consistent UI patterns when generating interface code.
Design System Documentation
Establish and enforce team-wide UI standards for React component development.
Prueba estos prompts
/baseline-ui Review all UI code in this conversation against the baseline constraints. Report any violations with the exact line, why it matters, and a concrete fix.
/baseline-ui <file> Apply the baseline constraints to this file. For each violation provide: the exact code snippet, one sentence explaining the impact, and a specific code-level suggestion.
Review the following React components for animation violations: - Are only compositor props animated? - Are layout properties avoided? - Does animation respect reduced-motion preferences? Identify any issues and suggest fixes.
Check these components for accessibility compliance: - Icon-only buttons have aria-labels? - AlertDialog is used for destructive actions? - Error messages appear near their inputs? - Keyboard and focus behavior uses primitives?
Mejores prácticas
- Use the /baseline-ui command at the start of UI-focused conversations to establish constraints upfront
- Run /baseline-ui before submitting PRs that include React component changes
- Combine with component library documentation to ensure compatibility with Base UI, React Aria, or Radix primitives
Evitar
- Ignoring animation constraints that trigger layout reflow, causing janky user experiences
- Mixing primitive systems (Base UI + Radix) within the same interaction surface
- Using arbitrary z-index values instead of a documented scale