Most modern AI Agents support the use of skills, which are small knowledge bases that explain how to use a particular API or tool. By providing the near-intents skill to your agent, you can enable it to build cross-chain swap applications using the 1Click Swap API.

Using the skill

1

Install the skill

Install the near-intents skill:
2

Ask your agent to build a swap app

Your agent should automatically pick up the near-intents skill, otherwise you can explicitly ask the agent to read the SKILL.md file to learn how to use NEAR Intents.

Agent API skill

The near-intents-agent-api skill teaches your agent how to build on the Agent API: owner-signed policies, grants, executions and status handling, in TypeScript, Python, Rust, Go or plain HTTP.
The skill also ships scripts/check_api.sh, a read-only smoke test for your partner API key.