Jamdesk Documentation logo

Cursor

Configura Cursor IDE per scrivere la documentazione Jamdesk con regole di formattazione MDX, autocompletamento dei componenti e accesso al server MCP per il contesto dei documenti in tempo reale.

Cursor è un editor di codice basato su AI, costruito su VS Code. La sua modifica inline (Cmd+K) e la chat (Cmd+L) funzionano bene per la scrittura iterativa in MDX: selezioni un paragrafo, descrivi cosa vuoi e Cursor lo riscrive sul posto.

Configurazione rapida

1
Apri il progetto della documentazione

Apri la directory della documentazione Jamdesk in Cursor.

2
Aggiungi le regole di Cursor

Crea .cursor/rules/jamdesk-docs.mdc con i tuoi standard di documentazione. L'AI di Cursor segue le convenzioni contenute al suo interno.

3
Collega il server MCP

Aggiungi l'endpoint MCP della tua documentazione a .cursor/mcp.json. Cursor potrà quindi cercare nella documentazione pubblicata.

Modello delle regole di Cursor

Crea .cursor/rules/jamdesk-docs.mdc nella radice del progetto:

.cursor/rules/jamdesk-docs.mdc
---
description: Rules for writing Jamdesk documentation in MDX
globs: "**/*.mdx"
---

# Jamdesk MDX Rules

## Page Structure

Every page follows this pattern — no exceptions:

1. Frontmatter with `title` and `description`
2. Opening paragraph (no heading before it)
3. Content sections with ## headings
4. "What's Next?" section at the end with Card links inside Columns

## Components

Only use these — do not invent others:

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

| Use | For |
|-----|-----|
| Tabs | Mutually exclusive choices (npm/yarn, OS variants) |
| Steps | Ordered procedures the reader follows |
| Accordion | Optional detail that would clutter the page |
| Card + Columns | Navigation links and feature grids |
| Note/Tip/Warning | Important context — use sparingly |

Cards always go inside Columns: `<Columns cols={2}><Card ... /></Columns>`
Icons are Font Awesome Light names: "rocket", "code", "terminal", "book-open"

## Style

- Active voice: "Run this command" not "This command should be run"
- Start with why, then how
- One idea per paragraph
- Code examples must be complete and copy-pasteable
- Write like a person — no filler ("It's important to note"), no hedging ("you might want to consider"). If it sounds like a chatbot, rewrite it shorter.

## Common Mistakes

- `<CodeBlock>`, `<Alert>`, `<Section>` don't exist — use the components listed above
- `<Card>` without `<Columns>` wrapper won't render correctly
- Missing `description` in frontmatter breaks search and link previews
- Raw HTML tags should be MDX components instead

## New Pages

When creating a page, add it to `docs.json` navigation. Without this, the page won't appear in the sidebar. Read `docs.json` first to understand the group structure.

Configurazione MCP

Crea .cursor/mcp.json per collegare la tua documentazione pubblicata:

.cursor/mcp.json
{
  "mcpServers": {
    "my-docs": {
      "url": "https://your-project.jamdesk.app/_mcp"
    }
  }
}

Sostituisci your-project con il tuo sottodominio Jamdesk. Se hai un dominio personalizzato attivo, usalo invece: "url": "https://docs.acme.com/_mcp". Vedi Server MCP per i dettagli sugli endpoint.

Flussi di lavoro

Seleziona del testo in un file MDX e premi Cmd+K per descrivere la modifica desiderata. Funziona bene per:

  • Riscrivere una sezione per chiarezza
  • Aggiungere un esempio di codice
  • Convertire il testo in un componente (ad esempio, racchiudere i passaggi in <Steps>)

Skill /update-jamdesk

Installa la skill /update-jamdesk per aggiornare automaticamente la documentazione quando il codice cambia:

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

Vedi Aggiornamenti automatici per la guida completa.

Prossimi passaggi

Claude Code

Modello CLAUDE.md e flussi di lavoro con contesto dell'intero progetto

Scrivere con l'AI

Prompt, checklist di revisione ed errori comuni da evitare