Claude Code

Set up Claude Code to write and maintain Jamdesk documentation. Includes CLAUDE.md template and MCP server connection.

Claude Code is Anthropic's CLI for Claude. It reads your full project directory, so it can match your existing writing style, check docs.json navigation, and generate pages that fit your site.

Quick Setup

1
Install Claude Code

Install from claude.ai/code.

2
Connect your docs via MCP

Add your documentation as an MCP data source:

claude mcp add --transport http my-docs https://your-project.jamdesk.app/_mcp

Replace your-project with your Jamdesk subdomain. Claude can now search and read your published docs directly. See MCP Server for details.

3
Add a CLAUDE.md file

Create a CLAUDE.md in your docs project root. This gives Claude consistent context about your documentation standards, available components, and writing style.

CLAUDE.md Template

Add this file to the root of your Jamdesk docs project:

CLAUDE.md
# Documentation Project

Jamdesk docs project. Pages are MDX (Markdown + React components). Config is in `docs.json`.

## How This Project Works

- `docs.json` — Navigation structure, theme, colors, branding. Pages must be listed here to appear in the sidebar.
- `*.mdx` files — Documentation pages. Every page needs `title` and `description` frontmatter.
- `images/` — Static assets. Always use `.webp` format.
- `snippets/` — Reusable MDX fragments. Import with `<Snippet file="name.mdx" />`.

## Page Template

Every page follows this structure:

    ---
    title: Clear, Specific Title
    description: One sentence. Used in search results and social previews.
    ---

    Opening paragraph — what this page covers and who it's for. No heading needed.

    ## First Section

    Content. Use components where they help, not for decoration.

    ## What's Next?

    <Columns cols={2}>
      <Card title="Related Page" icon="arrow-right" href="/path">

        Why the reader would go here next

</Card>
</Columns>

Key points:
- The opening paragraph comes right after frontmatter with no heading
- "What's Next?" is always the last section
- Card descriptions explain why, not what ("Set up search for your docs" not "Search configuration page")

## Writing Style

- **Start with why** — What problem does this solve? Then how to use it.
- **Progressive disclosure** — Simple example first. Advanced options in Accordions or later sections.
- **Active voice** — "Run this command" not "This command should be run"
- **One idea per paragraph** — If you need "also" or "additionally", start a new paragraph.
- **Code examples must work** — Never show a partial or pseudocode example. Every code block should be copy-pasteable.
- **Write like a person** — No filler ("It's important to note that", "This allows you to", "seamlessly"). No hedging ("you might want to consider"). Read your output back — if it sounds like a chatbot wrote it, rewrite it shorter and more direct.

## Components

Layout: Card, Columns, Tabs, Tab, Accordion, AccordionGroup, Steps, Step, Expandable, Frame, CodeGroup
Callouts: Note, Info, Warning, Tip, Check, Danger

When to use each:

| Component | Use for | Don't use for |
|-----------|---------|---------------|
| Tabs | Mutually exclusive choices (npm/yarn, languages) | Sequential content |
| Steps | Ordered procedures | Unordered lists of features |
| Accordion | Optional/advanced detail | Core content readers need |
| Card (in Columns) | Navigation links, feature grids | Inline content |
| Note/Tip/Warning | Important context the reader might miss | Every other paragraph |

Cards always go inside Columns:

    <Columns cols={2}>
      <Card title="Page Title" icon="icon-name" href="/path">

        Brief description

</Card>
</Columns>

Icons are Font Awesome Light names: "rocket", "code", "terminal", "book-open", "gear"

## Adding Pages

1. Create the `.mdx` file
2. Add the page path (no `.mdx` extension) to `docs.json` in the right navigation group
3. Link to it from related pages via "What's Next?" cards

**If you skip step 2, the page won't show up in the sidebar.** Read `docs.json` before creating pages so you understand the navigation structure.

## Before You're Done

Check your work:
- [ ] Frontmatter has both `title` and `description`
- [ ] Opening paragraph exists (no heading before it)
- [ ] Page ends with "What's Next?" cards
- [ ] New pages are added to `docs.json` navigation
- [ ] Code examples are complete and copy-pasteable
- [ ] No invented components — only the ones listed above
- [ ] No raw HTML tags — use MDX components
- [ ] Images use `.webp` format

## Common Mistakes

- **Inventing components** like `<CodeBlock>`, `<Alert>`, `<Section>` — these don't exist. Use the components listed above.
- **Wrapping code in components** — Code blocks are standard Markdown triple backticks. Don't wrap them in `<CodeGroup>` unless showing multiple language alternatives.
- **Skipping description frontmatter** — Every page needs it. It appears in search results and link previews.
- **Using `<Card>` without `<Columns>`** — Cards must be inside a `<Columns>` wrapper.
- **Writing "click here" links** — Use descriptive link text: [Migration guide](/setup/migration) not [click here](/setup/migration).

Customize the template for your project. Add your product name, API conventions, terminology, and any content guidelines unique to your docs.

Sample Prompts

Once Claude Code has your CLAUDE.md and MCP connection, try these:

  • "Write a getting started guide for [feature]" — Claude reads your existing pages for style consistency
  • "Review this page for consistency with our other docs" — checks tone, component usage, and structure
  • "Convert this README into documentation pages" — transforms a single file into multiple structured pages
  • "Add a troubleshooting section to [page]" — generates Accordion-based FAQ from common issues

The /update-jamdesk Skill

For automated documentation updates when code changes, install the /update-jamdesk skill:

npx skills add jamdesk/skills --skill update-jamdesk

After implementing a user-facing feature, run /update-jamdesk and Claude will figure out which doc pages need creating or editing. See Automated Updates for the full guide.

What's Next?

Cursor

Cursor rules file and inline editing shortcuts

MCP Server

Endpoint reference, rate limits, and curl examples