Documentation Index
Fetch the complete documentation index at: https://docs.buttons.sh/llms.txt
Use this file to discover all available pages before exploring further.
skill.md is a machine-readable file that tells AI agents what your product can do, what inputs it needs, and what constraints apply. While llms.txt is a documentation index and MCP is a search API, skill.md is a capability summary — the agent loads it once and knows how to use Buttons.
Install the Buttons skill
Discovery endpoints
Mintlify hosts the skill at two standard endpoints:| Endpoint | URL |
|---|---|
| Agent-skills 0.2.0 (recommended) | https://buttons.mintlify.app/.well-known/agent-skills/index.json |
| Individual skill | https://buttons.mintlify.app/.well-known/agent-skills/buttons/SKILL.md |
| Legacy format | https://buttons.mintlify.app/.well-known/skills/index.json |
Manual installation
If you prefer to install the skill manually instead of usingnpx skills add:
- Claude Code
- Cursor / Windsurf
The Buttons skill is already in the repo at
.agents/skills/buttons/SKILL.md. Claude Code picks it up automatically when working in the Buttons repo.For other repos, copy the skill:What the skill contains
The Buttons skill is auto-generated from the Cobra command tree viago run ./internal/tools/skillgen. It follows the AgentSkills specification and includes:
- YAML frontmatter — name, description, license, compatibility, metadata
- Quick reference — copy-paste examples for create, press, list, history, delete
- Full command reference — every command and subcommand with flags table
- JSON output contract — success/error shapes and all error codes
- Argument types — string, int, bool with env var and template injection rules
- Button sources — code, HTTP, file, agent with runtime details
- Common patterns — lifecycle, agent context, local dev server examples
- Storage layout —
~/.buttons/directory structure
Keeping the skill current
The skill auto-updates through two mechanisms:- In the repo — the docs-sync workflow regenerates
SKILL.mdwhenever CLI code changes on main and opens a PR with updates - On Mintlify — the hosted skill file updates whenever the docs deploy
cmd/*.go, and the skill updates automatically.
skill.md vs llms.txt vs MCP
| skill.md | llms.txt | MCP server | |
|---|---|---|---|
| What it is | Capability summary | Documentation index | Real-time search API |
| Agent loads it | Once at session start | Once for discovery | On demand per query |
| Best for | Teaching an agent how to use Buttons | RAG pipelines, embedding | Deep questions, page lookup |
| Size | ~300 lines | ~50 lines (links only) | N/A (API) |
| Install | npx skills add <url> | Fetch the URL | claude mcp add |