← 返回 Skills 市场
caoqi

Polymarket Opportunities Scanning

作者 caoooqiii · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
262
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install polymarket-opportunities-scanning
功能描述
Scan Polymarket prediction markets for book arbitrage opportunities (overbooked/underbooked multi-outcome markets), generate a formatted report, and deliver...
安全使用建议
What to check before installing or running this skill: - Delivery mismatch: SKILL.md claims Telegram + email delivery, but send-report.js only sends email via Apple Mail (osascript). If you expect Telegram messages, the code does not implement them — review and add a Telegram sender or confirm OpenClaw will handle Telegram separately. - Platform & runtime: The code requires Node.js v18+ (native fetch) and relies on macOS (osascript) for email. The skill metadata did not declare an OS or Node requirement — run it only on a macOS machine with Node 18+ or adapt the email sending method. - Environment variables: Create a .env with SMTP_TO (recipient) as documented. TELEGRAM_CHAT_ID is mentioned in docs but not used by the script; verify whether you need to configure Telegram elsewhere. Do not commit .env to version control. - Safety / network: The scanner only calls Polymarket's public Gamma API and writes a local opportunities.json. There are no obvious external exfiltration endpoints. The email is sent via your local Mail app (osascript), which operates locally and then sends via your configured mail account. - Injection risk: send-report.js builds an AppleScript and passes it to osascript via the shell; it applies escaping for backslashes, quotes, and single quotes before execSync. This reduces command-injection risk, but because event titles come from an external API, review escaping logic if you plan to modify message formatting or forwarding to other command-based senders. - Operational advice: Run the scanner in an isolated environment first (not on a production machine), verify outputs, and confirm the email behavior works as you expect. If you need Telegram delivery, either run the script under an environment where OpenClaw's message tool will send the message, or modify send-report.js to call the Telegram API or a safe bot library (and then declare the required credentials). If you want, I can: (1) point out exact lines to modify to add Telegram sending, (2) produce a variant that uses SMTP directly (instead of osascript) for cross-platform use, or (3) run a more detailed line-by-line coherence check on specific parts of the code.
功能分析
Type: OpenClaw Skill Name: polymarket-opportunities-scanning Version: 1.0.0 The skill bundle is a legitimate tool for identifying arbitrage opportunities on Polymarket using its public Gamma API. The logic in `scripts/scanner.js` correctly calculates price deviations in multi-outcome markets, and `scripts/send-report.js` handles reporting via macOS Apple Mail (using `osascript`) as documented. No evidence of data exfiltration, malicious command execution, or harmful prompt injection was found; the scripts use standard Node.js functionality and follow the stated purpose.
能力评估
Purpose & Capability
The code implements a Polymarket scanner using the public Gamma API, which aligns with the stated purpose. However, the SKILL.md says the report is delivered to BOTH Telegram (via OpenClaw message tool) and email, while the included send-report.js only sends email via Apple Mail/osacript and does not call any OpenClaw 'message' tool or other Telegram API. The skill also requires Node.js v18+ (uses native fetch) and macOS for osascript, but the registry metadata lists no OS restriction or required binaries—this is inconsistent.
Instruction Scope
Runtime instructions are specific: run scanner.js to fetch events, produce opportunities.json, then run send-report.js to send email. The instructions ask you to create a .env with SMTP_TO and mention TELEGRAM_CHAT_ID, but the send-report.js only reads SMTP_TO and does not use TELEGRAM_CHAT_ID. The scanner reads only the Polymarket API and writes local opportunities.json; send-report reads that file and uses AppleScript to send mail. There is no code that reads unrelated system files or exfiltrates secrets to external endpoints beyond the Polymarket API.
Install Mechanism
There is no install spec; the scripts are plain Node.js files that require Node v18+. The SKILL.md suggests running 'npm install' but the code uses only built-in fetch and fs and has no external package downloads. No network downloads or archives are installed by the skill itself.
Credentials
Registry metadata declares no required environment variables, but references/setup.md and send-report.js expect an optional .env (SMTP_TO, optional SMTP_FROM). TELEGRAM_CHAT_ID is documented in setup but not used in code. The skill is macOS dependent for email (osascript) but the skill metadata didn't declare an OS restriction. This mismatch between declared requirements and actual scripts is a proportionality/information gap that could surprise users.
Persistence & Privilege
The skill does not request persistent or elevated privileges, does not modify other skills or system-wide agent configuration, and 'always' is false. It runs as local Node scripts and writes only opportunities.json in the same directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install polymarket-opportunities-scanning
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /polymarket-opportunities-scanning 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Scan Polymarket for book arbitrage opportunities (overbook/underbook), generate ranked report, deliver via Telegram and email. Includes full scanner.js and send-report.js scripts.
元数据
Slug polymarket-opportunities-scanning
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Polymarket Opportunities Scanning 是什么?

Scan Polymarket prediction markets for book arbitrage opportunities (overbooked/underbooked multi-outcome markets), generate a formatted report, and deliver... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 262 次。

如何安装 Polymarket Opportunities Scanning?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install polymarket-opportunities-scanning」即可一键安装,无需额外配置。

Polymarket Opportunities Scanning 是免费的吗?

是的,Polymarket Opportunities Scanning 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Polymarket Opportunities Scanning 支持哪些平台?

Polymarket Opportunities Scanning 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Polymarket Opportunities Scanning?

由 caoooqiii(@caoqi)开发并维护,当前版本 v1.0.0。

💬 留言讨论