[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77S0B8SYKHDB19EXF4QPQTP":3,"skill-same:01M77S0B8SYKHDB19EXF4QPQTP":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77S0B8SYKHDB19EXF4QPQTP","prediction-market-trader",null,"Prediction market trading toolkit for Kalshi. Includes API authentication (RSA-PSS signatures), market scanning, Sofascore tennis de-vigging, true probability calculation, Kelly criterion sizing, and order execution. Use when trading on Kalshi, analyzing prediction market odds, calculating expected value, de-vigging bookmaker odds, sizing bets with Kelly criterion, or building prediction market bots.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fprediction-market-trader\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: prediction-market-trader\ndescription: Prediction market trading toolkit for Kalshi. Includes API authentication (RSA-PSS signatures), market scanning, Sofascore tennis de-vigging, true probability calculation, Kelly criterion sizing, and order execution. Use when trading on Kalshi, analyzing prediction market odds, calculating expected value, de-vigging bookmaker odds, sizing bets with Kelly criterion, or building prediction market bots.\n---\n\n# Prediction Market Trader — Kalshi Trading Toolkit\n\nTrade prediction markets with edge. Scan markets, calculate true probabilities, size positions, execute orders.\n\n## Pipeline\n\n1. **Scan** — Pull open markets from Kalshi API by category (sports, weather, politics, economics)\n2. **De-vig** — Get bookmaker odds from Sofascore, remove vig to find true probabilities\n3. **Compare** — Find gaps between Kalshi price and true probability (minimum 4% edge)\n4. **Size** — Quarter-Kelly criterion for position sizing (max 15% of bankroll per trade)\n5. **Execute** — Place limit orders via Kalshi API with RSA-PSS authentication\n6. **Monitor** — Track positions, P&L, and exit on profit targets\n\n## Requirements\n\n- **Kalshi API credentials** — `KALSHI_KEY_ID` and `KALSHI_PRIVATE_KEY` (RSA private key, inline or .pem)\n- **Node.js 18+** — for crypto.sign with RSA-PSS\n\n## Quick Start\n\n```bash\n# Set credentials\nexport KALSHI_KEY_ID=your_key_id\nexport KALSHI_PRIVATE_KEY=\"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n\n# Scan for edges\nnode scripts\u002Fscan-edges.js --category tennis\n\n# Place a trade (dry run)\nnode scripts\u002Ftrade.js --ticker KXATPMATCH-26MAR12DRAMED-DRA --side yes --price 38 --count 10 --dry\n\n# Check portfolio\nnode scripts\u002Fportfolio.js\n```\n\n## Kalshi API Authentication\n\nKalshi uses RSA-PSS signatures. The signing message is: `timestamp + method + path` (NO request body in signature).\n\n```javascript\nconst crypto = require('crypto');\nconst timestamp = Math.floor(Date.now() \u002F 1000).toString();\nconst message = timestamp + 'GET' + '\u002Ftrade-api\u002Fv2\u002Fportfolio\u002Fbalance';\nconst signature = crypto.sign('sha256', Buffer.from(message), {\n  key: crypto.createPrivateKey(privateKey),\n  padding: crypto.constants.RSA_PKCS1_PSS_PADDING,\n  saltLength: 32\n});\n```\n\nHeaders: `KALSHI-ACCESS-KEY`, `KALSHI-ACCESS-TIMESTAMP`, `KALSHI-ACCESS-SIGNATURE` (base64)\n\n## De-Vigging Methodology\n\nBookmaker odds include a margin (vig). Remove it to find true probabilities:\n\n```\nimplied_prob_A = 1 \u002F decimal_odds_A\nimplied_prob_B = 1 \u002F decimal_odds_B\ntotal = implied_prob_A + implied_prob_B  (always > 1.0)\ntrue_prob_A = implied_prob_A \u002F total\ntrue_prob_B = implied_prob_B \u002F total\n```\n\n## Kelly Criterion Sizing\n\n```\nedge = true_probability - kalshi_price\nodds = (1 \u002F kalshi_price) - 1\nkelly_fraction = (true_prob * odds - (1 - true_prob)) \u002F odds\nposition_size = kelly_fraction * 0.25 * bankroll  (quarter-Kelly)\n```\n\nConstraints: max 15% bankroll per position, min 4% edge to trade.\n\n## Scripts\n\n- `scripts\u002Fkalshi-auth.js` — Kalshi API client with RSA-PSS authentication\n- `scripts\u002Fscan-edges.js` — Scan markets and compare to Sofascore de-vig\n- `scripts\u002Ftrade.js` — Place\u002Fcancel orders with safety checks\n- `scripts\u002Fportfolio.js` — Check balance, positions, P&L\n\n## References\n\n- `references\u002Fmarket-categories.md` — Kalshi series tickers and best edge sources\n- `references\u002Frisk-rules.md` — Position sizing rules and risk management\n- `references\u002Flessons-learned.md` — Common mistakes and how to avoid them\n\n## Key Insights (Battle-Tested)\n\n- **Tennis qualifying\u002Fchallengers** = best edge source (5-40% EV gaps)\n- **NBA\u002FNHL live markets** = 1¢ spreads, zero edge. Don't bother.\n- **NCAAB small conference tournaments** = 4-9% EV\n- **Indian Wells main draw** = efficiently priced (within 1-3% of books)\n- **Live edges close in 2-3 minutes** — speed matters\n- **Weather markets** = high variance, NWS data helps but forecasts shift\n- **Always match Odds API outcomes by name, NEVER by array index**\n","# Prediction Market Trader — Kalshi Trading Toolkit\n\nTrade prediction markets with edge. Scan markets, calculate true probabilities, size positions, execute orders.\n\n## Pipeline\n\n1. **Scan** — Pull open markets from Kalshi API by category (sports, weather, politics, economics)\n2. **De-vig** — Get bookmaker odds from Sofascore, remove vig to find true probabilities\n3. **Compare** — Find gaps between Kalshi price and true probability (minimum 4% edge)\n4. **Size** — Quarter-Kelly criterion for position sizing (max 15% of bankroll per trade)\n5. **Execute** — Place limit orders via Kalshi API with RSA-PSS authentication\n6. **Monitor** — Track positions, P&L, and exit on profit targets\n\n## Requirements\n\n- **Kalshi API credentials** — `KALSHI_KEY_ID` and `KALSHI_PRIVATE_KEY` (RSA private key, inline or .pem)\n- **Node.js 18+** — for crypto.sign with RSA-PSS\n\n## Quick Start\n\n```bash\n# Set credentials\nexport KALSHI_KEY_ID=your_key_id\nexport KALSHI_PRIVATE_KEY=\"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n\n# Scan for edges\nnode scripts\u002Fscan-edges.js --category tennis\n\n# Place a trade (dry run)\nnode scripts\u002Ftrade.js --ticker KXATPMATCH-26MAR12DRAMED-DRA --side yes --price 38 --count 10 --dry\n\n# Check portfolio\nnode scripts\u002Fportfolio.js\n```\n\n## Kalshi API Authentication\n\nKalshi uses RSA-PSS signatures. The signing message is: `timestamp + method + path` (NO request body in signature).\n\n```javascript\nconst crypto = require('crypto');\nconst timestamp = Math.floor(Date.now() \u002F 1000).toString();\nconst message = timestamp + 'GET' + '\u002Ftrade-api\u002Fv2\u002Fportfolio\u002Fbalance';\nconst signature = crypto.sign('sha256', Buffer.from(message), {\n  key: crypto.createPrivateKey(privateKey),\n  padding: crypto.constants.RSA_PKCS1_PSS_PADDING,\n  saltLength: 32\n});\n```\n\nHeaders: `KALSHI-ACCESS-KEY`, `KALSHI-ACCESS-TIMESTAMP`, `KALSHI-ACCESS-SIGNATURE` (base64)\n\n## De-Vigging Methodology\n\nBookmaker odds include a margin (vig). Remove it to find true probabilities:\n\n```\nimplied_prob_A = 1 \u002F decimal_odds_A\nimplied_prob_B = 1 \u002F decimal_odds_B\ntotal = implied_prob_A + implied_prob_B  (always > 1.0)\ntrue_prob_A = implied_prob_A \u002F total\ntrue_prob_B = implied_prob_B \u002F total\n```\n\n## Kelly Criterion Sizing\n\n```\nedge = true_probability - kalshi_price\nodds = (1 \u002F kalshi_price) - 1\nkelly_fraction = (true_prob * odds - (1 - true_prob)) \u002F odds\nposition_size = kelly_fraction * 0.25 * bankroll  (quarter-Kelly)\n```\n\nConstraints: max 15% bankroll per position, min 4% edge to trade.\n\n## Scripts\n\n- `scripts\u002Fkalshi-auth.js` — Kalshi API client with RSA-PSS authentication\n- `scripts\u002Fscan-edges.js` — Scan markets and compare to Sofascore de-vig\n- `scripts\u002Ftrade.js` — Place\u002Fcancel orders with safety checks\n- `scripts\u002Fportfolio.js` — Check balance, positions, P&L\n\n## References\n\n- `references\u002Fmarket-categories.md` — Kalshi series tickers and best edge sources\n- `references\u002Frisk-rules.md` — Position sizing rules and risk management\n- `references\u002Flessons-learned.md` — Common mistakes and how to avoid them\n\n## Key Insights (Battle-Tested)\n\n- **Tennis qualifying\u002Fchallengers** = best edge source (5-40% EV gaps)\n- **NBA\u002FNHL live markets** = 1¢ spreads, zero edge. Don't bother.\n- **NCAAB small conference tournaments** = 4-9% EV\n- **Indian Wells main draw** = efficiently priced (within 1-3% of books)\n- **Live edges close in 2-3 minutes** — speed matters\n- **Weather markets** = high variance, NWS data helps but forecasts shift\n- **Always match Odds API outcomes by name, NEVER by array index**\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fprediction-market-trader",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill prediction-market-trader",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill prediction-market-trader",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill prediction-market-trader","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fprediction-market-trader\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]