CB polymarket-trade
Trade on Polymarket prediction markets on Polygon. Supports browsing markets, checking wallet/CLOB balance, and buying or selling YES/NO shares with safety gates. Wallet: WDK vault (~/.aurehub/.wdk_vault). Config: ~/.aurehub/polymarket.yaml. Triggers: buy YES, buy NO, sell shares, browse markets, check Polymarket balance, Polymarket trade, prediction market, what are the odds, redeem winnings, claim resolved positions.
As a process B 67/100 · Nearly there — weak spots: when it triggers, consistency, running it twice
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 instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
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 · 43
✓ No critical or high findings
Medium and low: 43
-
medium Exfiltration
net-credential-usescripts/browse.js:152Credential used in a network call (verify the destination is the intended service)const res = await axios.get(`${clobUrl}/book?token_id=${tokenId}`, { timeout: 10_000 }); -
low Secrets in code
secret-high-entropy-tokenconfig.example.yaml:17High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)usdc_e: "0x27…174"
fixturequoted -
low Secrets in code
secret-high-entropy-tokenconfig.example.yaml:18High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_exchange: "0x4b…82E"
fixturequoted -
low Secrets in code
secret-high-entropy-tokenconfig.example.yaml:19High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)neg_risk_exchange: "0xC5…80a"
fixturequoted -
low Secrets in code
secret-high-entropy-tokenconfig.example.yaml:20High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_contract: "0x4D…045"
fixturequoted -
low Secrets in code
secret-high-entropy-tokenconfig.example.yaml:21High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)uniswap_router: "0xE5…564" # Uniswap V3 SwapRouter on Polygon
fixturequoted -
low Secrets in code
secret-high-entropy-tokenreferences/contracts.md:6High-entropy token-like string (may be an id, hash or a credential)0x27…174
-
low Secrets in code
secret-high-entropy-tokenreferences/contracts.md:13High-entropy token-like string (may be an id, hash or a credential)0x4b…82E
-
low Secrets in code
secret-high-entropy-tokenreferences/contracts.md:22High-entropy token-like string (may be an id, hash or a credential)0xC5…80a
-
low Secrets in code
secret-high-entropy-tokenreferences/contracts.md:31High-entropy token-like string (may be an id, hash or a credential)0x4D…045
-
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/buy-dry-run.test.js:100High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_exchange: '0x4b…82E',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/buy-dry-run.test.js:101High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)neg_risk_exchange: '0xC5…80a',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/buy-dry-run.test.js:102High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)usdc_e: '0x27…174',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/redeem.test.js:48High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)usdc_e: '0x27…174',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/redeem.test.js:49High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_contract: '0x4D…045',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/redeem.test.js:251High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)'0x27…174', // usdceAddr
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/redeem.test.js:383High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)usdc_e: '0x27…174',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/sell.test.js:150High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_contract: '0x4D…045',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/sell.test.js:151High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)ctf_exchange: '0x4b…82E',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/sell.test.js:152High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)neg_risk_exchange: '0xC5…80a',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/swap.test.js:51High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)'0x0d…270', // WMATIC
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/swap.test.js:52High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)'0x27…174', // USDC.e
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/__tests__/swap.test.js:90High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file; quoted — discussed, not commanded)address: '0x27…174',
fixturequoted -
low Secrets in code
secret-high-entropy-tokenscripts/balance.js:36High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const usdceAddr = contracts.usdc_e ?? '0x27…174';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/lib/swap.js:4High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const WMATIC = '0x0d…270';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/lib/swap.js:5High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const USDC_E = '0x27…174';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/lib/swap.js:6High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const DEFAULT_QUOTER = '0xb2…AB6';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/lib/swap.js:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const DEFAULT_ROUTER = '0xE5…564';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/package-lock.json:141High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha512-GhH/abcC…hoN+uBNo…mU1+t8xT…EBA==",
detector -
low Secrets in code
secret-high-entropy-tokenscripts/package-lock.json:224High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…Z4v+DkGoC42/TS2ond+PARCxTJvgTFUNDZovyQ/uAQ4…g7A==",
detector -
low Secrets in code
secret-high-entropy-tokenscripts/package-lock.json:378High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…6I6+jvuq…Pqq+JZ0T…Rng==",
detector -
low Secrets in code
secret-high-entropy-tokenscripts/package-lock.json:398High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…GmY+zPPWTC+wQrp…jmH+yCS3…njA==",
detector -
low Secrets in code
secret-high-entropy-tokenscripts/package-lock.json:472High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…zbE+oCZYyY+3Zh8…sCw==",
detector -
low Secrets in code
secret-high-entropy-tokenscripts/redeem.js:92High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const usdceAddr = contracts.usdc_e ?? '0x27…174';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/redeem.js:93High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const ctfAddr = contracts.ctf_contract ?? '0x4D…045';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/trade.js:125High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)? (contracts.neg_risk_exchange ?? '0xC5…80a')
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/trade.js:126High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded): (contracts.ctf_exchange ?? '0x4b…82E');
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/trade.js:127High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const usdceAddr = contracts.usdc_e ?? '0x27…174';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/trade.js:269High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)const ctfAddr = contracts.ctf_contract ?? '0x4D…045';
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/trade.js:318High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)? (contracts.neg_risk_exchange ?? '0xC5…80a')
quoted -
low Exfiltration
read-dotenvSKILL.md:80Reads a .env filesource ~/.aurehub/.env
-
low Exfiltration
read-dotenvSKILL.md:96Reads a .env file (detector / deny-list definition)- Re-source env: `source ~/.aurehub/.env`
detector -
low Secrets in code
secret-high-entropy-tokenSKILL.md:184High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **Settlement currency**: USDC.e (bridged USDC, `0x27…174`)
quoted
Files scanned: 36. 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")
Process rating: all ten parameters 67/100
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 3 mutating operations with no state check
- 40Consistency. Frontmatter name (polymarket-trade) differs from the folder (aurehub-polymarket-trade)
- 60Tools and files. Uses tools (bash, node) that frontmatter does not declare
- 60Result and completion. Output format stated, no completion criterion
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Steps. 43 steps
- 100Failures and branches. 8 branches, has a failure section
- 100Execution cost. Instruction body is 2335 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 14 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (14 tags): a typed call is more reliable
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)
- +2Single-language instructions
- +3Description length 422: enough signal without eating the budget
- +4Structure: 16 headings
- +3Step-by-step instructions: 43 items
- +3Output format is stated explicitly
- +4Has examples (6 code blocks)
- +4Reference files are cited in the instructions (7 of 7)
- +3All 5 scripts are documented
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 83.