component-engineering

Audit React components for accessibility and composition using asChild and data-slot patterns.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/IgorWarzocha/realtime-dashboard-analytics-demo --skill component-engineering
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: component-engineering
Source: https://github.com/IgorWarzocha/realtime-dashboard-analytics-demo/tree/main/.opencode/skill/component-engineering
Command: npx skills add https://github.com/IgorWarzocha/realtime-dashboard-analytics-demo --skill component-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill standardizes the practice of building accessible, composable React components, ensuring teams adopt a consistent engineering standard.

Core Features & Use Cases

  • Establishes an architecture-first workflow for reusable UI primitives.
  • Demonstrates asChild composition, data-slot semantics, and semantic HTML to improve accessibility and composition.
  • Provides reference materials (composition.md, accessibility.md, styling.md) to audit components and enforce best practices.

Quick Start

Audit a sample React component to verify accessibility and composition, then apply asChild and data-slot patterns to improve structure.

Frequently Asked Questions about component-engineering

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

FAQPage Schema
How do I build accessible, composable React components using asChild and data-slot patterns?▼

To build composable React components, this skill audits your architecture using reference guides to enforce asChild composition and data-slot semantics, ensuring semantic HTML patterns across reusable UI primitives for robust accessibility.

What is the asChild composition pattern in React and how does it improve component accessibility?▼

The asChild composition pattern allows a React component to pass its props to a child element without adding an extra DOM wrapper, preserving semantic HTML structure and improving accessibility and styling flexibility across UI primitives.

How do I audit my React components for accessibility and composition best practices?▼

You can audit React components for accessibility by validating them against the skill's reference materials, which check for proper data-slot usage, semantic HTML patterns, and architecture-first workflows to enforce reusable, robust component standards.

When do I need data-slot semantics in React UI primitives?▼

You need data-slot semantics in React UI primitives when building composable components that require consistent styling and DOM structure identification, enabling robust auditing and accessibility validation across complex component architectures.

Can I use this skill to standardize React component architecture across my team?▼

Yes, this skill standardizes the practice of building accessible, composable React components by providing reference guides for composition, accessibility, and styling, ensuring your team adopts a consistent engineering standard for UI primitives.