chainlink

Integrate Chainlink price feeds, VRF v2.5, Automation, and CCIP into Solidity and TypeScript applications.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill chainlink-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chainlink
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/chainlink
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill chainlink-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents frequently produce outdated or incorrect Chainlink integration code — using deprecated VRF v2 interfaces, assuming 8 decimals for all feeds, skipping staleness checks, or confusing Automation with the old Keepers naming — leading to vulnerable or broken oracle integrations. ## Core Features & Use Cases - Price Feeds: Read AggregatorV3Interface feeds with staleness checks, decimal normalization, sanity bounds, and L2 sequencer uptime validation across Ethereum, Arbitrum, Base, Optimism, and Polygon. - VRF v2.5: Request verifiable randomness with subscription management, gas lane (keyHash) selection, and safe fulfillRandomWords callback patterns. - Automation & CCIP: Implement checkUpkeep/performUpkeep contracts, log-triggered upkeeps, and cross-chain messaging or token transfers with allowlisted receivers. - Use Case: Build a lending contract that reads ETH/USD on Arbitrum — the skill provides the sequencer uptime check, 86400s heartbeat threshold, and verified feed address so the integration avoids stale-price exploits. ## Quick Start Use the chainlink skill to write a Solidity contract that reads the ETH/USD price feed on Arbitrum with staleness and sequencer checks.

Frequently Asked Questions about chainlink

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read a Chainlink price feed in Solidity?

Call latestRoundData() on the AggregatorV3Interface feed contract, then validate that answer is positive, updatedAt is within the feed's heartbeat threshold, and answeredInRound is not less than roundId. Always call decimals() rather than assuming 8 decimals.

How to request randomness with Chainlink VRF v2.5?

Extend VRFConsumerBaseV2Plus and call requestRandomWords with a RandomWordsRequest struct containing keyHash, subId, requestConfirmations, callbackGasLimit, and numWords. Fund a subscription with LINK or native token and register your contract as a consumer.

Chainlink vs Pyth oracle for DeFi price feeds?

Chainlink uses a push model with zero-cost reads, 1000+ EVM feeds, and VRF/CCIP/Automation products. Pyth uses a pull model with sub-second freshness and confidence intervals but consumers pay gas per update. Choose Chainlink for broad coverage, Pyth for latency-sensitive liquidations.

Why is my Chainlink price feed returning stale data?

Staleness occurs when the oracle network stops updating, the feed is deprecated, or the L2 sequencer is down. Check the feed status on data.chain.link, verify your staleness threshold matches the feed's heartbeat, and check the sequencer uptime feed on L2s.

Why is my VRF request never fulfilled?

Unfulfilled VRF requests usually mean an underfunded subscription, an unregistered consumer contract, or a wrong keyHash for your chain. Verify the subscription balance, confirm the consumer is added, and use a valid gas lane keyHash.

Does Chainlink Automation work on Arbitrum and Base?

Yes, Chainlink Automation supports multiple chains including Arbitrum and Base. Your contract implements checkUpkeep for off-chain simulation and performUpkeep for on-chain execution, and the upkeep must be funded with LINK to keep executing.