Agent Skill
The official Topaz Dex agent skill. Lets any AI agent quote, build, and reason about swaps, pools, gauges, bribes, veNFTs, and rewards on BNB Chain — safely and accurately. Read it from a URL, clone the full repo, or drop it into your agent's native skill system.
Quick Start
Pick the path that matches your runtime. All three point at the same canonical skill.
Best for browser & chat agents
If your agent can fetch URLs, give it this prompt:
Read the official Topaz Dex agent skill at
https://topazdex.com/skill.md and follow it
when working with Topaz Dex swaps, pools,
gauges, bribes, veNFTs, rewards, quotes,
routes, or integrations.Best for coding & CLI agents
Full package — references, examples, scripts, evals:
git clone https://github.com/topazdex/agent-skill.git <dest>
cd <dest>/scripts
cp .env.example .env
yarn install --immutable
yarn validate && yarn smokeAuto-detects your skills dir
Detects ~/.claude/skills, ~/.config/opencode/skills, or ~/.hermes/skills and installs there. Falls through to ~/.local/share/topaz-skill if none are found. Prints its chosen destination before cloning.
curl -fsSL https://raw.githubusercontent.com/topazdex/agent-skill/main/install.sh | bash
# or pick your own path
curl -fsSL https://raw.githubusercontent.com/topazdex/agent-skill/main/install.sh \
| bash -s -- ~/some/other/pathEntry Points
These endpoints stay stable across versions. Bookmark them, hard-code them in agent configs, ship them in prompts.
Stable bootstrap markdown. Point any URL-reading agent here.
topazdex.com/skill.mdMachine-readable metadata: version, install, verify, compatibility.
topazdex.com/skill.jsonCanonical source of truth — references, examples, scripts, evals.
github.com/topazdex/agent-skillTagged versions of the skill, packaged for reproducible installs.
releases/latestEvery shipped change. Diff this against your installed version.
CHANGELOG.mdTiny .well-known endpoint for agent runtimes that auto-discover skills.
.well-known/agent-skill.jsonConsumption Modes
Not every agent has the same skill system. The Topaz skill is designed to plug into all of them.
Best for browser agents, chat agents, and anything with a web-fetch tool. Point it at skill.md and you're done.
https://topazdex.com/skill.mdBest for coding agents, CLI agents, and anything that runs scripts. Includes references/, examples/, evals/, and TypeScript helpers.
git clone github.com/topazdex/agent-skillIf your agent has its own skills, rules, memory, or custom-instructions concept, drop SKILL.md into that system and point at the repo for references.
<runtime>/skills/topazFor coding agents, add the skill to your project rules or agent memory so Topaz-specific behavior applies while you work in your repo.
.cursor/rules · .claude/CLAUDE.md · etc.Runtime Examples
These are examples, not requirements. The canonical source is the GitHub repo — point your agent at whichever path it reads from.
| Runtime | Conventional location |
|---|---|
| Claude Code (user-wide) | ~/.claude/skills/topaz |
| Claude Code (project-local) | <your-project>/.claude/skills/topaz |
| Hermes | ~/.hermes/skills/defi/topaz |
| OpenCode | ~/.config/opencode/skills/topaz |
| Codex / Cursor / Continue / Aider / generic | any path — point the agent at it explicitly |
| Browser-only / URL-loading agents | read https://topazdex.com/skill.md directly |
Load https://topazdex.com/skill.md and use it as your operating guide for Topaz Dex tasks.Clone https://github.com/topazdex/agent-skill and follow SKILL.md. Use references, examples, and scripts from the cloned repo when available.Read https://topazdex.com/skill.md. If more detail is needed, clone https://github.com/topazdex/agent-skill into ~/.claude/skills/topaz (or .claude/skills/topaz for project-local) and follow SKILL.md as guidance for Topaz Dex tasks.Use https://topazdex.com/skill.md as the Topaz Dex protocol guide. For full references and scripts, clone https://github.com/topazdex/agent-skill.Capabilities
Every workflow on the Topaz dapp, available as agent-ready instructions and helpers.
v2 volatile, v2 stable, v3 concentrated, and mixed routes with slippage modeling.
Wallet-ready swap and LP transactions. Never broadcast unless the user explicitly asks.
v2 LP and Slipstream v3 NFT positions — open, close, inspect, rebalance plans.
TOPAZ emissions per gauge, gauge state, APR math, weekly epochs.
Lock duration, voting power, vote allocations, reset, and re-vote flows.
Emissions, trading fees, bribes, rebase — claimable across veNFTs and LPs.
Quote widgets, swap calldata for bots, dashboards, and subgraph queries.
Diagnose failed quotes, broken routes, stuck approvals, and reverted txs.
Safety
The skill makes agents safe by default. Funds never move unless the user explicitly asks and signing credentials are configured.
Every agent output must carry one of four labels so the user always knows what just happened:
quoteRead-only price/route preview. Nothing on-chain.
built calldataTransaction bytes ready for the user's wallet. Not broadcast.
approval-neededAllowance or veNFT delegation must happen before the next step.
broadcast tx-hashOnly after the user explicitly authorizes and signing is configured.
Update & Verify
Compare versions against /skill.json, pull updates, and verify the full package boots cleanly.
If installed as a git repository:
git -C <dest> pull --ff-only
# or use the wrapper:
bash <dest>/update.shCheck whether an update is available without applying it:
cd <dest>
bash tools/check_update.sh
# exit 0 = up to date, 10 = update availableFull-repo install — node >= 20, yarn@4 (corepack enable):
cd <dest>/scripts
yarn install --immutable
yarn validate
yarn build
yarn test
yarn smokeyarn smoke is a live read against BSC mainnet — set BSC_RPC_URL in scripts/.env. No PRIVATE_KEY needed for reads.
Versioning
The repo validator enforces that SKILL.md frontmatter version matches skill.json at every release. Compare your local version against the manifest to decide whether to update.
Report Issues
If you find outdated protocol data, broken helpers, incorrect docs, or an agent behaving unsafely, open an issue. The skill is maintained alongside the protocol — every report ships back into the next release.
Open an issue