← 返回 Skills 市场
0xastraea

OpenCog

作者 0xAstraea · GitHub ↗ · v0.1.4 · MIT-0
cross-platform ⚠ suspicious
376
总下载
1
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install opencog
功能描述
Trade on prediction markets. Create a local wallet, list markets, check prices, buy and sell outcome shares. Coming soon: create and fund markets directly fr...
安全使用建议
What to consider before installing: - Metadata mismatch: the registry metadata says no env vars are required, but the skill actually requires a PRIVATE_KEY (stored at ~/.openclaw/.env). Ask the publisher to fix registry metadata before trusting automated installs. - Private key risk: the skill writes your secp256k1 private key in plaintext to ~/.openclaw/.env. This is necessary for local signing but dangerous — only use a throwaway/test wallet and set strict permissions (chmod 600). Back up the key if you care about the wallet and do not use a high‑value key. - Test on Sepolia first: the default network is Sepolia (testnet). Never run commands on mainnet unless you explicitly pass --network mainnet and you confirm addresses and amounts with the user. - RPC endpoint trust: if you override PRECOG_RPC_URL, use a trusted RPC provider; a malicious/untrusted RPC can observe transaction contents and metadata. - Review code / client implementation: if you need higher assurance, inspect scripts/lib/client.mjs and other library code to verify there are no unexpected external endpoints or telemetry calls before running npm install. - Install hygiene: run npm install in an isolated environment (container or VM) if you are unsure, and inspect package-lock.json for transitive dependencies. - If you lack experience managing private keys, consider not installing or only experimenting with an empty/test wallet. If the publisher cannot explain the metadata mismatch or provide an updated manifest, treat the skill with extra caution.
功能分析
Type: OpenClaw Skill Name: opencog Version: 0.1.4 The Precog skill bundle is a well-documented and functional tool for interacting with prediction markets on the Base network. It includes scripts for wallet generation, market discovery, and trading, using the standard 'viem' library for blockchain interactions. Security is handled via a locally stored private key in '~/.openclaw/.env', with explicit documentation and safety instructions in 'SKILL.md' that require the AI agent to obtain user confirmation and perform price quoting before any transactions. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found; the code logic is consistent with the stated purpose of providing a decentralized forecasting interface.
能力评估
Purpose & Capability
The name/description (trade on prediction markets) matches the code and scripts: listing markets, quoting, buying/selling, wallet creation. Required binaries (node, npm) and dependency on an Ethereum client library (viem) are expected. However, the registry metadata in the provided manifest claims no required environment variables while SKILL.md and package.json declare PRIVATE_KEY (required) and optional PRECOG_RPC_URL / PRECOG_NETWORK — this metadata mismatch is an incoherence that should be corrected.
Instruction Scope
SKILL.md and the scripts limit actions to local wallet creation, reading the local env file, signing transactions locally and calling blockchain RPCs. Instructions explicitly say the private key is never transmitted and warn about RPC trust. There are no instructions to read unrelated system files or to send data to unexpected external endpoints. The instruction to 'always show output verbatim' is a UI behavior requirement (not an exfiltration step) but could increase accidental disclosure of sensitive on‑chain data if misused.
Install Mechanism
There is no automated download-from-arbitrary-URL step; installation is the normal npm install of dependencies (viem). package-lock.json is present, which pulls packages from the public npm registry — moderate and expected risk for a Node-based blockchain client. No opaque remote archives or URL shorteners are used in the provided files.
Credentials
The skill requires a PRIVATE_KEY for signing transactions and documents storing it at ~/.openclaw/.env in plaintext. Requiring a private key is proportionate to the stated purpose, but storing it in plaintext is a sensitive design choice and increases user risk unless they strictly follow the advice to use a throwaway wallet and correct file permissions. Additionally, the registry metadata incorrectly lists no required env vars while SKILL.md/package.json do — an important inconsistency. PRECOG_RPC_URL being user-configurable is reasonable but carries a documented risk if an untrusted RPC is used.
Persistence & Privilege
The skill does create and use local state (~/.openclaw/.env) to persist the private key, which is normal for a local wallet CLI. 'always' is false and the skill does not request system-wide privilege or modify other skills. The persistence is scoped to the skill’s own directory/config and is explained in the docs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install opencog
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /opencog 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
No code or functionality changes; only metadata documentation has been updated. - Migrated SKILL.md environment variable documentation to the new frontmatter format with `env` object and structured variable descriptions. - No changes to scripts or core logic; user experience remains unchanged.
v0.1.3
No code or functionality changes; only metadata documentation has been updated. - Migrated SKILL.md environment variable documentation to the new frontmatter format with `env` object and structured variable descriptions. - No changes to scripts or core logic; user experience remains unchanged.
v0.1.1
Precog v0.1.1 — Adds mainnet support and environment config enhancements - Full support for Base mainnet (real funds), in addition to Base Sepolia (testnet) - New env vars: PRECOG_NETWORK (default network) and PRECOG_RPC_URL (RPC endpoint override) - All commands now accept a `--network` flag to choose between testnet and mainnet - Updated security, confirmation, and scripting instructions for multi-network usage - Added homepage and improved metadata in SKILL.md - No code changes; documentation and environment config updates only
v0.1.0
- Updated description to clarify trading, wallet creation, and upcoming features; removed direct mention of PrecogMasterV8. - Markets now always indicate the correct collateral (e.g., "MATE" instead of "USDC" in sample outputs). - Announced upcoming support for native market creation and funding from within the skill. - Minor content and instruction cleanups for improved clarity and readability. - No code or functionality changes; documentation only.
v0.0.4
Version 0.0.4 - Added explicit environment variable requirements to metadata: `PRIVATE_KEY` (required for signing transactions) and optional `PRECOG_RPC_URL`. - Detailed security guidelines: clearly describes key file storage, signing process, and RPC usage risks. - Clarifies that node and npm must be available on the system (`bins` metadata). - No changes to functionality, scripts, or user commands. - Documentation now includes a dedicated "Security and local state" section, reinforcing safe usage of practice wallets.
v0.0.3
- Package file updated; no SKILL.md changes detected. - No functional changes to skill logic.
v0.0.2
- Added LICENSE.md to clarify licensing for the project. - No functional or behavioral changes to the skill.
v0.0.1
Initial release of Precog prediction markets skill for Base Sepolia. - Browse active onchain prediction markets and outcome probabilities - Check detailed market info, including categories and resolution criteria - Manage a local secure wallet to buy and sell outcome shares with MATE or USDC - Quote and execute trades with onchain transactions (buy/sell outcome shares) - View your positions, trade history, and balances - Always show script output verbatim in a fenced code block—never reformat results
元数据
Slug opencog
版本 0.1.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 8
常见问题

OpenCog 是什么?

Trade on prediction markets. Create a local wallet, list markets, check prices, buy and sell outcome shares. Coming soon: create and fund markets directly fr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 376 次。

如何安装 OpenCog?

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

OpenCog 是免费的吗?

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

OpenCog 支持哪些平台?

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

谁开发了 OpenCog?

由 0xAstraea(@0xastraea)开发并维护,当前版本 v0.1.4。

💬 留言讨论