> ## 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 Claude Code

> Add skills to Claude Code so it reasons with the right context.

Claude Code reads project context automatically. With skillmd you can install a skill in
one command, or let Claude generate and fetch skills itself over MCP.

## Install a skill

The CLI writes the skill into Claude Code's rules location for you:

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

Run it from your project root. See [CLI commands](/docs/cli/commands) for `list`,
`sync`, and `watch`.

## Let Claude do it (MCP)

Connect the [MCP server](/docs/integrations/mcp) and Claude Code can call `generate_skill`
and `get_skill` on its own — no leaving the editor.

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

<Steps>
  <Step title="Add the config">
    Drop the snippet above into your project's `.mcp.json` (or your Claude Code MCP
    settings).
  </Step>

  <Step title="Restart Claude Code">
    The `skillmd` tools appear in the tool list.
  </Step>

  <Step title="Ask for context">
    Try: *"Generate a skill for the Resend API and use it to wire up email."*
  </Step>
</Steps>

## Do it manually

Prefer full control? Place the file where Claude Code looks for project context and it
will be picked up:

```bash theme={null}
mv ~/Downloads/skill.md ./skill.md
```

<Tip>
  Keep skills in version control so your whole team — and every Claude Code session —
  shares the same context.
</Tip>
