Creating Alphapoly Experiments

Creating Alphapoly Experiments is a skill for Claude Code, Codex from chainstacklabs/polymarket-alpha-bot. It costs 77 tokens per session (417 once invoked), scanned A, original, Apache-2.0.

A guide for creating a numbered, standalone experiment script in an experiments/ folder using the project’s shared backend dependencies. An experiment is a small prototype used to explore an idea or question.

In plain words
What is it for?
Use it when starting a prototype, spike, scratch script, or quick test of an idea, including experiments that need dependencies or API keys.
Why use it?
It keeps prototypes separate from production code while giving them a consistent structure, naming scheme, and way to run.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chainstacklabs/polymarket-alpha-bot/alphapoly-experiment
Any agent
npx skills add chainstacklabs/polymarket-alpha-bot --skill alphapoly-experiment
Clone the repo
git clone --depth 1 https://github.com/chainstacklabs/polymarket-alpha-bot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Creating Alphapoly Experiments

README.md
[![agentmods](https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-experiment.svg)](https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-experiment)
Your own site
<a href="https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-experiment"><img src="https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-experiment.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00077 $0.00417
Opus 5 $0.00039 $0.00209
Sonnet 5 $0.00015 $0.00083
Haiku 4.5 $0.00008 $0.00042

Measured 4d ago against content hash f2f48dcbd6a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Creating Alphapoly Experiments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/alphapoly-experiment/SKILL.md · 56 lines

What it actually says

Creating Alphapoly Experiments

Scaffold a new standalone script in experiments/.

Rules

  • Completely standalone — no shared modules; no imports from backend/ or other experiments/ files
  • Sequential numbering — check existing files in experiments/ and use the next number
  • Dependencies from backend — experiments share backend/pyproject.toml deps (httpx, polars, etc.); no inline PEP 723 headers needed
  • Run with uv run experiments/<script>.py from the project root

Template

"""NN: What this experiment explores.

WHAT IT DOES
    Brief description of what the script does.

WHY WE NEED THIS
    What question or hypothesis this experiment addresses.
"""

import json
import logging
from pathlib import Path

import httpx

DATA_DIR = Path(__file__).parent.parent / "data"
log = logging.getLogger(__name__)

# ... experiment code

Scripts needing API keys should load .env with an explicit path:

from dotenv import load_dotenv
load_dotenv(Path(__file__).parent.parent / ".env")

Naming

experiments/NN_short_description.py — e.g. experiments/09_test_llm_model.py

Subdirectories (e.g. experiments/trading/) have their own numbering sequence.

Running

uv run experiments/NN_script.py

Run from the project root. Dependencies resolve from backend/pyproject.toml via uv.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 56 lines · 77 tokens per session scan A f2f48dcbd6a9

Subscribe to this mod's changes

Creating Alphapoly Experiments is a skill published in the GitHub repository chainstacklabs/polymarket-alpha-bot (174 stars, last pushed 29d ago), licensed Apache-2.0. It adds 77 tokens to every session and 417 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.