# Build with AI (/fr/docs/ai)

Your coding assistant (Claude, ChatGPT, Cursor, Copilot…) writes a better integration when it reads the right source. We give it to you in a format it understands.

<Cards>
  <Card icon={<Bot />} title="Agent Skill" href="#skill">
    The rules of a correct integration, ready to install in your agent.
  </Card>
  <Card icon={<Plug />} title="MCP server" href="#mcp">
    Your agent searches and reads these docs live.
  </Card>
  <Card icon={<FileCode2 />} title="llms.txt" href="#llmstxt">
    All the documentation as text, for any model.
  </Card>
  <Card icon={<Sparkles />} title="Copy for AI" href="#every-page">
    Every page in Markdown, one click away.
  </Card>
</Cards>

## Skill [#skill]

A Skill teaches your agent how to integrate Caibo Pay: discovery through capabilities, idempotency, amounts as strings, webhook signatures, asynchronous statuses, and the steps to collect and pay out.

<Tabs items={["Claude Code", "Other agents"]}>
<Tab value="Claude Code">

```bash
mkdir -p ~/.claude/skills/caibo-pay
curl -fsSL https://docs.caibopay.app/skills/caibo-pay/SKILL.md -o ~/.claude/skills/caibo-pay/SKILL.md
```

For a single project, save it to `.claude/skills/caibo-pay/SKILL.md` inside the repository. Your agent uses it when you work with Caibo Pay.

</Tab>
<Tab value="Other agents">

Download [`SKILL.md`](/skills/caibo-pay/SKILL.md) and add it to your agent's instructions: `AGENTS.md`, Cursor rules (`.cursor/rules`), or Copilot instructions.

</Tab>
</Tabs>

## MCP [#mcp]

The MCP server for these docs gives your agent tools to list, search, and read every guide and every endpoint, always up to date.

```txt
https://docs.caibopay.app/api/mcp
```

<Tabs items={["Claude Code", "Cursor", "Others"]}>
<Tab value="Claude Code">

```bash
claude mcp add --transport http caibo-pay-docs https://docs.caibopay.app/api/mcp
```

</Tab>
<Tab value="Cursor">

```json title=".cursor/mcp.json"
{
  "mcpServers": {
    "caibo-pay-docs": { "url": "https://docs.caibopay.app/api/mcp" }
  }
}
```

</Tab>
<Tab value="Others">

Any MCP client with HTTP transport (streamable HTTP): use the URL above.

</Tab>
</Tabs>

The MCP server only reads the documentation: it doesn't have your keys and doesn't call the API for you.

## llms.txt [#llmstxt]

| File | Contains |
| --- | --- |
| [`/llms.txt`](/llms.txt) | The index: every page with its description. |
| [`/llms-full.txt`](/llms-full.txt) | All the documentation in a single text file. |
| [`/openapi.json`](/openapi.json) | The full OpenAPI contract, for generating clients and for your agent. |

## Every page [#every-page]

At the top of every page you have **Copy for AI** (the page in Markdown) and **Open with AI** (opens it in ChatGPT, Claude, or Cursor with the question ready). You can also append `.md` to any URL:

```txt
https://docs.caibopay.app/docs/collect-one-payment.md
```

<Callout title="A good prompt to start with">
"Read https://docs.caibopay.app/llms-full.txt. Integrate Caibo Pay into my backend to collect an exact amount with PIX, with idempotency, webhook signature verification, and tests against sandbox."
</Callout>
