myriad-on-abstract

myriad-on-abstract is a skill for Claude Code from Abstract-Foundation/abstract-skills. It costs 96 tokens per session (1,463 once invoked), scanned B, original, MIT.

Instructions for integrating Myriad Protocol, a prediction-market platform on Abstract and other blockchains. Prediction markets let users buy and sell shares tied to possible outcomes of events.

In plain words
What is it for?
Use it to list markets, retrieve prices and charts, manage portfolios and events, buy or sell outcome shares, claim winnings, handle token approvals, or use referral-based builder revenue.
Why use it?
It separates fetching market information from trading and explains the API and SDK needed for each part.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the abstract-skills plugin — 7 skills, 1 command shipped together

Good fit Use it to list markets, retrieve prices and charts, manage portfolios and events, buy or sell outcome shares, claim winnings, handle token approvals, or use referral-based builder revenue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abstract-foundation/abstract-skills/myriad-on-abstract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Abstract-Foundation/abstract-skills --skill myriad-on-abstract
Clone the repo
git clone --depth 1 https://github.com/Abstract-Foundation/abstract-skills

Made for: Claude Code.

Or install abstract-skills, the plugin that ships this one along with the rest of its 7 skills, 1 command.

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 myriad-on-abstract

README.md
[![agentmods](https://agentmods.dev/badge/skills/abstract-foundation/abstract-skills/myriad-on-abstract/github.svg)](https://agentmods.dev/skills/abstract-foundation/abstract-skills/myriad-on-abstract)
Your own site
<a href="https://agentmods.dev/skills/abstract-foundation/abstract-skills/myriad-on-abstract"><img src="https://agentmods.dev/badge/skills/abstract-foundation/abstract-skills/myriad-on-abstract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for myriad-on-abstract

Your own site · 80×15
<a href="https://agentmods.dev/skills/abstract-foundation/abstract-skills/myriad-on-abstract"><img src="https://agentmods.dev/badge/skills/abstract-foundation/abstract-skills/myriad-on-abstract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00096 $0.01463
Opus 5 $0.00048 $0.00732
Sonnet 5 $0.00019 $0.00293
Haiku 4.5 $0.00010 $0.00146

Measured 13d ago against content hash c7c7e260b6ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

myriad-on-abstract scanned grade B with 1 finding 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 13d ago.

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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const quote = await fetch("https://api-v2.myriadprotocol.com/markets/quote", { method: "POST",
skills/myriad-on-abstract/SKILL.md · 117 lines

How it starts

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

Myriad on Abstract

Myriad Protocol is a prediction market platform live on Abstract (and Linea, BNB Chain). Integrate it to show market data, let users trade outcome shares, and earn revenue from buy volume.

Architecture

Layer Tool Use For
Read-only data REST API V2 Market listings, prices, charts, portfolio, events
Trading polkamarkets-js SDK Buy/sell shares, claim winnings, ERC-20 approvals
Revenue referralBuy + builder code Earn distributor fee (typically 1%) on buy volume

Quick Start

API Setup

Base URL: https://api-v2.myriadprotocol.com/
Auth: x-api-key: <your_api_key>  (or ?api_key=<your_api_key>)
Rate limit: 50 req/s per IP/key

Contact the Myriad team to obtain an API key.

Common Flow: Fetch Markets → Get Quote → Execute Trade

// 1. Fetch open markets on Abstract
const res = await fetch(
  "https://api-v2.myriadprotocol.com/markets?network_id=2741&state=open&sort=volume_24h&limit=10",
  { headers: { "x-api-key": "<your_api_key>" } }
);
const { data: markets } = await res.json();

// 2. Get a buy quote for a specific outcome
const quote = await fetch("https://api-v2.myriadprotocol.com/markets/quote", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-api-key": "<your_api_key>" },
  body: JSON.stringify({
    market_id: 164,
    outcome_id: 0,
    network_id: 2741,
    action: "buy",
    value: 100,
    slippage: 0.01,
  }),
});
// Returns: shares, price_before, price_after, calldata, fees

// 3. Execute via SDK (see references/sdk.md) or send calldata directly

Common Flow: Claim Winnings

const claim = await fetch("https://api-v2.myriadprotocol.com/markets/claim", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-api-key": "<your_api_key>" },
  body: JSON.stringify({ market_id: 164, network_id: 2741 }),
});
// Returns: action ("claim_winnings" | "claim_voided"), outcome_id, calldata

Read the full file on GitHub · 117 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago First seen · 117 lines · 96 tokens per session scan B c7c7e260b6ba

Subscribe to this mod's changes

myriad-on-abstract is a skill published in the GitHub repository Abstract-Foundation/abstract-skills (10 stars, last pushed 6mo ago), licensed MIT. It adds 96 tokens to every session and 1,463 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.