BC gate-dex-trade
Gate DEX swap EXECUTION skill. For on-chain token exchange transactions that MODIFY blockchain state: swap, buy, sell, exchange, convert tokens, cross-chain bridge. Every operation here results in an on-chain transaction requiring signing. This skill EXECUTES trades — it does not provide read-only data lookups or manage wallet accounts.
As a process C 61/100 · Has gaps — weak spots: result and completion, inputs and preconditions, 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
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- 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 · 17
✓ No critical or high findings
Medium and low: 17
-
medium Risky intent
intent-wallet-secretsreferences/openapi.md:1032Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target2. **Ask user to provide file path**: Like keystore file, `PRIVATE_KEY` variable in .env file
-
low Secrets in code
secret-high-entropy-tokenreferences/mcp.md:133High-entropy token-like string (may be an id, hash or a credential) (placeholder value)"SOL": "5xAb…f12"
placeholder -
low Secrets in code
secret-high-entropy-tokenreferences/mcp.md:211High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)token_in: "0xdA…ec7",
quoted -
low Risky intent
intent-offensive-securityreferences/mcp.md:304Offensive-security / dual-use content (legitimate for authorised testing; review intended use)Staged swap splits execution into quote, prepare, check-in preview, local `tx-checkin` binary, sign, and submit. This avoids server-side hidden check-in logic and keeps Solana signable payload generat
-
low Secrets in code
secret-high-entropy-tokenreferences/openapi.md:273High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded){"action":"trade.swap.quote","params":{"chain_id":501,"token_in":"-","token_out":"EPjF…t1v","amount_in":"0.001","slippage":0.05,"slippage_type":1,"user_wallet":"2ycquoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi.md:293High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"token_contract_address": "So11…112",
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi.md:301High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"token_contract_address": "EPjF…t1v",
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi.md:370High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded){"action":"trade.swap.approve_transaction","params":{"user_wallet":"0xBb…af8","approve_amount":"0.001","quote_id":"6e7b…eee"}}quoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi.md:381High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"approve_address": "0x45…4E8",
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi/_shared.md:57High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)python3 gate-dex-trade/scripts/gate-api-call.py "trade.swap.quote" '{"chain_id":1,"token_in":"-","token_out":"0xdA…ec7","amount_in":"0.1","slippage":0.03,"slippage_tyquoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi/build.md:22High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"0xdA…ec7" \
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/openapi/quote.md:27High-entropy token-like string (may be an id, hash or a credential)| USDT | 0xdA…ec7 | 0x55…955 | 0xFd…bb9 | — | Es9v…NYB |
-
low Secrets in code
secret-high-entropy-tokenreferences/openapi/quote.md:28High-entropy token-like string (may be an id, hash or a credential)| USDC | 0xA0…B48 | 0x8A…80d | 0xaf…831 | 0x83…913 | EPjFWdd5Auf
-
low Secrets in code
secret-high-entropy-tokenreferences/openapi/quote.md:29High-entropy token-like string (may be an id, hash or a credential)| WETH | 0xC0…Cc2 | — | 0x82…ab1 | 0x42…006 | — |
-
low Secrets in code
secret-high-entropy-tokenreferences/openapi/quote.md:30High-entropy token-like string (may be an id, hash or a credential)| WBTC | 0x22…599 | — | — | — | — |
-
low Secrets in code
secret-high-entropy-tokenreferences/openapi/quote.md:31High-entropy token-like string (may be an id, hash or a credential)| DAI | 0x6B…d0F | — | — | — | — |
-
low Secrets in code
secret-high-entropy-tokenscripts/check-allowance.py:10High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)python3 check-allowance.py "https://eth.llamarpc.com" "0xdA…ec7" \
quoted
Files scanned: 20. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - note
frontmatter-keyunknown frontmatter key "updated"
Process rating: all ten parameters 61/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Progress reporting. Says nothing while it works
- 50Failures and branches. 0 branches, has a failure section
- 60Tools and files. Uses tools (web) that frontmatter does not declare
- 100Steps. 18 steps
- 100When it triggers. States when to use and when not to
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1395 tokens
- 100Running it twice. No mutating operations
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
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
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -34 of 4 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 338: enough signal without eating the budget
- +4Structure: 10 headings
- +3Step-by-step instructions: 18 items
- +4Has examples (1 code blocks)
- +4Reference files are cited in the instructions (3 of 3)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 72.