component-docs

Generate Markdown component API docs from TypeScript interfaces.

38|3|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/dylantarre/design-system-skills --skill component-docs-dylantarre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-docs
Source: https://github.com/dylantarre/design-system-skills/tree/main/skills/documentation/component-docs
Command: npx skills add https://github.com/dylantarre/design-system-skills --skill component-docs-dylantarre

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of comprehensive component documentation, including API references, props tables, usage examples, and accessibility notes, reducing manual effort and ensuring consistency across design-system docs.

Core Features & Use Cases

  • Prop-driven API docs generated from TypeScript interfaces
  • Auto-generated usage examples, accessibility notes, and design specs
  • Suitable for documenting new components or refreshing an entire design system

Quick Start

Run the documentation generator against your TypeScript component library to produce Markdown docs for each component.

Frequently Asked Questions about component-docs

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

FAQPage Schema
How do I auto-generate component API documentation from TypeScript interfaces?

You can auto-generate component API documentation by running a documentation generation script that parses TypeScript interfaces to produce Markdown docs, including props tables and accessibility notes. This requires a TypeScript-enabled project with structured component definitions.

What is the best way to document design-system component props and accessibility notes?

The best way to document design-system components is automating the extraction of props and accessibility notes directly from TypeScript interfaces. This generates consistent Markdown documentation without manual entry, covering API references and design specs for both developers and designers.

Do I need a TypeScript-enabled project to generate component API docs?

Yes, you need a TypeScript-enabled project with defined component interfaces to generate component API docs. The documentation generator parses these TypeScript definitions to automatically extract props tables, usage examples, and accessibility notes into Markdown.

Can I use this component documentation generation approach for an entire design system catalog?

Yes, this approach is suitable for documenting an entire design-system catalog. Running the generation script against your component library produces comprehensive Markdown documentation for each component, ensuring consistency across all UI elements.

What format does the generated component API documentation output?

The generated component API documentation outputs in Markdown format. The script parses TypeScript interfaces and usage examples to produce structured Markdown files containing props tables, accessibility notes, and design specs for your components.

What should I avoid when auto-generating documentation from TypeScript component definitions?

When auto-generating documentation from TypeScript component definitions, avoid inconsistent interface structures or missing usage examples. The generator requires properly defined TypeScript interfaces and a documentation generation script to accurately produce props tables and design specs.