docs-components

Format documentation drafts with standard MDX components and heading conventions.

37|83|Updated Feb 13, 2019
One-click install
npx skills add https://github.com/reactjs/it.react.dev --skill docs-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docs-components
Source: https://github.com/reactjs/it.react.dev/tree/main/.claude/skills/docs-components
Command: npx skills add https://github.com/reactjs/it.react.dev --skill docs-components

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a standardized approach to creating and applying MDX documentation components (Note, Pitfall, DeepDive, Recipes, etc.) to ensure consistent structure, styling, and semantics across reference and learn pages.

Core Features & Use Cases

  • Standardized MDX components for warnings, tips, and deep-dives used across documentation pages.
  • Guidelines for heading conventions, callout spacing, and content composition to maintain a cohesive docs experience.
  • Use Case: Writers create Learn and Reference pages with predictable patterns and editors audit docs for consistent structure.

Quick Start

Format the given documentation draft to use the standard MDX component patterns (Note, Pitfall, DeepDive, Recipes) and ensure correct heading conventions.

Frequently Asked Questions about docs-components

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

FAQPage Schema
How do I standardize MDX documentation components for warnings and tips?

To standardize MDX documentation components, apply predefined patterns like Note, Pitfall, and DeepDive across your pages. This ensures consistent structure, styling, and semantics for warnings and tips throughout your documentation.

What are the standard MDX component patterns for React docs?

Standard MDX component patterns for React docs include Note, Pitfall, DeepDive, and Recipes. These components provide a systematic guide for formatting callouts, warnings, and structured content blocks consistently.

How do I format headings and callouts in MDX documentation?

Format headings and callouts in MDX documentation by following established heading conventions and callout spacing guidelines. This maintains a cohesive docs experience by applying predictable content composition rules across Learn and Reference pages.

Do I need to know MDX to use documentation component patterns?

Yes, you need familiarity with MDX components to use documentation component patterns effectively. Writers and editors must understand MDX formatting conventions and adhere to page structure guidelines to implement components like Note and Pitfall correctly.

When should I use Pitfall or DeepDive components in MDX?

Use Pitfall components to highlight common mistakes and DeepDive components for advanced explanations in MDX. These standardized patterns help structure content predictably, allowing readers to identify warnings and in-depth information quickly.

What is the best way to audit MDX docs for consistent structure?

The best way to audit MDX docs for consistent structure is to check pages against standard component patterns and heading conventions. Editors should verify that components like Note, Pitfall, and Recipes are used correctly and frontmatter metadata is applied.