
Fumadocs Mdx Structure
This handles the boilerplate for Fumadocs MDX files so you're not reinventing the structure every time you document a component. It enforces the frontmatter pattern, import order, and component preview setup that 8-bit UI uses across their docs. The skill knows to place CopyCommandButton before ComponentPreview, use the correct @8bitcn package paths, and drop files in content/docs/ with proper sectioning. If you're building a component library with Fumadocs and want consistent documentation without memorizing the template, this saves you from constantly referencing existing files. It's pattern enforcement as code.
- skills.sh installs
- 271
- GitHub stars
- 2.1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add theorcdev/8bitcn-ui --skill fumadocs-mdx-structure --agent claude-codeInstalls into .claude/skills of the current project.
Files
Fumadocs MDX Structure
Create well-structured MDX documentation files for 8-bit components following the established patterns.
Frontmatter Pattern
---
title: Component Name
description: Brief description of the 8-bit component.
---
Import Pattern
All documentation files require these imports:
import { ComponentName } from "@/components/ui/8bit/component-name";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";
Copy Command Button
Place immediately after frontmatter:
<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
<CopyCommandButton
copyCommand="pnpm dlx shadcn@latest add @8bitcn/component-name"
command="pnpm dlx shadcn@latest add @8bitcn/component-name"
/>
</div>
Component Preview
Wrap component examples:
<ComponentPreview title="8-bit ComponentName component" name="component-name">
<ComponentName>Example</ComponentName>
</ComponentPreview>
Installation Section
## Installation
---
Sponsors
Details
- Repository
- github.com/theorcdev/8bitcn-ui
- Categories
- Frontend Development, Documentation
- First seen
- Jun 3, 2026