# oracle-risk-review

> Review price-feed integrations (Chainlink, Pyth, TWAP) for staleness, manipulation cost and fallbacks.

oracle-risk-review is a paid AI agent skill on Agensi by BanditXBT, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3.15 (one-time purchase)
- Creator: [BanditXBT](https://www.agensi.io/creators/banditxbt)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/oracle-risk-review
- Tags: web3-crypto, security, code-quality-review

## About this skill

Treat every price read as attacker-influenced input. Quantify: *cost to move the price* vs. *profit from the move*.

**Push feeds (Chainlink-style `latestRoundData`)**
- Validate `answer > 0`, `updatedAt` within a heartbeat-derived `maxStaleness` (per feed: heartbeat and deviation threshold differ by asset/chain), `answeredInRound`/round completeness where applicable.
- Normalize `decimals()` per feed (many USD feeds are 8, ETH-denominated are 18); never hardcode.
- Compose feeds (e.g., TOKEN/ETH × ETH/USD) with correct decimals and compounded staleness.
- Check aggregator min/max bounds behavior and feed deprecation/proxy changes.
- **L2s:** check the **sequencer uptime feed** plus a grace period after restart before trusting prices or liquidating.

**Pull oracles (Pyth-style signed updates)**
- Caller supplies the update: verify signature path, `publishTime` freshness window, **confidence interval** (reject or widen margins when conf/price is high), exponent handling (negative `expo`), and update fee payment.
- Latency arbitrage: attacker can choose any valid price within the window; for perps require monotonic `publishTime` and execution price at/after request time.

**On-chain TWAP (Uniswap v3/v4 oracle)**
- Window length vs. cost: manipulating a TWAP requires holding distorted price for the window; short windows on shallow pools are cheap to attack, especially with block-builder control (multi-block MEV). Check observation cardinality is sufficient and pool liquidity depth.
- Never use `slot0`/spot reserves for value-bearing decisions.
- Pair/token decimals ordering (`token0`/`token1`) and tick-to-price math; Q64.96 precision.

## Requires

Nothing beyond your AI agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the oracle-risk-review skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does oracle-risk-review do?

Review price-feed integrations (Chainlink, Pyth, TWAP) for staleness, manipulation cost and fallbacks.

### Which AI agents support oracle-risk-review?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use oracle-risk-review?

Connect your AI agent to Agensi through MCP, then ask it to use oracle-risk-review on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
