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:
The agent-skills endpoint includes SHA256 integrity verification so tools can verify the skill hasn’t been tampered with.
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, and prompt buttons with runtime details
- Common patterns — lifecycle, prompt 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.