Agents
Give your agent the rules, the docs as Markdown, and live state.
The Quick Start prompt on Get Started sets up all three for your agent. Pick by what the agent needs.
| Use | When the agent |
|---|---|
| Skill | Writes code against Secondlayer and needs the rules it gets wrong without them |
| Connect an Agent | Needs live state: your subgraphs, webhooks, chain tips |
| Docs as Markdown | Needs a page, an endpoint or the whole site as text |
Every docs page is plain text for an agent, with no HTML to strip.
| URL | Holds |
|---|---|
/llms.txt | Shortest path, products, and a link to every page |
/llms-api.txt | Every endpoint as a Markdown URL |
/llms-full.txt | Every guide in one file |
/docs/<page>.md | Any docs page, as Markdown |
/docs/api-reference/<anchor>.md | One endpoint or object from the API reference |
Page twins end with a Notes for agents section: the rules an agent must follow on that page.
Edit on GitHub