Cogdx Pre Trade Audit

Verify trading reasoning with cognitive diagnostics before executing trades. Detects logical fallacies, calibration issues, and cognitive biases in your trad...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 24 · 0 current installs · 0 all-time installs
byDr Amanda Kavner@drkavner
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description match the implementation: the skill calls a Cerebratech CogDx endpoint to audit reasoning and uses a Simmer client to place trades. Declared pip dependencies (simmer-sdk, requests) and required SIMMER_API_KEY align with the stated capability.
Instruction Scope
The runtime explicitly sends the user's full trade reasoning (trace) to https://api.cerebratech.ai/reasoning_trace_analysis and includes an optional wallet header for payment. That network call is expected for a cognitive-audit service but is a privacy-sensitive operation the user should be aware of. The SKILL.md accurately documents SIMMER_API_KEY and COGDX_WALLET.
Install Mechanism
No remote download URLs or extraction steps. Dependencies are pip packages (simmer-sdk, requests) — a common, traceable install mechanism. Moderate risk typical for PyPI packages but appropriate for the described functionality.
Credentials
Only SIMMER_API_KEY is required (for executing trades) and COGDX_WALLET is optional (used to send a wallet header to the CogDx API). These credentials align with the skill's purpose, but supplying COGDX_WALLET will expose a wallet address to the third-party API; the skill also sends potentially sensitive trade thesis text externally.
Persistence & Privilege
The skill's metadata (clawhub.json) includes a cron schedule (*/15 * * * *) and automaton.managed=true, which implies periodic execution every 15 minutes. The skill itself is not marked always:true, but scheduled/managed execution could trigger audits (and trades if live=True) without manual invocation — users should confirm scheduling and default dry-run behavior before enabling live runs.
Assessment
This skill appears to do what it says, but review these points before installing or enabling live trades: - Privacy: Your full trade reasoning (thesis) is POSTed to https://api.cerebratech.ai; if that text contains sensitive strategy or private data, do not send it. Review Cerebratech's privacy/security policies. - Credentials: SIMMER_API_KEY is required to execute trades. Keep it secret and only enable live trading (live=True) when you're sure. The optional COGDX_WALLET value will be sent to the third-party API as a header — avoid supplying a private key or secret there; it's just a wallet address. - Scheduling: The package includes a cron every 15 minutes (clawhub.json). Confirm you want automatic/managed runs — otherwise disable or change scheduling to avoid unintended trades. - Dependencies: simmer-sdk and requests are installed from PyPI; verify the simmer-sdk package source and trustworthiness for your environment. - Safe testing: Default calls are dry-run (live=False) — test thoroughly in dry-run mode. Consider restricting network access or auditing network traffic in a staging environment if you need to confirm what data is transmitted. - Operational controls: If you plan to use this, rotate API keys periodically, grant the minimal privileges to the SIMMER_API_KEY, and consider not storing extremely sensitive strategy text in the reasoning field. If you want, I can list the exact lines in the code that send data externally and where the Simmer client is invoked.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk977wb317eexpdeg319bq3qsgs830qap

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

CogDx Pre-Trade Audit

Cognitive verification layer for prediction market trades. Catches reasoning flaws before they become losses.

This is a template. The default signal is your agent's trade thesis — the skill audits the reasoning quality before execution. Remix it with stricter thresholds, additional bias checks, or custom fallacy detection. The skill handles all the plumbing (API calls, trade execution, safeguards). Your agent provides the reasoning to verify.

What it does

  1. Takes your trade reasoning (thesis, confidence, market context)
  2. Runs cognitive diagnostics via CogDx API
  3. Returns verdict: PROCEED / REVIEW / REJECT
  4. Optionally executes trade if reasoning passes

Detects

  • Logical fallacies: anchoring, confirmation bias, sunk cost
  • Calibration issues: overconfidence, underconfidence
  • Reasoning gaps: missing evidence, circular logic

Usage

from cogdx_pre_trade_audit import audit_and_trade

result = audit_and_trade(
    market_id="0x1234...",
    side="yes",
    amount=10.0,
    reasoning="BTC ETF approval likely based on SEC meeting notes...",
    confidence=0.85,
    min_validity=0.7,  # Minimum reasoning quality to proceed
    live=False  # Dry-run by default
)

if result["approved"]:
    print(f"Trade executed: {result['trade_id']}")
else:
    print(f"Trade blocked: {result['issues']}")

Environment Variables

  • SIMMER_API_KEY - Required. Your Simmer API key.
  • COGDX_WALLET - Optional. Wallet address for CogDx credits.

Thresholds

ParameterDefaultDescription
min_validity0.7Minimum reasoning quality score (0-1)
block_on_errorTrueBlock trade if CogDx API unavailable

Why use this

Most trading losses come from bad reasoning, not bad data. This skill catches:

  • Trades based on anchoring (first number you saw)
  • Confirmation bias (only seeing supporting evidence)
  • Overconfidence (betting big on weak signals)

External verification you can't do yourself.

Credits

Built by Cerebratech — cognitive diagnostics for agents.

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…