Skip to main content

AI Skills And Agents

PredictDog can be used from AI coding agents and local automation tools through the public HQSV-Labs/predictdog_skill repository.

That repository packages the PredictDog API into a reusable skill so an agent can search markets, inspect portfolio state, and place supported trades on behalf of the authenticated app user.

PredictDog API key page for agents and automation

What the PredictDog skill is

The skill is available at HQSV-Labs/predictdog_skill on GitHub.

The skill is designed around one required credential:

PREDICTDOG_API_KEY=pd_pat_your_key_here

It uses the fixed PredictDog API base URL:

https://api.predictdog.xyz

And it authenticates requests with:

x-api-key: <PREDICTDOG_API_KEY>

What the skill can do

The skill supports:

  • search markets
  • view wallet and portfolio state
  • view open positions and PnL
  • place supported trades
  • trade recurring crypto rounds on Polymarket, including optional tp/sl
  • list and cancel open orders
  • claim resolved positions

What each skill does

PredictDog Skills page — 6 capability cards

Search prediction markets by keyword, topic, or category. Returns titles, current Yes/No pricing, and liquidity context.

"find BTC markets"

Place a Trade

Buy or sell Polymarket outcomes. Readiness is checked before execution; confirmation is always required.

"buy $20 Yes on Trump wins"

Recurring Crypto Rounds

Trade BTC, ETH, SOL, and BNB directional rounds with optional take-profit and stop-loss thresholds.

"buy BTC 5m up tp 0.65 sl 0.35"

Portfolio & PnL

Inspect open positions, unrealized PnL, average entry, current price, wallet balance, win rate, and cumulative account analytics.

"what's my PnL this week?"

Order Management

List open limit orders and cancel them by order ID.

"cancel all my open orders"

Claim Resolved Positions

Find won, resolved positions and redeem payouts in a single batch flow from natural-language requests.

"claim all my winnings"

What the skill does not do

The skill does not manage deposits or withdrawals. For funding, wallet recovery, or account setup, use PredictDog web.

Before installing any skill

Do these steps first:

  1. Create or log into your PredictDog account.
  2. Complete wallet setup on web if your account is not ready.
  3. Deposit funds if the workflow will trade.
  4. Open Settings -> API Keys.
  5. Create a dedicated API key for the agent, machine, or environment.

Supported installation paths

The public repository documents native installation for Claude Code and OpenClaw. Other agent tools can use the same skill content if they support local skill folders or custom agent instructions.

Tool or platformRecommended install pathNotes
Claude CodeNative skill installBest documented path today
OpenClawNative skill installSupported in the public repo
GitHub Copilot in VS CodeWorkspace skill adaptationGood option for teams working in one repo
Other agent frameworksManual adaptationReuse the repo content as system instructions or a local skill package

Install on Claude Code

Option 1: install the packaged release

curl -L https://github.com/HQSV-Labs/predictdog_skill/releases/latest/download/predictdog-skill.skill \
-o predictdog-skill.skill

unzip predictdog-skill.skill -d ~/.claude/skills/

Option 2: clone the repository directly

git clone https://github.com/HQSV-Labs/predictdog_skill.git ~/.claude/skills/predictdog-skill

After installation, make sure the PREDICTDOG_API_KEY environment variable is available in the shell or app session Claude Code uses.

Install on OpenClaw

You can install by cloning the repo into the OpenClaw skills directory:

git clone https://github.com/HQSV-Labs/predictdog_skill.git ~/.openclaw/skills/predictdog-skill

If your OpenClaw setup exposes a skill installer command, the repo also documents this form:

openclaw skills install github:HQSV-Labs/predictdog_skill

As with Claude Code, the environment where OpenClaw runs must have access to PREDICTDOG_API_KEY.

Use with GitHub Copilot in VS Code

GitHub Copilot can work with skill-style customizations too, but the install model is different from Claude Code.

For Copilot, the practical path is usually a workspace skill rather than a global user-level skill. A typical layout is:

.github/
skills/
predictdog/
SKILL.md
references/

Recommended setup:

  1. Create a workspace folder at .github/skills/predictdog/.
  2. Copy SKILL.md from the public predictdog_skill repo into that folder.
  3. Copy any supporting docs under references/ if your workflow needs them.
  4. Open the workspace in VS Code with GitHub Copilot enabled.
  5. Ask Copilot to use the PredictDog skill for trading or portfolio workflows.

This approach is useful when:

  • a team wants the same skill available inside one repository
  • you want the skill versioned alongside code
  • you want to tailor the description or references for your own workflow

Use with other AI agent tools

Tools that don't support the standard skill packaging format can still use the repository via manual adaptation.

The usual pattern is:

  1. take the instructions from SKILL.md
  2. preserve the required environment variable name PREDICTDOG_API_KEY
  3. preserve the fixed base URL https://api.predictdog.xyz
  4. preserve the safety rules around confirmation and no fund transfers
  5. load that content into the tool's equivalent of a local skill, tool prompt, or agent instruction

This manual path works well for:

  • agent frameworks that support custom system prompts
  • internal automation tools with a plugin or prompt layer
  • local wrappers that translate natural language into PredictDog API calls

Set the API key on different platforms

The simplest pattern is to export the key before starting your agent.

macOS and Linux with bash or zsh

export PREDICTDOG_API_KEY=pd_pat_your_key_here

fish shell

set -x PREDICTDOG_API_KEY pd_pat_your_key_here

Windows PowerShell

$env:PREDICTDOG_API_KEY = "pd_pat_your_key_here"

If your agent runs inside a desktop app, terminal multiplexer, container, or hosted runner, make sure the variable is set in that runtime context rather than only in one local shell tab.

Example usage

Once installed, send plain-language requests:

search for NBA finals markets
what's my portfolio?
buy $10 Yes on Spurs winning the NBA Finals
buy BTC 5m up
buy BTC 5m up tp 0.65 sl 0.35
show my open orders
what's my PnL?

In practice, a safe rollout is:

  1. start with a read query such as portfolio or market search
  2. confirm the agent is talking to the expected account
  3. only then enable trade requests

Readiness failures you may see

The current skill guidance calls out these common readiness states:

  • WALLET_NOT_INITIALIZED
  • INSUFFICIENT_BALANCE
  • APPROVALS_PENDING

In plain language, these usually mean:

  • finish wallet setup on PredictDog web
  • deposit funds into the correct balance rail
  • complete the remaining approval or readiness step on web

This is why an API key alone is not enough to guarantee a trade-ready account.

Security and operating rules

Treat the skill as an integration layer, not as wallet authority.

  • API keys authenticate supported PredictDog app routes.
  • API keys do not replace custody or wallet ownership.
  • API keys do not replace fresh authorization for sensitive wallet-management actions.
  • Each agent or environment should get its own key.
  • Revoke and reissue a key immediately if it appears in logs, prompts, screenshots, or the wrong machine.

The skill itself should also keep these boundaries:

  • confirm before placing trades
  • confirm before cancelling orders
  • never use the skill for deposits or withdrawals
  • redirect users to PredictDog web for funding and account recovery flows

For teams introducing PredictDog to internal agents, the clean rollout pattern is:

  1. one API key per environment
  2. validate safe read endpoints first
  3. confirm the skill is bound to the intended account
  4. enable trading only after explicit confirmation behavior is verified
  5. document where funding and support actions still require the web app

This keeps the operational boundary clear between automated read and trade flows on one side, and account-management or wallet-management flows on the other.