polymarket-alpha-bot: Skill for Claude Code

.claude/skills/alphapoly-feature/SKILL.md

Adding Alphapoly Features is a skill for Claude Code from chainstacklabs/polymarket-alpha-bot. It costs 122 tokens per session (633 once invoked), scanned A, original, Apache-2.0.

A project-specific guide for adding features to Alphapoly, a codebase using Python, FastAPI, Next.js, and TypeScript.

In plain words
What is it for?
Use it when adding API endpoints, data-processing steps, web pages, WebSocket services, or other Alphapoly features.
Why use it?
It keeps new backend and frontend work consistent with the project's required tools, file locations, and development checks.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is chainstacklabs/polymarket-alpha-bot's own configuration. It tells Claude Code how to work on polymarket-alpha-bot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything polymarket-alpha-bot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chainstacklabs/polymarket-alpha-bot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chainstacklabs/polymarket-alpha-bot/main/.claude/skills/alphapoly-feature/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/chainstacklabs/polymarket-alpha-bot

Made for: Claude Code.

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 Adding Alphapoly Features

README.md
[![agentmods](https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature/github.svg)](https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature)
Your own site
<a href="https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature"><img src="https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Adding Alphapoly Features

Your own site · 80×15
<a href="https://agentmods.dev/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature"><img src="https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 633 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00122 $0.00633
Opus 5.5 $0.00049 $0.00253
Sonnet 5.5 $0.00024 $0.00127
Haiku 4.5 $0.00012 $0.00063

Measured 2mo ago against content hash 646ee2f4798c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Adding Alphapoly Features 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 2mo 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-feature/SKILL.md · 49 lines

What it actually says

Adding Alphapoly Features

Key Conventions

  • Backend: Python + FastAPI, uv only (never pip/conda), polars (never pandas)
  • Frontend: Next.js App Router, TypeScript
  • Default LLM: xiaomi/mimo-v2-flash:free via OpenRouter
  • Run Python from: backend/ directory

Workflow

  1. Implement — follow patterns in neighboring files; see Common Touch Points below
  2. Lint — make lint auto-fixes backend (ruff) and frontend (prettier + eslint)
  3. Typecheck — cd frontend && npm run typecheck (report-only; fix all errors before committing)
  4. Verify — start make dev and manually test the feature works (check API responses, UI renders, WebSocket connects)
  5. Commit — type: description (feat/fix/refactor/chore)

Common Touch Points

New API endpoint:

  • Add router: backend/server/routers/<name>.py
  • Register in: backend/server/main.py
  • Add TS types: frontend/types/
  • For complex logic, add a service in backend/server/ (follow portfolio_service.py pattern)

New pipeline step:

  • Add to: backend/core/steps/
  • Wire into: backend/core/runner.py
  • For LLM/ML model access: use singletons in backend/core/models.py

New domain feature (trading, wallet, positions):

  • Add subdirectory: backend/core/<domain>/ with manager.py and/or service.py
  • Add router: backend/server/routers/<domain>.py
  • Follow existing pattern in core/positions/, core/wallet/, core/trading/

New UI page:

  • Add: frontend/app/<page>/page.tsx
  • Link from: frontend/components/Sidebar.tsx
  • API/tier config: frontend/config/ (api-config.ts, tier-config.ts)

WebSocket service:

  • Backend: backend/server/routers/ (follow portfolio_prices.py pattern)
  • Frontend hook: frontend/hooks/
  • Note: frontend/server.js proxies /api/* and /ws/* to the backend
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. 2mo ago First seen · 49 lines · 122 tokens per session scan A 646ee2f4798c

Subscribe to this mod's changes

Adding Alphapoly Features is a skill published in the GitHub repository chainstacklabs/polymarket-alpha-bot (184 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 122 tokens to every session and 633 once invoked, about $0.0005 per session on Opus 5.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

Adding Alphapoly Features compared with skills from other repositories

Adding Alphapoly Features next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Adding Alphapoly Featureschainstacklabs/polymarket-alpha-botSkill1843mo agoApache-2.0A122Claude Code
langgraph-docslangchain-ai/deepagentsSkill31kyesterdayMITA62Claude Code, Codex
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
calle-developerCALLE-AI/awesome-phone-call-agentsSkill112yesterdayMITA51Claude Code, Codex
python-patternsDDS-Solutions/AI-TadPole-OSSkill8yesterdayMITA24Claude Code
cli-buildereddiebelaval/squireSkill212mo agoMITA47Claude Code, Codex
pn-python-scaffoldingperniemann/pnCoreSkill05d agoMITA51Cursor