# Send PolyEdge - Polymarket Correlation Analyzer to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "polyedge",
    "name": "PolyEdge - Polymarket Correlation Analyzer",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/sbaker5/polyedge",
    "canonicalUrl": "https://clawhub.ai/sbaker5/polyedge",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/polyedge",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=polyedge",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "PLAN.md",
      "SKILL.md",
      "_meta.json",
      "docker-compose.yml",
      "src/__init__.py",
      "src/analyzer.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "polyedge",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T04:16:33.491Z",
      "expiresAt": "2026-05-10T04:16:33.491Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=polyedge",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=polyedge",
        "contentDisposition": "attachment; filename=\"polyedge-0.1.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "polyedge"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/polyedge"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/polyedge",
    "downloadUrl": "https://openagent3.xyz/downloads/polyedge",
    "agentUrl": "https://openagent3.xyz/skills/polyedge/agent",
    "manifestUrl": "https://openagent3.xyz/skills/polyedge/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/polyedge/agent.md"
  }
}
```
## Documentation

### Polymarket Correlation Analyzer

Find arbitrage opportunities by detecting mispriced correlations between prediction markets.

### What It Does

Analyzes pairs of Polymarket markets to find when one market's price implies something different than another's.

Example:

Market A: "Will Fed cut rates?" = 60%
Market B: "Will S&P rally?" = 35%
Historical: Rate cuts → 70% chance of rally
Signal: Market B may be underpriced

### Quick Start

cd src/
python3 analyzer.py <market_a_slug> <market_b_slug>

Example:

python3 analyzer.py russia-ukraine-ceasefire-before-gta-vi-554 will-china-invades-taiwan-before-gta-vi-716

### Output

{
  "market_a": {
    "question": "Russia-Ukraine Ceasefire before GTA VI?",
    "yes_price": 0.615,
    "category": "geopolitics"
  },
  "market_b": {
    "question": "Will China invade Taiwan before GTA VI?",
    "yes_price": 0.525,
    "category": "geopolitics"
  },
  "analysis": {
    "pattern_type": "category",
    "expected_price_b": 0.5575,
    "actual_price_b": 0.525,
    "mispricing": 0.0325,
    "confidence": "low"
  },
  "signal": {
    "action": "HOLD",
    "reason": "Mispricing (3.2%) below threshold"
  }
}

### Signal Types

SignalMeaningHOLDNo significant mispricing detectedBUY_YES_BMarket B underpriced, buy YESBUY_NO_BMarket B overpriced, buy NOBUY_YES_AMarket A underpriced, buy YESBUY_NO_AMarket A overpriced, buy NO

### Confidence Levels

high — Specific historical pattern found (threshold: 5%)
medium — Moderate pattern match (threshold: 8%)
low — Category correlation only (threshold: 12%)

### Files

src/
├── analyzer.py     # Main correlation analyzer
├── polymarket.py   # Polymarket API client
└── patterns.py     # Known correlation patterns

### Adding Patterns

Edit src/patterns.py to add new correlation patterns:

{
    "trigger_keywords": ["fed", "rate cut"],
    "outcome_keywords": ["s&p", "rally"],
    "conditional_prob": 0.70,  # P(rally | rate cut)
    "inverse_prob": 0.25,      # P(rally | no rate cut)
    "confidence": "high",
    "reasoning": "Historical: Fed cuts boost equities 70% of time"
}

### Limitations

Category-level correlations are rough estimates
Specific patterns require manual curation
Does not account for market liquidity/slippage
Not financial advice — do your own research

### API Access (LIVE!)

x402-enabled API endpoint for pay-per-query access.

GET https://api.nshrt.com/api/v1/correlation?a=<slug>&b=<slug>

Pricing: $0.05 USDC on Base L2

Flow:

Make request → Get 402 Payment Required
Pay to wallet in response
Retry with X-Payment: <tx_hash> header
Get analysis

Dashboard: https://api.nshrt.com/dashboard

### Author

Gibson (@GibsonXO on MoltBook)

Built for the agent economy. 🦞
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: sbaker5
- Version: 0.1.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T04:16:33.491Z
- Expires at: 2026-05-10T04:16:33.491Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/polyedge)
- [Send to Agent page](https://openagent3.xyz/skills/polyedge/agent)
- [JSON manifest](https://openagent3.xyz/skills/polyedge/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/polyedge/agent.md)
- [Download page](https://openagent3.xyz/downloads/polyedge)