kalshi
Skill0 starsChanged 21 days agoMITView on GitHub
Trade Kalshi prediction markets via the official REST API: discover events and markets, read orderbooks, check balance and positions, place and cancel orders. Use when the user wants Kalshi trading, market prices, or portfolio status.
- Reads credentials
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
No bundled CLI — call the official REST API directly with any HTTP client (e.g.
- Distinctive: line 45
Prices are in cents, 1–99: Every contract pays $1.00 if correct, $0 if wrong (e.g.
- Distinctive: line 47
Prefer the demo exchange for dry runs unless the user explicitly wants production.
- Distinctive: line 48
Always compute and state total cost and max payout: cost = count × price cents.
- Very specific: line 49
Verify a position exists (via positions) before selling.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kalshi
Purpose
Manage Kalshi event-contract trades: discover markets, inspect orderbooks, view portfolio, place and cancel orders.
Tooling
No bundled CLI — call the official REST API directly with any HTTP client
(e.g. curl). Public endpoints need no auth; portfolio endpoints need the
three KALSHI-ACCESS-* headers from the Auth section below.
BASE=https://api.elections.kalshi.com/trade-api/v2
curl -s "$BASE/exchange/status" # exchange status (public)
curl -s "$BASE/events?limit=10" # open events (public)
curl -s "$BASE/markets?series_ticker=KXGDPYEAR&limit=10" # markets (public)
curl -s "$BASE/markets/KXGDPYEAR-26/orderbook?depth=5" # orderbook (public)Authenticated calls: GET $BASE/portfolio/balance, GET
$BASE/portfolio/positions, GET $BASE/portfolio/orders,
POST $BASE/portfolio/events/orders to place, DELETE
$BASE/portfolio/events/orders/{order_id} to cancel. Swap the base for
https://demo-api.kalshi.co/trade-api/v2 for dry runs.
Auth
Credentials come from environment variables at runtime — never hardcoded, never written to files, logs, or memory.
KALSHI_API_KEY_ID— API key UUID, from Kalshi Settings > APIKALSHI_PRIVATE_KEY_PEM— RSA private key PEM contents (shown only once at key creation), orKALSHI_PRIVATE_KEY_PATHfor a PEM file pathKALSHI_ENV—demo|production(defaultproduction)KALSHI_BASE_URL— optional override
Authenticated requests sign timestamp + METHOD + path (no delimiters, path
without the query string) with RSA-PSS-SHA256, sent as three headers:
KALSHI-ACCESS-KEY (key UUID), KALSHI-ACCESS-TIMESTAMP (current POSIX time
in milliseconds), KALSHI-ACCESS-SIGNATURE (base64 signature).
Operating Rules
- Prices are in cents, 1–99. Every contract pays $1.00 if correct, $0 if wrong (e.g. YES at 65¢ costs $0.65, pays $1.00 on a YES outcome → 35¢ profit).
- Before placing any order, present ticker / side (YES|NO) / action (buy|sell) / count / price / total cost (= count × price) and require the user's explicit confirmation. Never skip this, never batch it silently.
- Prefer the demo exchange for dry runs unless the user explicitly wants production.
- Always compute and state total cost and max payout: cost = count × price cents; max payout = count × $1.00.
- Verify a position exists (via
positions) before selling. - On 401/403, check that the signature headers were built (sign the path without the query string, and confirm the key was created for the right environment), not just that the key is right.
Also on Honeypot — a free, open index of skills for AI agents: https://honeypot-e6c.pages.dev Image: Indexed on Honeypot
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- machina-sports/sports-skills★ 262same name
- Starchild-ai-agent/official-skills★ 29same name
- Outsharp/shipp-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- agent-checkoutSkill
- coinbaseSkill
- context7Skill
- cronSkill
- cursorSkill
- discordSkill
- honeypotSkill
- image-optimizeSkill
- oids-python-sdkSkill
- oidsSkill
- pdf-textSkill
- playwright-mcpSkill
- polymarketSkill
- robinhood-mcpSkill
- skill_creatorSkill
- sqliteSkill
- the_odds_apiSkill
- webhooksSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

