/skill.md that allows AI agents to discover wallet capabilities automatically — without hardcoded API knowledge.
What is /skill.md?
The /skill.md endpoint serves a markdown file that describes Knot’s full API surface. An AI agent can fetch this file at startup to understand:
- Available endpoints and what they do
- Required parameters and their types
- Authentication methods
- Response formats and field definitions
- Error handling guidelines
Fetching the skill spec
- A quick start guide
- Authentication instructions
- Full endpoint documentation with request and response examples
- Error handling guidelines
How an agent uses skill discovery
1
Fetch on startup
The agent retrieves
/skill.md when it initializes, before making any API calls.2
Parse capabilities
The agent processes the markdown to understand which actions are available and what parameters they require.
3
Construct calls
The agent builds valid API calls based on the specification, using correct endpoints and parameters.
4
Stay updated
When Knot adds new features or endpoints, the agent discovers them automatically on the next startup or refresh.
Integration example
Forward compatibility
Using/skill.md for discovery makes your agent forward-compatible with future Knot updates:
Best practices
Fetch at startup
Load
skill.md when your agent initializes so it understands available actions before it needs them.Cache locally
Cache the skill file in memory or on disk to avoid fetching it on every request.
Refresh periodically
Re-fetch
skill.md daily or weekly to pick up new endpoints and updated documentation.Parse systematically
Build a structured parser to extract endpoints, parameters, and examples from the markdown.