prophet-adversarial-auditor
Prophet Adversarial Auditor
For Claude: How to Use This Skill
Skill instructions are preloaded in context when this skill is active. Do not perform filesystem searches or tool-driven exploration to rediscover them; use the guidance below directly.
When to Use
- audit Prophet market creation failures
- review Prophet rejected submissions
- inspect Prophet bugs and loss scenarios
- check Prophet auditor status
Workflow Summary
normalize_requestusestransform.normalize_requestvalidate_prophet_accessusestransform.validate_prophet_accessconnect_storageusesconnector.storage.connectload_run_historyusesconnector.storage.queryreplay_recent_runsusestransform.replay_recent_runsdetect_findingsusestransform.detect_audit_findingsanalyze_loss_scenariosusestransform.analyze_loss_hypothesesrank_findingsusestransform.rank_findingspersist_audit_outputsusesconnector.storage.upsertrender_summaryusestransform.render_report
Auth Contract
The skill acquires the Prophet session token automatically via Playwright using the email OTP flow:
- Navigate to
https://app.prophetmarket.ai - Click the "Connect" button to open the Privy auth modal
- Check
localStorage["privy:token"]— if already set, use it directly - If not authenticated:
a. Prompt user for their Prophet email (or read from config
inputs.prophet_email) b. Fill#email-inputand clickbutton:has-text("Submit")c. Privy sends a 6-digit OTP to the user's email d. Prompt user for the 6-digit code e. Fillinput[name="code-0"]throughinput[name="code-5"]f. PolllocalStorage["privy:token"]until non-null (with 60s timeout) - Extract the JWT and pass it as
PROPHET_SESSION_TOKEN
Important:
- Always use the email OTP path (wallet connect and Google OAuth do not work in Playwright)
- The token is a JWT starting with
eyJ...and expires after ~1 hour - The
privy-sessioncookie alone is not sufficient for authenticated GraphQL access
First-Run Setup
The runtime now auto-bootstraps Prophet storage on first run:
- Resolves or creates the Seren project
prophet. - Resolves or creates the Seren database
prophet. - Applies the
prophet_adversarial_auditorschema and required tables. - Validates the Prophet session token against the live
ViewerWalletBalanceGraphQL query.
If SEREN_API_KEY is missing, the runtime does not pause for DB setup questions. It fails immediately with a setup message that points the user to https://docs.serendb.com/skills.md.
Minimal Run
cd prophet/prophet-adversarial-auditor
python3 -m pip install -r requirements.txt
cp config.example.json config.json
export SEREN_API_KEY=...
export PROPHET_SESSION_TOKEN='eyJ...'
python3 scripts/agent.py --config config.json
More from serenorg/seren-skills
polymarket-bot
Autonomous trading agent for Polymarket prediction markets using Seren ecosystem
9polymarket-maker-rebate-bot
Provide two-sided liquidity on Polymarket with rebate-aware quoting, inventory controls, and dry-run-first execution for binary markets.
6saas-short-trader
Alpaca-branded SaaS short trader with MCP-native execution: scores AI disruption risk, builds capped short baskets, and tracks paper/live PnL in SerenDB.
2high-throughput-paired-basis-maker
Run a paired-market basis strategy on Polymarket with mandatory backtest-first gating before trade intents.
2seren-bounty
Work with Seren Bounty affiliate bounties: customers create and fund verifier-backed bounties; agents join to receive a referral_code and accrue earnings as qualifying events are verified; a release sweep pays matured earnings out of escrow.
2budget-tracker
Compare actual Wells Fargo spending against user-defined monthly budgets per category, calculate variance, and track budget adherence over time.
1