Skill 11 oracle data feeds
Skill vaquarkhan/web3-agent-skills/skills/skill-11-oracle-data-feeds
Production-grade Agent Skills for Web3 AI agents: 15 workflows, 6 MCP servers, DeFi/NFT/compliance guardrails, and VS Code/JetBrains installers.
npx -y skills add vaquarkhan/web3-agent-skills --skill skill-11-oracle-data-feedsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Integrates oracle and data feed services including Chainlink and Pyth price feeds, VRF randomness, and Chainlink Automation keepers. Use when consuming on-chain price data, random numbers, or conditional automation.
SKILL.md
2.3 KB, as published. Nobody here has run it
Oracle & Data Feeds
When to Use
- Reading price feeds for DeFi calculations
- Requesting verifiable random numbers (VRF)
- Setting up Chainlink Automation (keepers)
- Validating oracle freshness and deviation thresholds
- Comparing multi-oracle prices for manipulation detection
Prerequisites
- MCP:
price-feed-server,blockchain-rpc-server - Skill-08 for oracle manipulation risk assessment
Workflow
1. Chainlink Price Feeds
AggregatorV3Interface feed = AggregatorV3Interface(aggregatorAddress);
(, int256 price, , uint256 updatedAt, ) = feed.latestRoundData();
Validation checks:
updatedAtwithin heartbeat (varies: 1h ETH/USD, 24h long-tail)price > 0- Compare with Pyth/CoinGecko — flag if deviation > 2%
Feed addresses: see knowledge-base/protocols/ and Chainlink docs per chain.
2. Pyth Network
- Pull model: update price feeds in same tx via
getUpdateData() - Hermes API for off-chain price reads
- Lower latency than push oracles for L2s
3. Chainlink VRF v2.5
- Subscribe or direct funding
- Request randomness:
requestRandomWords(keyHash, subId, minConfirmations, callbackGasLimit, numWords) - Fulfill in callback:
fulfillRandomWords(requestId, randomWords) - Never use block variables (
blockhash,timestamp) for randomness
4. Chainlink Automation
| Type | Use Case |
|---|---|
| Time-based | Periodic harvest, rebalance |
| Custom logic | checkUpkeep() returns upkeepNeeded |
| Log trigger | React to specific events |
Register upkeep with LINK funding; monitor balance.
5. Oracle Security
- Use multiple sources for critical decisions (liquidations, minting)
- Implement staleness checks and circuit breakers
- TWAP for AMM-derived prices (minimum 30-minute window)
- Never use spot DEX price as sole oracle for high-value ops
References
references/chainlink-feeds.mdreferences/pyth-integration.mdprice-feed-serverMCP tools