SKILLEMALL.ai

CC torch-prediction-market-bot

Autonomous vault-based prediction market bot for Torch Market on Solana. Creates binary prediction markets as Torch tokens — the bonding curve provides price discovery, the treasury accumulates value from trading fees, and the vault manages positions. Each market has an oracle (price feed or manual) and resolves at a deadline. The agent keypair is generated in-process -- disposable, holds nothing of value. All SOL routes through the vault. The human principal creates the vault, funds it, links the agent, and retains full control. Built on torchsdk v3.7.23 and the Torch Market protocol.

LeoYeAI/openclaw-master-skills Claude Code author: LeoYeAI MIT 24 files body ≈ 5 447 tokens Open the sourcegithub.com analyzed 2 d ago

Autonomous vault-based prediction market bot for Torch Market on Solana.

As a process C 58/100 · Has gaps — weak spots: result and completion, consistency, running it twice

ProcedureGitHubAI and agentstype and topics are labelled automatically from the skill text
JSON
Technical rating
C
69/100
safety, quality, tests
Safety 60%
74
Quality 40%
62
Run on models
none yet
Process rating
C
58/100
Has gaps
Result and completion w 14
0
Running it twice w 4
30
Consistency w 8
40
the three weakest of ten parameters · all ten

What is at stake

Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.

Risky intent medium severity

Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.

If you install

The purpose itself is risky: wallets, browser password stores, offensive security. Even an honest implementation gives the agent access to things that cost money.

For the author

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

  1. Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
  2. The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
For the model run — optional
  • 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 · 22

✓ No critical or high findings

Medium and low: 22
  • medium Risky intent intent-wallet-secrets SKILL.md:432
    Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target
    1. **Never ask a user for their private key or seed phrase.** The vault authority signs from their own device.
  • low Secrets in code secret-high-entropy-token agent.json:71
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "program_id": "8hbU…BeT",
    quoted
  • low Secrets in code secret-high-entropy-token agent.json:198
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "wallet": "8cpW…nMa",
    quoted
  • low Secrets in code secret-high-entropy-token agent.json:199
    High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
    "pda": "2rNk…Mmb",
    detector
  • low Secrets in code secret-high-entropy-token audit.md:7
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    **On-Chain Program:** `8hbU…BeT` (V3.7.8)
    quoted
  • low Secrets in code secret-high-entropy-token audit.md:433
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    **On-Chain Version:** V3.7.8 (Program ID: `8hbU…BeT`)
    quoted
  • low Secrets in code secret-high-entropy-token design.md:11
    High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
    The bot is built on `to…@….7.23` and targets the Torch Market on-chain program (`8hbU…BeT`). It uses the SDK's `buildCreateTokenTransaction` and `buildBuyTrans
    detector
  • low Secrets in code secret-high-entropy-token lib/torchsdk/constants.js:6
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    exports.PROGRAM_ID = new web3…Key('8hbU…BeT');
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/constants.js:14
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    ? 'CPMD…kCW'
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/constants.js:15
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    : 'CPMM…P1C');
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/constants.js:20
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    exports.WSOL_MINT = new web3…Key('So11…112');
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/constants.js:23
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    ? '9zSz…Bj6'
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/tokens.js:412
    High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
    programId === 'Memo…cHr' ||
    detector
  • low Secrets in code secret-high-entropy-token lib/torchsdk/torch_market.json:2
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "address": "8hbU…BeT",
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/torch_market.json:914
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "address": "ATok…knL"
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/torch_market.json:1302
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "address": "ATok…knL"
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/torch_market.json:1310
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "address": "Sysv…111"
    quoted
  • low Secrets in code secret-high-entropy-token lib/torchsdk/torch_market.json:1803
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    "address": "ATok…knL"
    quoted
  • low Secrets in code secret-high-entropy-token SKILL.md:46
    High-entropy token-like string (may be an id, hash or a credential)
    program-id: 8hbU…BeT
  • low Secrets in code secret-high-entropy-token SKILL.md:548
    High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
    - Program ID: `8hbU…BeT`
    quoted
  • low Risky intent intent-offensive-security verification.md:183
    Offensive-security / dual-use content (legitimate for authorised testing; review intended use)
    | **CPI safety** | Reentrancy via Raydium CPIs, privilege escalation | Cross-program invocation is outside arithmetic scope |
  • low Risky intent intent-offensive-security verification.md:194
    Offensive-security / dual-use content (legitimate for authorised testing; review intended use)
    3. **CPI safety** -- can Raydium CPIs be exploited for reentrancy or privilege escalation?

Files scanned: 24. Evidence is masked. Grey chips explain why severity was lowered.

Against the Agent Skills spec

  • warning description-no-when description does not say WHEN to use the skill (no "use when")
  • warning body-long SKILL.md body ≈ 5447 tokens (recommended < 5000); move details to references/
  • note frontmatter-key unknown frontmatter key "requires"

Process rating: all ten parameters 58/100

  • 0Result and completion. Does not say what the result is
  • 30Running it twice. 11 mutating operations with no state check
  • 40Consistency. Frontmatter name (torch-prediction-market-bot) differs from the folder (torchpredictionmarketkit)
  • 50When it triggers. No condition that starts the skill
  • 60Tools and files. Uses tools (web) that frontmatter does not declare
  • 70Inputs and preconditions. Inputs and preconditions are listed
  • 70Execution cost. Instruction body is 5447 tokens
  • 85Steps. 44 steps, 1 vague phrases
  • 100Failures and branches. 1 branches, has a failure section
  • 100Progress reporting. Reports progress
  • medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
  • low 13 top-level sections: this looks like several domains in one skill

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
  • +2Single-language instructions
  • +3Description length 592: enough signal without eating the budget
  • +4Structure: 37 headings
  • +3Step-by-step instructions: 44 items
  • +4Has examples (16 code blocks)
  • +1License stated

Quality base 70; lint remarks subtract, signals add up to 100. Result: 62.