agentleFS
azazelitto21azazelitto21/prediction-markets-skill/AGENTS.md

prediction-markets-skill

AGENTS.md3 starsChanged 5 months agoMITView on GitHub

Guidance for AI agents working in or with this repository. A self-contained, read-only skill giving agents accurate access to Kalshi and Polymarket public market data: discovery, orderbooks, price history, implied probability, cross-venue matching. The skill itself lives in skills/prediction-markets/ (SKILL.md + references + scripts). Install instructions for end-user agents: see llms-install.md. Read skills/prediction-markets/SKILL.md — it has the routing table, workflows and output contract. Key rules: - Run the bundled scripts; do NOT write Kalshi/Polymarket API calls from memory. Endpoints drift…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read skills/prediction-markets/SKILL.md — it has the routing table, workflows and output contract.

    line 14
  2. Distinctive:

    Run the bundled scripts; do NOT write Kalshi/Polymarket API calls from memory.

    line 17
  3. Very specific:

    Every script prints one JSON envelope to stdout.

    line 19
  4. Very specific:

    When numbers look wrong, read skills/prediction-markets/references/gotchas.md first.

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Guidance for AI agents working in or with this repository.

What this is

A self-contained, read-only skill giving agents accurate access to Kalshi and Polymarket public market data: discovery, orderbooks, price history, implied probability, cross-venue matching. The skill itself lives in skills/prediction-markets/ (SKILL.md + references + scripts). Install instructions for end-user agents: see llms-install.md.

If you're an agent USING the skill

Read skills/prediction-markets/SKILL.md — it has the routing table, workflows and output contract. Key rules:

  • Run the bundled scripts; do NOT write Kalshi/Polymarket API calls from memory. Endpoints drift and models hallucinate them — that is the exact problem this repo exists to solve.
  • Every script prints one JSON envelope to stdout; errors are one JSON line on stderr with exit codes 2/3/4/5/6/7 (usage/network/rate-limit/geo/not-found/schema).
  • When numbers look wrong, read skills/prediction-markets/references/gotchas.md first.

If you're an agent CONTRIBUTING here

  • Rules live in CLAUDE.md (hard constraints: stdlib-only, read-only, endpoints only from docs-raw/).
  • docs-raw/ holds snapshots of the official API docs and is the ONLY endpoint ground truth. Regenerate it from live docs before touching API code; never trust memorized endpoints.
  • Definition of done per script: runs against the live API, valid JSON in <5s, tested on 3+ distinct queries, listed in SKILL.md's routing table.
  • Evals live in evals/ (trigger-eval.json, tasks.json). Run them before rewriting SKILL.md.

Scope guarantee

This repo is read-only by design. Trading logic is out of scope permanently (a separate skill may exist for it); do not add order placement, auth flows, or key handling here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.