← Back to Skills Marketplace
376
Downloads
1
Stars
0
Active Installs
8
Versions
Install in OpenClaw
/install opencog
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install opencog - After installation, invoke the skill by name or use
/opencog - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 376 downloads so far.
How do I install OpenCog?
Run "/install opencog" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenCog free?
Yes, OpenCog is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenCog support?
OpenCog is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenCog?
It is built and maintained by 0xAstraea (@0xastraea); the current version is v0.1.4.
More Skills