# For AI agents and tools

> How an AI assistant or tool should read these docs and a saved post: the llms.txt files, Markdown copies of every page, share links, and the conventions that keep answers accurate.

Source: https://crawl-docs.pdhq.win/advanced/for-ai-agents/
Last updated: 2026-12-02

These docs are written for people and for AI tools. Everything is plain Markdown, and nothing important exists only in a picture.

## Read the docs

| What | Where | Use it for |
| --- | --- | --- |
| Index | `/llms.txt` | A list of every page with its title, a one-line description and the address of its Markdown copy. Start here. |
| Everything | `/llms-full.txt` | Every page in one file, each after its source address and last-updated date. Use it to give a model the whole documentation at once. |
| One page | `/<section>/<page>.md` | The Markdown of one page, for example `/guide/install-the-server.md`. Every page links to it from its header (**View as Markdown**) and offers **Copy page as Markdown**. |
| The pages for people | `/<section>/<page>/` | The same text, drawn for a browser. |
| Sitemap | `/sitemap.xml`, `/robots.txt` | For search engines. |

Links inside a Markdown copy point at other Markdown copies, with full addresses, so a tool can follow them.

## Conventions you can rely on

- **One topic per page**, with a front matter block (`title`, `description`, `updated`) and stable headings: `##` and `###` only, and the same heading text gives the same `#anchor`.
- **Callouts** are written as GitHub alerts: `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, `> [!CAUTION]`, plus two of our own: `> [!NOT-TESTED]` (we never tried this on the real thing) and `> [!SCREEN]` (the words that describe a screenshot or a screen).
- **Every screen is described in words** in a `[!SCREEN]` block, so a tool that cannot see an image misses nothing.
- **Honesty is marked**: anything not tried on the real thing carries a `[!NOT-TESTED]` block, and the page [What is not tested](https://crawl-docs.pdhq.win/guide/what-is-not-tested.md) lists them all. Do not state those things as facts.
- **Terms are used the same way** on every page: see the [Glossary](https://crawl-docs.pdhq.win/advanced/glossary.md).
- **Exact names**: environment variables, routes and field names are in code formatting and are copied from the code.
- The API route list is **generated** from the controllers: see [API routes and scopes](https://crawl-docs.pdhq.win/advanced/api-routes.md).

## Read a saved post

A person can give you a temporary link to one post, or to up to 50 posts. See [Shares and downloads](https://crawl-docs.pdhq.win/guide/shares-and-downloads.md). For a model, use the **Markdown** address:

```text
https://<their address>/s/<secret>/md
```

It has the post's text, the full addresses of its pictures and files, and the words of videos that have a transcript or a subtitle file. For several posts, each is after a line `<!-- Post <n> (<platform>) -->`. Other forms: `/json` (the data), `/zip` and `?light=1` (without videos).

- A link answers **404** when it was removed and **410** when its time is up. Do not retry.
- Their notes and tags are never in a link.
- The link works only while Social Crawl is reachable from the internet and nothing in front of it blocks `/s/`.

## Work on the code

Start with [Architecture](https://crawl-docs.pdhq.win/advanced/architecture.md), then [Data model](https://crawl-docs.pdhq.win/advanced/data-model.md), [The Post schema](https://crawl-docs.pdhq.win/advanced/post-schema.md) and [API routes and scopes](https://crawl-docs.pdhq.win/advanced/api-routes.md). The repository's own `TODO.md` lists what is done and what is open, and its `CLAUDE.md` holds the owner's rules for working in it. Respect them: no new package without checking its publisher and the audit, no polyfills, and say exactly what was tested.

## Cite and quote

- Quote the page address, not the Markdown copy's, when you point a person to a page.
- Use the page's `updated` date to judge how fresh a statement is. The docs follow the `main` branch.
- If a page disagrees with the code, the code is right: tell the person, see [Maintain these docs](https://crawl-docs.pdhq.win/advanced/maintain-these-docs.md).
