DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to generate a React component of a figure for a docs site with Anatomy

Create a React or Next.js component version of an explainer figure for a documentation site.

Short answer: Run npx skills add wheresryan22/anatomy to install the skill into the current project; then run /anatomy and ask for a React component plus a static HTML preview for your docs site; Place the generated component in your Next.js project and import it into the page. All steps.

  • Content
  • Intermediate
  • 45 minutes
  • From the README
  • Claude Code
  • Codex

Who it is forA developer maintaining a Next.js documentation site who wants a figure built as a component.

The problemPasting an HTML file into a component-based docs site breaks the page structure and styling.

The outcomeA React component and a static HTML preview of the same figure, ready to import into a docs project.

What you need first

  • Node.js (the README says version 1.7.1 of the skills CLI asks for 22.20 or later)
  • Claude Code, Codex, or another supported agent with the skill installed
  • Headless Chrome, which the skill uses to check its own figures
  • No API keys and no npm install are needed, since the kit uses only Node's built-in modules

Steps

  1. Run npx skills add wheresryan22/anatomy to install the skill into the current project.
  2. Run /anatomy and ask for a React component plus a static HTML preview for your docs site.
  3. Place the generated component in your Next.js project and import it into the page.
  4. Run node scripts/capture.mjs page.html --out shots/page.png on the HTML preview to check the look.

Prompt for your agent

Using the skill in wheresryan22/anatomy, create a React component of <concept> for a Next.js docs page, with a static HTML preview. Expected output: one component file and one HTML preview. Verify that the component imports cleanly into your existing project before committing it.

Caveat. The README lists React and Next.js components as an output, but it does not describe how they plug into a specific docs framework, so test the import in your own project.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for wheresryan22/anatomy and "Generate a React component of a figure for a docs site"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer