Reflect on Session Learnings
cursor/plugins
Starts three parallel reviewer subagents over the current conversation transcript, then turns their findings into concrete edits to existing skills.
Automated trader for Polymarket weather highest temperature markets.
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-follower --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .claude/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .claude/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-followerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-follower --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .agents/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .agents/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-follower --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .cursor/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .cursor/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/polymarket-temperature-event-follower--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-follower --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .gemini/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .gemini/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-followerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .github/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .github/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills polymarket-temperature-event-follower --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/polymarket-temperature-event-follower .opencode/skills/polymarket-temperature-event-follower && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "polymarket-temperature-event-follower" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/polymarket-temperature-event-follower into .opencode/skills/polymarket-temperature-event-follower/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polymarket-temperature-event-follower", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
polymarket-temperature-event-followerAutomated trader for Polymarket weather highest temperature markets.
Polymarket Temperature Event Follower is an agent skill from LeoYeAI/openclaw-master-skills. Automated trader for Polymarket weather highest temperature markets. Scans global weather markets and executes buys during local morning window (9-10 AM) when YES price is favorable. Built for SkillPay billing integration with robust error handling and state persistence.
Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `SKILL-en.md`, `_meta.json` and `background-knowledge-CN.md`).
It sits in Agent Workflows, covering Agent memory. It works with Polymarket. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonpippython3curlFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
gamma-api.polymarket.comclob.polymarket.comskillpay.meAlso links to:
polymarket.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
PRIVATE_KEYPOLY_API_KEYPOLY_API_SECRETFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Polymarket Temperature Event Follower loads about 3.6k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 820 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
5. [配置文件详解 (.env)](#5)copy .env.example .env# 然后编辑 .env 文件,填入你的密钥(见第4节)所有配置通过**环境变量**(`.env` 文件)管理。### 5.1 创建 `.env` 文件在项目根目录创建文件 `.env`,内容如下:除了 `.env` 配置,代码中还有一些**硬编码常量**需要了解:# 1. 确保 .env 已配置echo ".env" >> .gitignoreAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 820 words, ~3,577 tokens.
.claude/skills/polymarket-temperature-event-follower/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.Polymarket 天气事件市场自动化交易系统
<a name="1"></a>
这是一个自动化交易机器人,用于在 Polymarket 预测市场平台上交易天气事件合约。
核心功能:
假设:每日最高温通常出现在下午14:00-15:00(气象学原理)
逻辑:
1. 上午10:00后,官方气温预报已发布,市场不确定性降低
2. 当 YES token 价格低于 0.35 时,认为市场低估了"高温"概率
3. 以固定金额(默认 $1.0)买入,等待气温确定后价格上涨
4. 可在价格上涨后卖出,或持有至结算(自动按 $1.0 或 $0.0 结算)<a name="2"></a>
# 1. 克隆/进入项目目录(你已经在了)
cd C:\Users\19154\Desktop\skill
# 2. 安装依赖(全程约 2 分钟)
pip install -r requirements.txt
# 3. 复制环境变量模板
copy .env.example .env
# 然后编辑 .env 文件,填入你的密钥(见第4节)
# 4. 测试运行(模拟模式,不花钱)
python sniper.py --dry-run --once
# 5. 看到扫描输出后,说明安装成功!
# 6. 真实交易(谨慎!)
python sniper.py --live --once<a name="3"></a>
# 检查 Python 版本(需要 3.9+)
python --version
# 预期输出: Python 3.10.x 或 3.11.x 或 3.12.x
# 检查 pip
pip --version# Windows
python -m venv venv
venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activate创建 requirements.txt 文件(如果不存在):
python-dotenv>=1.0.0
requests>=2.31.0
aiohttp>=3.9.0
pytz>=2024.1
eth-account>=0.11.0
py-clob-client>=0.2.0 # Polymarket 官方客户端(实盘必需)安装:
pip install -r requirements.txt<a name="4"></a>
| 字段 | 说明 | 从哪里获取 |
|---|---|---|
PRIVATE_KEY | 你的 EOA 钱包私钥(绝密!) | MetaMask 导出私钥(注意:不是助记词) |
PROXY_WALLET | Polymarket 代理钱包地址 | Settings 页面显示的 "Wallet Address" |
POLY_API_KEY | L2 API Key | 待会儿运行命令获得 |
POLY_API_SECRET | L2 API Secret | 待会儿运行命令获得 |
POLY_API_PASSPHRASE | L2 密码 | 待会儿运行命令获得 |
0x 开头的 64 位十六进制字符串⚠️ 安全警告:
SIGNER_TYPEPRIVATE_KEY 属于普通 EOA 钱包→ SIGNER_TYPE = "2"SIGNER_TYPE = "2"(推荐)"1"。
选择1的时候 可以不用运行命令获取L2凭证,直接用邮箱注册polymarket获得一个私钥钱包 去设置页面获取生成L2凭证并且导出私钥 然后复制代理钱包地址
Polymarket 官网看到的钱包地址(通常以 0x 开头),它持有你的 USDC.e 资金。
PRIVATE_KEY: 你的邮箱钱包私钥。你需要从官方导出页面获取。L2凭证在代码所在目录下运行 python sniper.py --live --once 命令行会返回3个凭证 依次填入.env文件中
注意:
SKILLPAY_USER_ID:同PROXY_WALLET的值
<a name="5"></a>
所有配置通过环境变量(.env 文件)管理。
.env 文件在项目根目录创建文件 .env,内容如下:
# ============================================
# 必填:Polymarket 认证
# ============================================
PRIVATE_KEY=0xsk_your_private_key_here_64_hex_chars
PROXY_WALLET=0x1234567890123456789012345678901234567890
POLY_API_KEY=pk_live_xxxxxxxxxxxxxxxxxxxx
POLY_API_SECRET=sk_live_xxxxxxxxxxxxxxxxxxxx
POLY_API_PASSPHRASE=your_passphrase_here
SIGNER_TYPE=1 # 1=邮箱账户, 2=metamask注册的polymarket账户
# ============================================
# 交易参数(建议保持默认)
# ============================================
TRADE_AMOUNT_USD=1.0 # 每笔下单金额(美元)
MIN_ORDERBOOK_SIZE=1.0 # 最小订单簿深度(流动性过滤)
SLIPPAGE_TOLERANCE=0.15 # 滑点容忍度(15%)
ENTRY_THRESHOLD=0.35 # 入场阈值(YES token 价格 < 0.35 才买入)
MAX_COST_PER_TRADE=1.2 # 单笔最大成本(超出则不买)
# ============================================
# 时间窗口(本地时间,UTC+8)
# ============================================
MONITOR_START_HOUR=9 # 监控开始时间(小时,小数形式)
MONITOR_END_HOUR=9.9167 # 监控结束时间(9:55 = 9 + 55/60 = 9.9167)
FALLBACK_START_HOUR=10 # Fallback 开始时间
FALLBACK_WINDOW_MINUTES=5 # Fallback 窗口长度(分钟)
# ============================================
# 执行频率(秒)
# ============================================
CHECK_INTERVAL=300 # 扫描间隔(300秒 = 5分钟)
REPORT_INTERVAL=240 # 报告间隔(240秒 = 4分钟)
# ============================================
# 缓存与重试
# ============================================
CACHE_TTL=3600 # 通用缓存时间(1小时)
GAMMA_CACHE_TTL=300 # Gamma API 缓存(5分钟)
CLOB_CACHE_TTL=30 # CLOB 订单簿缓存(30秒)
MAX_CONCURRENT_REQUESTS=50 # 最大并发请求数
REQUEST_DELAY=0.05 # 请求间延迟(秒)
MAX_RETRIES=3 # 最大重试次数(网络失败时)
RETRY_DELAY=1.0 # 重试延迟(秒)
# ============================================
# 文件路径
# ============================================
STATE_FILE=state.json # 状态文件(持仓、交易历史)
CACHE_DIR=cache # 缓存目录| 参数 | 类型 | 必填 | 说明 | 示例值 | 建议值 |
|---|---|---|---|---|---|
PRIVATE_KEY | string | ✅ | EOA 钱包私钥( hexadecimal,带 0x 前缀) | 0xabc123... | 使用专用钱包,不要用主钱包 |
PROXY_WALLET | string | ✅ | Polynomial 代理钱包地址(从网站导出) | 0x1234... | 与 PRIVATE_KEY 对应的地址 |
POLY_API_KEY | string | ✅ | Polynomial L2 API Key(pk_ 或 sk_ 开头) | pk_live_xxx | 从 Settings → API Keys 创建 |
POLY_API_SECRET | string | ✅ | L2 API Secret | sk_live_xxx | 同上 |
POLY_API_PASSPHRASE | string | ✅ | 创建 API Key 时设置的密码 | myPass123 | 记住它,不会显示第二次 |
SIGNER_TYPE | int | ✅ | 签名器类型:1=邮箱, 2=Gnosis Safe | 0 | 普通钱包选 2 |
| 参数 | 类型 | 默认值 | 说明 | 建议值 | 风险提示 |
|---|---|---|---|---|---|
TRADE_AMOUNT_USD | float | 1.0 | 每笔订单目标金额(美元)。系统会自动计算 shares 数量 | 0.5 - 5.0 | 金额越大,潜在收益/损失都越高 |
MIN_ORDERBOOK_SIZE | float | 1.0 | 订单簿最小深度(需要至少有 $1.0 的流动性) | 1.0 | 太低可能滑点严重 |
SLIPPAGE_TOLERANCE | float | 0.15 (15%) | 滑点容忍度。如果 best_ask > 预期价格 × (1+滑点),则取消订单 | 0.05 - 0.20 | 保守交易选 5%,激进选 20% |
ENTRY_THRESHOLD | float | 0.35 | 入场阈值。YES token 价格必须低于此值才买入 | 0.30 - 0.50 | 太低可能错过机会,太高可能买贵 |
MAX_COST_PER_TRADE | float | 1.2 | 单笔最大成本(USD)。实际成本 = price × shares,如果超过此值则不买 | 1.5 - 2.0 | 用于控制极端滑点损失 |
公式示例:
假设 TRADE_AMOUNT_USD = 1.0, best_ask = 0.5
目标 shares = 1.0 / 0.5 = 2.0 shares
实际 cost = 0.5 × 2.0 = $1.0 OK
假设 best_ask = 0.6, 但 max_price = 0.6 × 1.15 = 0.69
如果 0.6 < 0.69 → 仍可买入
如果 0.7 > 0.69 → 跳过(滑点过大)| 参数 | 类型 | 默认值 | 说明 | 计算方式 |
|---|---|---|---|---|
MONITOR_START_HOUR | float | 9 | 监控开始时间(小时) | 9 = 09:00 |
MONITOR_END_HOUR | float | 9.9167 | 监控结束时间 | 9 + 55/60 = 9.9167 = 09:55 |
FALLBACK_START_HOUR | float | 10 | Fallback 开始时间 | 10 = 10:00 |
FALLBACK_WINDOW_MINUTES | int | 5 | Fallback 窗口长度 | 10:00-10:04 |
时间逻辑:
为什么这样设置:
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
CHECK_INTERVAL | int | 300 | 扫描周期(秒),每 5 分钟检查一次市场 |
REPORT_INTERVAL | int | 240 | 状态报告周期(秒),每 4 分钟打印持仓/PnL |
建议:
CHECK_INTERVAL=60(每分钟)以便快速看到效果CHECK_INTERVAL=300(5分钟)避免 API 限流| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
CACHE_TTL | int | 3600 | 通用缓存生存期(秒),1 小时 |
GAMMA_CACHE_TTL | int | 300 | Gamma Events API 缓存(5分钟) |
CLOB_CACHE_TTL | int | 30 | CLOB 订单簿缓存(30秒) |
MAX_CONCURRENT_REQUESTS | int | 50 | 最大并发请求数(异步) |
REQUEST_DELAY | float | 0.05 | 请求间最小延迟(秒),防限流 |
MAX_RETRIES | int | 3 | 网络失败最大重试次数 |
RETRY_DELAY | float | 1.0 | 重试延迟(秒),指数退避 |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
STATE_FILE | string | state.json | 状态文件,保存持仓、交易历史、统计 |
CACHE_DIR | string | cache | 缓存目录,存储 API 响应(自动创建) |
<a name="6"></a>
除了 .env 配置,代码中还有一些硬编码常量需要了解:
# 城市列表(33个)
CITY_SLUGS = [
"taipei", "seoul", "shanghai", "shenzhen", "wuhan", "beijing", "chongqing",
"tokyo", "singapore", "hong-kong", "tel-aviv", "lucknow",
"london", "warsaw", "paris", "milan", "madrid", "munich", "ankara",
"atlanta", "nyc", "toronto", "miami", "chicago", "dallas", "seattle",
"wellington", "buenos-aires", "sao-paulo",
"denver", "houston", "austin", "san-francisco",
]
# 时区映射(自动将本地时间转为 UTC)
TIMEZONES = {
"nyc": "America/New_York",
"tokyo": "Asia/Tokyo",
"london": "Europe/London",
# ... 共 33 个时区定义
}修改城市:如需增减城市,直接修改 CITY_SLUGS 列表。
GAMMA_API_BASE = "https://gamma-api.polymarket.com"
CLOB_API_BASE = "https://clob.polymarket.com"
BILLING_URL = "https://skillpay.me/api/v1/billing"<a name="7"></a>
python sniper.py [OPTIONS]
选项:
--dry-run 扫描但不实际下单(默认模式)
--once 只运行一次扫描后退出(调试用)
--status 显示当前持仓和统计信息
--live 启用真实交易(需要已配置所有 API 凭证)# 1. 确保 .env 已配置
# 2. 运行模拟模式(不花钱、不下单)
python sniper.py --dry-run --once
# 预期输出:
# [AUTH] Loaded credentials...
# [SCAN] Starting scan...
# [SCAN] Tradeable in monitor window: X
# [BUY] Triggered: ... (如果触发条件满足)
# [DRY] Would buy 1 share @ $0.45 (max: $0.52)
# [OK] State saved, exiting.验证点:
[SCAN] 日志[BUY] Triggered 和 [DRY] Would buy...[OK] State saved, exiting.python sniper.py --status输出示例:
Positions:
- tokyo_2026-03-26: entry_price=0.45, shares=2.22, PnL=$0.12
- london_2026-03-26: entry_price=0.52, shares=1.92, PnL=-$0.08
Stats:
Total trades: 5
Total PnL: $0.45
Billing cost: 0.05 USDT在此之前不要忘了往polymarket网页端充值 只需点击充值按钮即可。
# 方式 A:前台运行(用于测试)
python sniper.py --live --once
# 方式 B:后台持续运行(推荐)
# Windows (使用 start)
start /B python sniper.py --live
# macOS/Linux (使用 screen/tmux)
screen -S weather_sniper
python sniper.py --live
# 按 Ctrl+A, D detached监控日志:
# 实时查看
tail -f sniper.log # 如果配置了日志文件
# 或在代码中添加 FileHandler<a name="8"></a>
| 做法 | 推荐度 | 说明 |
|---|---|---|
| 使用硬件钱包(Ledger/Trezor)+ 代理 | ⭐⭐⭐⭐⭐ | 最安全,但配置复杂 |
| 使用单独 EOA 钱包,小额(< $100) | ⭐⭐⭐⭐ | 平衡安全与便利 |
| 主钱包直接投入 | ⭐⭐ | 风险高,不推荐 |
# ✅ 正确:.env 文件加入 .gitignore
echo ".env" >> .gitignore
# ❌ 错误:不要硬编码在代码里
PRIVATE_KEY="0x..." # 不要这样!
# ✅ 正确:从环境变量读取
private_key = os.getenv('PRIVATE_KEY')<a name="9"></a>
py-clob-client not available原因:未安装依赖
解决:
pip install py-clob-clientInvalid private key 或 Insufficient balance原因:
0x 前缀)解决:
PRIVATE_KEY 是否为 64 位十六进制,带 0x 前缀market not found (404)原因:
token_id 对应的市场未开市解决:
# 手动测试 API
curl "https://gamma-api.polymarket.com/markets?limit=10"
# 确认返回的数据中包含你感兴趣的城市和日期Billing failed (balance: 0.0000)原因:SkillPay 余额耗尽
解决:
rate limit 或 429原因:API 调用过于频繁
解决:
CHECK_INTERVAL(如改为 600 秒)MAX_CONCURRENT_REQUESTSREQUEST_DELAY >= 0.1如需更详细日志,在代码中添加:
import logging
logging.basicConfig(level=logging.DEBUG) # 或 INFO, WARNING删除 state.json 和 cache/ 目录,重启即可:
del state.json
rmdir /S /Q cache
python sniper.py --dry-run --once<a name="10"></a>
A:--dry-run 会调用 execute_buy_order 但:
ClobClientbilling_charge
仅打印"would buy"日志,用于验证逻辑是否正确。A:不会。设计原则是"订单优先":
state.json 持仓信息不更新?A:state.json 在每次成功下单后立即保存。如果没有更新:
A:不建议。多个实例会竞争 state.json 文件,导致数据损坏。
A:编辑 CITY_SLUGS 列表(sniper.py:93-100),或修改 MONITOR_START_HOUR 等时间参数。
A:系统未实现自动卖出,持仓会一直保留到结算:
A:没有自动退订。持仓会保留在 state.json 中,直到手动删除或结算完成。
A:不在当前功能范围内。建议使用外部脚本监控 sniper.log,匹配关键词(如 Billing failed、余额不足)后发送通知。
MIN_CHARGE_AMOUNT 有什么作用?A:这是预检阈值。如果 billing_get_balance 返回值 < 0.01,扫描会提前退出,避免浪费 API 调用。这是保护机制,不是计费金额。
祝交易顺利!记住:风险管理第一,收益第二。 🎯
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files in skills/polymarket-temperature-event-follower of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Polymarket Temperature Event Follower next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Polymarket Temperature Event Follower this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.6k | Automated safety check: Notes | MIT | |
| Reflect on Session Learningscursor/plugins | 11k | 5 repos | ~1.2k | Automated safety check: Pass | None | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Beads Task Memorygastownhall/beads | 28k | — | ~1.2k | Automated safety check: Pass | MIT | |
| MemPalace Memory SearchMemPalace/mempalace | 60k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Compound Learning WriterEveryInc/compound-engineering-plugin | 25k | — | ~2k | Automated safety check: Pass | MIT |
cursor/plugins
Starts three parallel reviewer subagents over the current conversation transcript, then turns their findings into concrete edits to existing skills.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
gastownhall/beads
Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.
MemPalace/mempalace
Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.
EveryInc/compound-engineering-plugin
Records one solved and verified problem as a durable learning in the repository, but only when the reasoning is not already clear from the final code, tests or docs.
slopus/happy
Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
Categories
Automated trader for Polymarket weather highest temperature markets. Polymarket Temperature Event Follower is an agent skill from LeoYeAI/openclaw-master-skills. Automated trader for Polymarket weather highest temperature markets.
Polymarket Temperature Event Follower fits situations like: tasks that involve Agent memory.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a claude-code`. Or copy the skill folder (skills/polymarket-temperature-event-follower in LeoYeAI/openclaw-master-skills) into .claude/skills/polymarket-temperature-event-follower in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a codex`. Or copy the skill folder (skills/polymarket-temperature-event-follower in LeoYeAI/openclaw-master-skills) into .agents/skills/polymarket-temperature-event-follower in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill polymarket-temperature-event-follower -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/polymarket-temperature-event-follower, .gemini/skills/polymarket-temperature-event-follower, .github/skills/polymarket-temperature-event-follower and .opencode/skills/polymarket-temperature-event-follower in your project.
Going by SKILL.md and its folder, Polymarket Temperature Event Follower needs Python for the scripts in its folder, the command-line tools its instructions call (python, pip, python3 and curl) and credentials named PRIVATE_KEY, POLY_API_KEY and POLY_API_SECRET. Our summary lists: Python 3; A credential in PRIVATE_KEY; A credential in POLY_API_KEY.
SKILL.md names 4 domains. In commands or code: gamma-api.polymarket.com, clob.polymarket.com and skillpay.me; the agent is likely to contact these when it follows the instructions. As links in the text: polymarket.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Polymarket Temperature Event Follower is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Polymarket Temperature Event Follower: Reflect on Session Learnings (cursor/plugins, 11k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars), Beads Task Memory (gastownhall/beads, 28k stars) and MemPalace Memory Search (MemPalace/mempalace, 60k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.