mcpField
M
mui-base

mui-base

github.com/pproencaDevelopment218331 installsUpdated 11w ago
Repository

About mui-base

mui-base is a reference skill for React developers building headless component libraries with MUI Base UI patterns. It organizes 48 rules for component design, naming, structure, error handling, and style.

Key features

  1. 0148 prioritized implementation rules
  2. 02Headless and unstyled component patterns
  3. 03Controlled and uncontrolled modes
  4. 04Accessibility and ARIA guidance
  5. 05Naming and project organization rules
  6. 06Error handling and style conventions

Use cases

  1. 01Build a headless React component library
  2. 02Compose components with shared context
  3. 03Implement accessible UI primitives
  4. 04Review component structure and conventions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill mui-base

After installing, type/mui-basein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
README.md
assets/templates/
_template.md
references/
_sections.md
comp-context-error-message.md
comp-context-undefined-default.md
comp-context-value-memo.md
comp-forward-ref-named.md
comp-hook-namespace-exports.md
comp-plain-function-root.md
comp-props-destructure-order.md
comp-props-parameter-naming.md
comp-state-memoization.md
comp-use-client-directive.md
comp-use-controlled.md
comp-use-render-element.md
err-cancelable-events.md
err-context-error-guidance.md
err-deduplicated-warnings.md
err-dev-only-warnings.md
err-event-reason-constants.md
err-message-prefix.md
err-prop-validation-timing.md
err-typed-event-reasons.md
name-component-naming.md
name-constants.md
name-context-hook.md
name-context-suffix.md
name-data-attributes.md

Details

From the project README

MUI Headless UI Best Practices

Comprehensive style guide for building headless React component libraries following MUI Base UI patterns. Contains 48 rules across 5 categories, prioritized by impact.

When to Apply

Reference these guidelines when:

  • Building headless/unstyled component libraries
  • Creating compound components with context-based composition
  • Implementing accessible UI primitives with ARIA patterns
  • Using render props and className callbacks for styling flexibility
  • Writing components that support both controlled and uncontrolled modes

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Component PatternsCRITICALcomp-
2Naming ConventionsHIGHname-
3OrganizationHIGHorg-
4Error HandlingHIGHerr-
5StyleMEDIUMstyle-

Quick Reference

1. Component Patterns (CRITICAL)
  • comp-forward-ref-named - Use forwardRef with Named Function
  • comp-props-parameter-naming - Name Props Parameter componentProps
  • comp-use-render-element - Use useRenderElement for DOM Rendering
  • comp-context-undefined-default - Create Context with Undefined Default
  • comp-context-error-message - Context Error Messages with Hierarchy
  • comp-use-controlled - Use useControlled Hook for Dual Modes
  • comp-state-memoization - Memoize State Objects
  • comp-context-value-memo - Memoize Context Provider Values
  • comp-plain-function-root - Plain Function for Non-DOM Roots
  • comp-hook-namespace-exports - Hook Namespace Exports
  • comp-props-destructure-order - Props Destructuring Order
  • comp-use-client-directive - Add use client Directive
2. Naming Conventions (HIGH)
  • name-component-naming - Component Naming as ParentPart
  • name-file-matches-export - File Name Matches Primary Export
  • name-directory-kebab-case - Directory Naming kebab-case
  • name-part-directory-lowercase - Part Directory Naming lowercase
  • name-context-suffix - Context Naming with Suffix
  • name-context-hook - Context Hook as useComponentContext
  • name-props-interface - Props Interface as ComponentProps
  • name-state-interface - State Interface as ComponentState
  • name-namespace-type-exports - Namespace Type Exports
  • name-event-type - Event Type Naming Convention
  • name-constants - Constant Naming SCREAMING_SNAKE_CASE
  • name-data-attributes - Data Attribute Naming lowercase
  • name-hooks - Hook Naming with use Prefix
  • name-refs - Ref Variable Naming with Suffix
  • name-handlers - Handler Naming Convention
3. Organization (HIGH)
  • org-component-directory - Component Directory Structure
  • org-dual-barrel-exports - Dual Barrel Export Pattern
  • org-test-colocation - Test File Colocation
  • org-context-placement - Context File Placement
  • org-data-attributes-file - Data Attributes Documentation File
  • org-state-attributes-mapping - State Attributes Mapping File
  • org-css-vars-file - CSS Variables Documentation File
  • org-package-exports - Package-Level Wildcard Exports
4. Error Handling (HIGH)
  • err-dev-only-warnings - Development-Only Warnings
  • err-deduplicated-warnings - Deduplicated Warning Messages
  • err-message-prefix - Message Prefix Standard
  • err-context-error-guidance - Context Error Guidance
  • err-prop-validation-timing - Prop Validation Timing
  • err-cancelable-events - Cancelable Event Pattern
  • err-event-reason-constants - Event Reason Constants
  • err-typed-event-reasons - Type-Safe Event Reasons
5. Style (MEDIUM)
  • style-react-import - React Import as Namespace
  • style-internal-imports - Internal Import Paths
  • style-explicit-undefined - Explicit Undefined in Prop Types
  • style-default-values - Default Values in Destructuring
  • style-jsdoc-documentation - JSDoc Documentation

How to Use

Read individual reference files for detailed explanations and code examples:

Source

Extracted from MUI Base UI codebase on 2026-01-17.

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Comments

Markdown supported