Adding Alphapoly Features

Adding Alphapoly Features is a skill for Claude Code, Codex 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 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-feature
Any agent
npx skills add chainstacklabs/polymarket-alpha-bot --skill alphapoly-feature
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 Adding Alphapoly Features

README.md
[![agentmods](https://agentmods.dev/badge/skills/chainstacklabs/polymarket-alpha-bot/alphapoly-feature.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.svg" alt="Measured on agentmods" 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. 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.00122 $0.00633
Opus 5 $0.00061 $0.00316
Sonnet 5 $0.00024 $0.00127
Haiku 4.5 $0.00012 $0.00063

Measured 4d ago against content hash 646ee2f4798c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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-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. Lintmake lint auto-fixes backend (ruff) and frontend (prettier + eslint)
  3. Typecheckcd 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. Committype: 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. 4d 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 (174 stars, last pushed 29d ago), licensed Apache-2.0. It adds 122 tokens to every session and 633 once invoked, about $0.0006 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

Query Polymarket: markets, prices, orderbooks, history.

nobodyohm-web/Thot · 18 tokens

data-visualization

Use for creating publication-quality charts and multi-panel analysis summaries. Triggers when tasks involve visualizing data, plotting results, creating charts, or producing visual reports from analysis output.

langchain-ai/deepagents · 40 tokens

cuml-machine-learning

Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

langchain-ai/deepagents · 43 tokens

blog-post

Writes and structures long-form blog posts, creates tutorial outlines, and optimizes content for SEO with cover image generation. Use when the user asks to write a blog post, article, how-to guide, tutorial, technical writeup, thought leadership piece, or long-form content.

langchain-ai/deepagents · 58 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

textual-screenshot

Capture a Textual terminal UI as an SVG using its headless test harness. Use when asked to make, attach, or preview a screenshot of deepagents-code/dcode or another Textual app, visually verify a TUI state, or render a modal, screen, or widget without a desktop or browser.

langchain-ai/deepagents · 67 tokens