Entering an Alphapoly Position

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

A guided procedure for opening a covered pair trade on Polymarket, a prediction-market platform, by placing a target position together with a covering position.

In plain words
What is it for?
Use it when buying, trading, opening a position, placing an order, or acting on a portfolio opportunity in the Alphapoly system.
Why use it?
It adds checks, cost estimates, confirmation, and position recording before a trade is placed, while requiring the wallet and funds to be ready.

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-enter-position
Any agent
npx skills add chainstacklabs/polymarket-alpha-bot --skill alphapoly-enter-position
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 Entering an Alphapoly Position

README.md
[![agentmods](https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-enter-position.svg)](https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-enter-position)
Your own site
<a href="https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-enter-position"><img src="https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-enter-position.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 667 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.00667
Opus 5 $0.00039 $0.00333
Sonnet 5 $0.00015 $0.00133
Haiku 4.5 $0.00008 $0.00067

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

Security

Grade A, and why

Entering an Alphapoly Position 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-enter-position/SKILL.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Entering an Alphapoly Position

Enter a hedged pair position (target + cover) from a detected alphapoly portfolio.

Prerequisites

  1. Backend running on http://localhost:8000
  2. Wallet unlocked — check GET /wallet/status for "unlocked": true; unlock via POST /wallet/unlock with {"password": "<password>"}
  3. Deposit wallet ready — trades sign as sigtype-3 through a per-user deposit wallet, so GET /wallet/status must show "relayer_set": true and "deposit_wallet_deployed": true. If not: attach the relayer key (POST /wallet/set-relayer), then deploy (POST /wallet/deploy-deposit-wallet). Without this, buy-pair fails at order placement.
  4. Sufficient pUSD in the deposit wallet — the balance must sit in the deposit wallet (deposit_wallet_address from status), not the signer EOA; total cost is amount_per_position * 2. The relayer pays gas, so no POL is needed.

7-Step Flow

  1. List portfoliosGET /data/portfolios; note pair_id, market IDs, and position sides
  2. Pick a pair — select by pair_id
  3. Set amount — choose amount_per_position in pUSD
  4. Estimate (required) — POST /trading/buy-pair/estimate; show result to user; stop if sufficient_balance: false
  5. Confirm — require explicit user approval before proceeding
  6. ExecutePOST /trading/buy-pair; check success: true on both legs; surface any warnings
  7. Record — position is recorded automatically on success; manual POST /positions only needed for imports

For full request/response schemas, see api-reference.md.

Safety Rules

These trades involve real pUSD on Polygon — transactions are irreversible once submitted on-chain. The estimate step is the only chance to catch problems before money moves.

  • Always run /trading/buy-pair/estimate before /trading/buy-pair — the estimate reveals actual costs, slippage, and balance issues before committing funds
  • Never execute without explicit user confirmation — the user needs to see the estimate and agree to the cost
  • Never proceed if sufficient_balance: false — the transaction will fail on-chain and may leave partial state
  • If warnings are non-empty after execution, surface them — the user may hold unwanted tokens that need selling via GET /positions
  • skip_clob_sell: true only when the user explicitly requests it

Read the full file on GitHub · 38 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 38 lines · 77 tokens per session scan A 9a473be7bee7

Subscribe to this mod's changes

Entering an Alphapoly Position 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 667 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.

Related

Other skills, from other repositories

polymarket-profile

Polymarket address profiler — input any 0x address, get a complete trading profile with PnL, win rate, positions, category breakdown, and top trades. All data from public APIs, no local database needed.

runesleo/polymarket-toolkit · 51 tokens

polymarket

Trade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").

Starchild-ai-agent/official-skills · 84 tokens

polymarket-plugin

Trade prediction markets on Polymarket - buy outcome tokens (YES/NO and categorical markets), check positions, list markets, manage orders, redeem winning tokens, and deposit funds on Polygon. Trigger phrases: buy polymarket shares, sell polymarket position, check my polymarket positions, list polymarket markets, get…

okx/plugin-store · 304 tokens

polymarket

Query Polymarket: markets, prices, orderbooks, history.

NousResearch/hermes-agent · 18 tokens

hyperliquid

Use when backtesting, deploying, funding, or debugging a live trading strategy on Hyperliquid through the Superior Trade API — writing Freqtrade configs and strategy code, running backtest sweeps, checking wallet balances, depositing USDC, trading HIP-3 stock/commodity perps, or diagnosing a deployment that will not…

Superior-Trade/superior-skills · 73 tokens

basis-arb

Use when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the spot–perp basis as a positioning signal. Long-perp leg only — pure two-leg basis arb requires a paired spot short (or long) which Freqtrade can't run cleanly. The strategy below captures the…

Superior-Trade/superior-skills · 87 tokens