AB spandex-trader
Trade tokens on Base using spanDEX, the open-source meta-aggregator. Supports market swaps (races 6 providers for best price with automatic fallback), limit orders via KyberSwap, balance checks, and provider comparison. Works with all token types including Clanker V4, Flaunch DERC20, and standard ERC-20. Use when the user wants to swap tokens, place limit orders, check wallet balances, or execute trades on Base chain. Triggers on "swap", "buy", "sell", "trade", "limit order", "spanDEX", "best price", "meta-aggregator".
As a process B 67/100 · Nearly there — weak spots: result and completion, running it twice, progress reporting
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The purpose itself is risky: wallets, browser password stores, offensive security. Even an honest implementation gives the agent access to things that cost money.
Explain in the description why the access is needed and how it is limited; add tests that show refusals on dangerous requests.
How to improve
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 6
✓ No critical or high findings
Medium and low: 6
-
medium Risky intent
intent-wallet-secretsSKILL.md:25Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target| `SPANDEX_PRIVATE_KEY` | Wallet private key (hex). OR use `SPANDEX_KEY_PATH` for file-based key |
-
low Secrets in code
secret-high-entropy-tokenreferences/INTEGRATION.md:47High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **Contract (Base):** `0xca…f6C`
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/spandex_trade.mjs:62High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)'USDC': { address: '0x83…913', decimals: 6 },quoted -
low Secrets in code
secret-high-entropy-tokenscripts/spandex_trade.mjs:63High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)'USDT': { address: '0xfd…bb2', decimals: 6 },quoted -
low Secrets in code
secret-high-entropy-tokenscripts/spandex_trade.mjs:64High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)'DAI': { address: '0x50…0Cb', decimals: 18 },quoted -
low Secrets in code
secret-high-entropy-tokenscripts/spandex_trade.mjs:517High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const KYBER_LO_CONTRACT = '0xca…f6C'; // Base
quoted
Files scanned: 3. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 67/100
- 0Result and completion. Does not say what the result is
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 1 mutating operations with no state check
- 60Tools and files. Uses tools (web) that frontmatter does not declare
- 70When it triggers. States when to use, but not when not to
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Steps. 12 steps
- 100Failures and branches. 2 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 882 tokens
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -221 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +5Description quotes 4 example trigger phrases
- +3Description length 524: enough signal without eating the budget
- +4Structure: 7 headings
- +3Step-by-step instructions: 12 items
- +4Has examples (2 code blocks)
- +4Reference files are cited in the instructions (1 of 1)
- +3All 1 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 94.