# Docs for your AI

> Hand these docs to a coding agent: every page as Markdown, one index, one file with everything, and the server’s own description of itself.

Source: https://slaiky.xyz/docs/ai

These docs have two readers: you, and the coding agent working for you. Everything here is also plain Markdown, so the agent reads the same words, samples and field names you do.

## Every page is Markdown

Add `.md` to a page’s address: [`/docs/web-api`](/docs/web-api) becomes [`/docs/web-api.md`](/docs/web-api.md). The home is [`/docs.md`](/docs.md). Each twin has the page’s title, a one-line summary, its address, and the body.

Code keeps who speaks: a line in italics above each block says *Slaiky → your app*, *your app → Slaiky* or *you run*, with the file name when there is one. The interactive parts become text.

## One index, one file

| Address | What it holds | Use it when |
| --- | --- | --- |
| [`https://slaiky.xyz/docs/llms.txt`](/docs/llms.txt) | One line per page: its title, its `.md` address and what it is for, grouped like the sidebar, then every Web API method. | The agent can fetch pages and should pick the ones it needs. |
| [`https://slaiky.xyz/docs/llms-full.txt`](/docs/llms-full.txt) | Every page, in reading order, in one file. | The agent can’t fetch, or you paste the docs into a chat. |

## From any page

Each page has four buttons:

- **Copy page for AI** copies the page’s Markdown, ready to paste.
- **Markdown** opens the `.md` twin.
- **Ask Claude** and **Ask ChatGPT** open a new chat that asks it to read this page and help you build with it.

## A prompt to paste

Give your coding agent the index and a goal. This one keeps it to what the docs say:

*you run*

```text
Read https://slaiky.xyz/docs/llms.txt, then the pages you need for this task.
Build me a Slaiky bot that posts our deploy status in #launch and
answers questions about it in the thread.
- Use only the methods, events, scopes and fields the docs name.
  The reference pages come from the server's own code.
- No SDK: plain HTTP and WebSocket (Socket Mode).
- Read the token from SLAIKY_BOT_TOKEN; never write it in code.
- Acknowledge every envelope before doing the work.
- When an answer has "ok": false, report error.code and error.message.
```

## The server describes itself

The app also serves its own catalog, always for the version it runs:

| Address | What it holds |
| --- | --- |
| `https://app.slaiky.xyz/llms.txt` | How a model connects to this server: the MCP address and sign-in, every tool, every Web API method, Socket Mode in short. |
| `https://app.slaiky.xyz/llms-full.txt` | The same, plus the apps platform, each method’s and each MCP tool’s input as JSON Schema, and the main REST routes. |
| `https://app.slaiky.xyz/api/openapi.json` | OpenAPI 3.1: every REST route, the bot Web API and webhooks, with request schemas. For code generators and API explorers. |
| `https://app.slaiky.xyz/api/ai` | The addresses above as JSON, for a client that looks them up. |

The docs teach, with tested samples. The server’s files list what it accepts right now.

## Let it see your workspace too

Connect the same agent to Slaiky’s MCP server and it can read your channels while it builds. In Claude Code:

*you run*

```sh
claude mcp add --transport http slaiky https://app.slaiky.xyz/api/mcp
```

Every client, and what it may do once connected: [Connect your AI](/docs/mcp).
