> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getskillmd.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use with Cursor

> Install skills into Cursor's rules, or generate them over MCP.

Cursor reads rules from your project. skillmd installs skills into that location for you,
or plugs in over MCP so Cursor's agent can pull context on demand.

## Install a skill

```bash theme={null}
npx @getskillmd/cli add <skill>
```

The CLI detects Cursor and writes the skill into its rules. See
[CLI commands](/docs/cli/commands) for the full reference.

## Connect over MCP

Add the [MCP server](/docs/integrations/mcp) so Cursor can generate and fetch skills
itself:

```json ~/.cursor/mcp.json theme={null}
{
  "mcpServers": {
    "skillmd": {
      "command": "npx",
      "args": ["-y", "@getskillmd/mcp"]
    }
  }
}
```

<Steps>
  <Step title="Open MCP settings">
    Add the snippet to your Cursor MCP configuration.
  </Step>

  <Step title="Enable the server">
    Toggle `skillmd` on in Cursor's MCP panel.
  </Step>

  <Step title="Use it inline">
    Ask Cursor to generate a skill for a library, then build against it.
  </Step>
</Steps>

<Tip>
  Editors evolve their rules format often — the CLI tracks where each editor expects
  context, so `skillmd add` keeps working across Cursor, Windsurf, Antigravity, and VS Code.
</Tip>
