Jamdesk Documentation logo

Claude Code

Richten Sie Claude Code ein, um Jamdesk-Dokumentation zu schreiben und zu pflegen. Enthält CLAUDE.md-Vorlage und MCP-Server-Verbindung.

Claude Code ist Anthropics CLI für Claude. Es liest Ihr gesamtes Projektverzeichnis. Aus den Dateien übernimmt es Ihren Schreibstil und Ihr docs.json-Layout. Die Seiten, die es schreibt, fügen sich nahtlos in Ihre bestehenden ein.

Wir pflegen die Dokumentation von Jamdesk mit diesem Setup. Die CLAUDE.md-Vorlage unten ist nah an der, die wir selbst verwenden. Passen Sie sie für Ihr Projekt an. Wir empfehlen, die Regeln zur Seitenstruktur, die Konvention für die „Wie geht es weiter?“-Karten und die strikte Komponentenliste beizubehalten.

Claude Code ist bei interaktiver Iteration besser als Codex. Sie entwerfen eine Seite, lesen das Ergebnis, widersprechen einem Abschnitt und lassen Claude ihn in derselben Sitzung neu schreiben. Dabei behält es die gesamte Projektwelt im Blick. Für unbeaufsichtigte Batch-Jobs über mehrere Dateien hinweg ist Codex die bessere Wahl.

Schnelle Einrichtung

1
Claude Code installieren

Installieren Sie es von claude.ai/code.

2
Ihre Dokumentation per MCP verbinden

Fügen Sie Ihre Dokumentation als MCP-Datenquelle hinzu:

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

Ersetzen Sie your-project durch Ihre Jamdesk-Subdomain. Wenn Sie eine eigene Domain aktiv haben, verwenden Sie stattdessen diese: https://docs.acme.com/_mcp. Claude kann nun Ihre veröffentlichte Dokumentation durchsuchen und lesen. Details finden Sie unter MCP-Server.

3
Eine CLAUDE.md-Datei hinzufügen

Erstellen Sie eine CLAUDE.md im Stammverzeichnis Ihres Dokumentationsprojekts. So erhält Claude einen einheitlichen Kontext zu Ihren Dokumentationsstandards, verfügbaren Komponenten und Ihrem Schreibstil.

CLAUDE.md-Vorlage

Fügen Sie diese Datei im Stammverzeichnis Ihres Jamdesk-Dokumentationsprojekts hinzu:

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>

The opening paragraph comes right after frontmatter, with no heading before it. "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 page solve? Show that first, then walk through how to use the feature.

Use progressive disclosure: a simple example near the top, advanced options tucked into Accordions or later sections.

Active voice. "Run this command", not "This command should be run".

One idea per paragraph. If you reach for "also" or "additionally", start a new paragraph instead.

Code examples must actually work. Never show partial code or pseudocode. Every block should be complete and copy-pasteable.

Write like a person. Skip filler like "It's important to note that", "This allows you to", or "seamlessly". Drop the hedging ("you might want to consider"). Read your output back, and 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>`, or `<Section>`. They 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 you're 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).

Fügen Sie Ihren Produktnamen, API-Konventionen, Terminologie und alle inhaltlichen Richtlinien hinzu, die für Ihre Dokumentation gelten.

Beispiel-Prompts

Kurze Prompts funktionieren besser als lange, sobald CLAUDE.md und die MCP-Verbindung eingerichtet sind. Claude kennt den Projektkontext bereits.

Ein üblicher Einstieg: „Schreibe eine Anleitung für den Einstieg in [Funktion]“. Claude hat deine anderen Seiten bereits gelesen. Es übernimmt deinen Ton, ohne dass du ihn beschreiben musst. Bitte es außerdem, eine Seite mit dem Rest der Website abzugleichen, um Abweichungen zu erkennen. Claude findet oft kleine Inkonsistenzen (eine Komponente wird hier anders verwendet als dort, ein Tonwechsel zwischen Abschnitten), die Autorinnen und Autoren bei der Selbstprüfung übersehen.

Auch Aufräum-Prompts funktionieren gut. „Wandle diese README in Dokumentationsseiten um“ macht aus einer Datei eine strukturierte Seitenfolge mit Navigation. Zeige auf eine bestehende Seite und bitte um ein FAQ auf Basis von Accordions. Es zieht Issues aus deinem Repository heran. Diese sind näher an den Fragen der Leser als alles, was du aus einem leeren Dokument heraus schreiben würdest.

Der Skill /update-jamdesk

Installiere die /update-jamdesk-Skill, um die Dokumentation bei Codeänderungen automatisch zu aktualisieren:

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

Führe /update-jamdesk aus, nachdem du eine nutzerseitige Funktion implementiert hast. Claude findet die Dokumentationsseiten, die erstellt oder bearbeitet werden müssen. Den vollständigen Leitfaden findest du unter Automatische Aktualisierungen.

What's Next?

Claude Code-Plugin

Installiere das Jamdesk-Plugin für Komponenten-, Konfigurations- und CLI-Referenz

Cursor

Cursor-Regeldatei und Kürzel für die Inline-Bearbeitung

MCP-Server

Endpunkt-Referenz, Ratenlimits und curl-Beispiele