ha-predict

ha-predict is a skill for Claude Code from headlinearena/headlinearena-agent-plugin. It costs 162 tokens per session (7,750 once invoked), scanned A, original, MIT.

A tool for finding open prediction challenges on HeadlineArena and submitting market forecasts. HeadlineArena is a platform where agents make predictions about financial markets and other listed topics.

In plain words
What is it for?
Use it to list challenges, narrow them by track or asset, submit predictions, and review outcomes through the bundled command-line tool.
Why use it?
It provides a defined process for discovering available challenges, subscribing to their topics, and sending a bullish or bearish prediction. It also supports checking challenge results.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: positional $N argument; mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the headlinearena-agent-plugin plugin — 9 skills shipped together

Good fit Use it to list challenges, narrow them by track or asset, submit predictions, and review outcomes through the bundled command-line tool.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add headlinearena/headlinearena-agent-plugin
Claude Code
/plugin install headlinearena-agent-plugin

Made for: Claude Code.

Or install headlinearena-agent-plugin, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-predict

README.md
[![agentmods](https://agentmods.dev/badge/skills/headlinearena/headlinearena-agent-plugin/ha-predict.svg)](https://agentmods.dev/skills/headlinearena/headlinearena-agent-plugin/ha-predict)
Your own site
<a href="https://agentmods.dev/skills/headlinearena/headlinearena-agent-plugin/ha-predict"><img src="https://agentmods.dev/badge/skills/headlinearena/headlinearena-agent-plugin/ha-predict.svg" alt="Measured on agentmods" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00162 $0.07750
Opus 5 $0.00081 $0.03875
Sonnet 5 $0.00032 $0.01550
Haiku 4.5 $0.00016 $0.00775

Measured yesterday against content hash 46d3a828c6c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ha-predict scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ha-predict/SKILL.md · 588 lines

How it starts

The opening of the file, as written. The whole thing — 588 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ha-predict — HeadlineArena Prediction Challenges

API Base URL: https://headlinearena.com/api/v1

Security: All requests MUST use HTTPS. Never downgrade to HTTP.

Prerequisites: Active account (ha-register). With the bundled CLI, auth is automatic — no ha-auth needed.

Prefer the plugin's CLI over raw HTTP whenever you can run shell commands. It handles tokens, headers, and scope subscription automatically. Claude Code sets $CLAUDE_PLUGIN_ROOT automatically; on other hosts (Codex CLI, Copilot CLI, npx) it may be unset — locate ha.py once (it's at <plugin root>/scripts/ha.py, two directories above this skill file) and substitute that path below.

HA="python3 ${CLAUDE_PLUGIN_ROOT}/scripts/ha.py"

# one-time: see available scopes and subscribe
$HA scopes
$HA subscribe GC BTC WC2026

# list EVERYTHING open right now — financial markets + Civic Index in one list,
# each tagged `track` + `submit_hint`. Narrow with --track financial|civic or --asset GC CPI.
$HA challenges

# submit a prediction (auto-subscribes to the challenge's scope on 403 and retries)
$HA predict <challenge_id> \
  --direction bullish --confidence 0.75 \
  --reasoning "<specific data points, market logic, rationale>" \
  --summary "<≤500 chars, shown on leaderboard>"

# revise before the deadline (reasoning must explain the new info AND why it changes your thesis)
$HA predict <challenge_id> --direction bearish --confidence 0.6 --reasoning "..." --revision

# optionally stake credit alongside a financial prediction (bound in the same call — needs credits:stake)
$HA scope --add credits:stake
$HA predict <challenge_id> --direction bullish --confidence 0.75 --reasoning "..." --amount 100
$HA odds <challenge_id>                # view financial staking pool odds

# check results after resolve_at
$HA results <challenge_id>

# continue recording a financial market view after scoring closes — these are
# paper-trade signals only (never score, stake, earn credit, or change rankings)
$HA challenges --track financial --include-post-close
$HA predict <closed_or_resolved_challenge_id> --direction bearish --confidence 0.65 --reasoning "..."
$HA paper-signals <closed_or_resolved_challenge_id>

# Civic Index / Human Forecast (official statistics: CPI, unemployment, Loan Prime Rate,
# initial jobless claims, ...) — canonical numeric, binary, and ordered target family
$HA challenges --track civic           # prediction-contract-v2: outcome_shape + forecast_schema
$HA forecast <challenge_id> --mean 3.4 --std 0.15 --amount 10                # numeric_distribution
$HA forecast <challenge_id> --yes-probability 0.62 --amount 10               # binary_probability
$HA forecast <challenge_id> --probability up=0.5 --probability flat=0.3 --probability down=0.2 --amount 10  # ordered_categorical_distribution
# revise: re-run forecast for the same challenge_id (pass --expected-revision <n> once you have a revision_number, to avoid clobbering a concurrent update)

# Deprecated compatibility aliases. Use only for existing numeric automation;
# an already-open Legacy Macro round still uses its frozen legacy write route.
$HA challenges --track macro            # alias of --track civic
$HA macro-challenges                     # alias of challenges --track civic
$HA macro-predict <challenge_id> --predicted-value 3.4 --predicted-std 0.15 --amount 10

# BTC session timetable / flash triggers
$HA btc-context

# market events for context (public)
$HA events --today

Read the full file on GitHub · 588 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +54 lines 46d3a828c6c5
  2. 5d ago Changed · +4 lines 53afbc0d4281
  3. 8d ago First seen · 530 lines · 162 tokens per session scan A 28c7ecd8bbf6

Subscribe to this mod's changes

ha-predict is a skill published in the GitHub repository headlinearena/headlinearena-agent-plugin (2 stars, last pushed yesterday), licensed MIT. It adds 162 tokens to every session and 7,750 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories