adobe/spectrum-web-components/storybook-mdx-conversion
Claude Code and agent skill by adobe/spectrum-web-components
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Converts a standalone Markdown document to Storybook MDX by adding the imports and Meta tag and converting HTML comments to JSX comments, without altering any other content. Use when asked to convert a .md file to .mdx by hand, outside the automated contributor-docs pipeline.
Install
npx vskill@latest install adobe/spectrum-web-components/storybook-mdx-conversionSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as adobe/spectrum-web-components/storybook-mdx-conversion.
Storybook MDX conversion
Converts markdown files to MDX format compatible with Storybook rendering.
Relationship to `generate-contributor-docs.mjs`: the entireCONTRIBUTOR-DOCS/tree is already converted to Storybook.mdxautomatically byyarn generate:contributor-docs(gen2/packages/swc/.storybook/scripts/generate-contributor-docs.mjs), which also runs before everyyarn storybook/yarn storybook:build. That script's output is regenerated wholesale and not meant to be hand-edited. This skill is for everything that script doesn't cover: converting a standalone.mdfile to.mdxby hand (e.g. a one-off doc outsideCONTRIBUTOR-DOCS/, or manual spot-conversion during authoring) using the same conventions.
When to apply
- Converting a standalone
.mdfile to.mdxby hand, outside the automatedgenerate-contributor-docs.mjspipeline - Asked explicitly, for example "convert this doc to MDX"
Conversion steps
1. File extension and imports
- Change file extension from
.mdto.mdx - Add Storybook imports at the top of the file:
- Add a blank line after imports
2. Meta tag
- Add a
<Meta title="Your Title Here" />tag after the imports - The title should match the document's main heading
- Add a blank line after the Meta tag
3. Convert HTML comments to JSX comments
Replace HTML comments with JSX-style comments:
Before (Markdown):
After (MDX):
4. Preserve all other content
- Keep all markdown syntax as-is (headings, lists, links, code blocks, etc.)
- Keep all
<details>and<summary>HTML elements unchanged - Keep all list formatting and indentation unchanged
- Preserve all relative link paths (e.g.,
./01_contributor-guides/README.md) - Do not modify any content within
<details>blocks or navigation lists
Example transformation
Before (README.md):
After (README.mdx):
Critical rules
- Only add imports and Meta tag - Do not modify any other structural elements
- Preserve exact formatting - Keep all whitespace, indentation, and line breaks
- Convert ALL HTML comments - Every
<!-- comment -->must become{/* comment */} - Keep markdown links - Do not convert
.mdlinks to.mdx(Storybook may need the original paths) - Blank lines matter - Maintain blank line after imports and after Meta tag
Common mistakes to avoid
❌ Don't change the document's heading structure ❌ Don't modify navigation lists or TOC content ❌ Don't convert markdown to JSX (keep lists as markdown lists) ❌ Don't add extra formatting or styling ❌ Don't forget to convert ALL HTML comments to JSX comments
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/storybook-mdx-conversion/SKILL.md
Popularity
- Repository stars
- 1,541
- Repository forks
- 264
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adobe/spectrum-web-components/storybook-mdx-conversion)