Agent skill

Chainlink Oracles

by ccashwell in ccashwell/evm-cortex

A skill your agent uses when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks.

MITAuto-check passed

Install Chainlink Oracles

skills CLI
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/chainlink-oracles .claude/skills/chainlink-oracles && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
chainlink-oracles
GitHub stars
131
Token cost
~1.3k tokens
SKILL.md length
181 words
Files
1
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks.

  • Integrating Chainlink price feeds
  • SKILL.md covers Core Interface, Complete Safe Price Feed Wrapper, Decimal Handling and Staleness Thresholds by Feed, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Building oracle-dependent contracts

What it does

Chainlink Oracles is an agent skill from ccashwell/evm-cortex. Use when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks. Covers AggregatorV3Interface, decimal handling, L2 sequencer uptime, heartbeat validation, and safe price feed wrappers.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.

When your agent uses it

  • Integrating Chainlink price feeds
  • Building oracle-dependent contracts
  • Implementing staleness checks

Example prompts

  • “/chainlink-oracles”

What it can do on your machine

Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are solidity).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chainlink Oracles loads about 1.3k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 181 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 181 words, ~1,332 tokens.

Download SKILL.mdSave it as .claude/skills/chainlink-oracles/SKILL.md (or your agent's skills folder).
name
chainlink-oracles
description
Use when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks. Covers AggregatorV3Interface, decimal handling, L2 sequencer uptime, heartbeat validation, and safe price feed wrappers.

Core Interface

solidity
import {AggregatorV3Interface} from
    "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

interface AggregatorV3Interface {
    function latestRoundData() external view returns (
        uint80 roundId,
        int256 answer,     // price (check decimals!)
        uint256 startedAt,
        uint256 updatedAt, // critical for staleness
        uint80 answeredInRound
    );
    function decimals() external view returns (uint8);
    function description() external view returns (string memory);
}

Complete Safe Price Feed Wrapper

solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {AggregatorV3Interface} from
    "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

contract ChainlinkPriceFeed {
    error StalePrice(uint256 updatedAt, uint256 maxAge);
    error InvalidPrice(int256 price);
    error SequencerDown();
    error SequencerGracePeriod(uint256 timeSinceUp);

    AggregatorV3Interface public immutable priceFeed;
    AggregatorV3Interface public immutable sequencerFeed; // L2 only
    uint256 public immutable maxStaleness;
    uint256 public constant SEQUENCER_GRACE_PERIOD = 3600; // 1 hour

    constructor(
        address _priceFeed,
        address _sequencerFeed, // address(0) on L1
        uint256 _maxStaleness
    ) {
        priceFeed = AggregatorV3Interface(_priceFeed);
        sequencerFeed = AggregatorV3Interface(_sequencerFeed);
        maxStaleness = _maxStaleness;
    }

    function getPrice() external view returns (uint256) {
        _checkSequencer();

        (
            uint80 roundId,
            int256 answer,
            ,
            uint256 updatedAt,
            uint80 answeredInRound
        ) = priceFeed.latestRoundData();

        if (answer <= 0) revert InvalidPrice(answer);
        if (updatedAt == 0) revert InvalidPrice(answer);
        if (block.timestamp - updatedAt > maxStaleness) {
            revert StalePrice(updatedAt, maxStaleness);
        }
        if (answeredInRound < roundId) revert StalePrice(updatedAt, maxStaleness);

        return uint256(answer);
    }

    function _checkSequencer() internal view {
        if (address(sequencerFeed) == address(0)) return; // L1, skip

        (, int256 answer, , uint256 startedAt, ) = sequencerFeed.latestRoundData();

        // answer == 0: sequencer is up; answer == 1: sequencer is down
        if (answer != 0) revert SequencerDown();

        uint256 timeSinceUp = block.timestamp - startedAt;
        if (timeSinceUp < SEQUENCER_GRACE_PERIOD) {
            revert SequencerGracePeriod(timeSinceUp);
        }
    }

    function decimals() external view returns (uint8) {
        return priceFeed.decimals();
    }
}

Decimal Handling

Chainlink feeds have varying decimals:

Feed TypeDecimalsExample
USD pairs8ETH/USD = 3500.00000000
ETH pairs18USDC/ETH = 0.000285...
Non-USDvariesCheck decimals()
solidity
function normalizePrice(
    AggregatorV3Interface feed,
    uint8 targetDecimals
) internal view returns (uint256) {
    (, int256 answer, , , ) = feed.latestRoundData();
    uint8 feedDecimals = feed.decimals();

    if (feedDecimals < targetDecimals) {
        return uint256(answer) * 10 ** (targetDecimals - feedDecimals);
    } else {
        return uint256(answer) / 10 ** (feedDecimals - targetDecimals);
    }
}

Staleness Thresholds by Feed

FeedHeartbeatRecommended maxStaleness
ETH/USD1 hour3600 + buffer (3900s)
BTC/USD1 hour3900s
USDC/USD24 hours86400 + buffer
Stablecoin pairs24 hours90000s
L2 feedsvariesCheck docs per chain

L2 Sequencer Uptime Feed

On Arbitrum, Optimism, and other L2s, the sequencer can go down. After it comes back, prices may be stale:

Arbitrum Sequencer Feed: 0xFdB631F5EE196F0ed6FAa767959853A9F217697D
Optimism Sequencer Feed: 0x371EAD81c9102C9BF4874A9075FFFf170F2Ee389

Always check the sequencer feed on L2 before trusting price data.

Multi-Oracle Pattern

For critical price dependencies, use multiple oracles with a fallback:

solidity
function getPrice() external view returns (uint256) {
    try this._getChainlinkPrice() returns (uint256 price) {
        return price;
    } catch {
        return _getFallbackPrice(); // Uniswap TWAP, Redstone, etc.
    }
}

Checklist

  • Validate answer > 0 from latestRoundData()
  • Check updatedAt against a staleness threshold
  • Verify answeredInRound >= roundId
  • Handle decimal normalization between feeds and your contract
  • On L2: check sequencer uptime feed + grace period
  • Set staleness threshold based on feed's heartbeat (with buffer)
  • Never hardcode prices or assume 8 decimals
  • Consider a fallback oracle for critical price paths
  • Test oracle failure modes (stale price, zero price, sequencer down)

© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/chainlink-oracles of ccashwell/evm-cortex.

Open the folder on GitHubat commit f8f3301

Compare with similar skills

Chainlink Oracles next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Chainlink Oracles compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chainlink Oracles this skillccashwell/evm-cortex131—~1.3kAutomated safety check: PassMIT
Soroban Oracle Data Feed Auditsickn33/agentic-awesome-skills47k1 repos~1.3kAutomated safety check: PassMIT
Creating Oracle To Postgres Migration Integration Testsgithub/awesome-copilot40k—~1.1kAutomated safety check: PassMIT
Planning Oracle To Postgres Migration Integration Testinggithub/awesome-copilot40k1 repos~669Automated safety check: PassMIT
Building Threat Intelligence Feed Integrationmukul975/Anthropic-Cybersecurity-Skills34k—~2.8kAutomated safety check: PassApache-2.0
Oracleopenclaw/openclaw392k1 repos~1.2kAutomated safety check: NotesMIT

Similar skills

  • Soroban Oracle Data Feed Audit

    sickn33/agentic-awesome-skills

    DeFi price oracle integration and safety audit register: heartbeat bounds, stale price threshold reversion, and TWAP medianizer validation.

    47k GitHub starsUsed in 1 repo~1.3k tokens
    Business, Finance & HRAuto-check passed
  • Building Threat Intelligence Feed Integration

    mukul975/Anthropic-Cybersecurity-Skills

    Builds automated threat intelligence feed integration pipelines connecting STIX/TAXII feeds, open-source threat intel, and commercial TI platforms into SIEM and security tools for real-time IOC…

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Oracle

    openclaw/openclaw

    Oracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.

    392k GitHub starsUsed in 1 repo~1.2k tokens
    DevelopmentAuto-check: notes
  • Pricing

    sickn33/agentic-awesome-skills

    When the user wants help with pricing decisions, packaging, or monetization strategy.

    47k GitHub starsUsed in 1 repo~1.9k tokens
    Sales & SupportAuto-check passed

More from ccashwell/evm-cortex

All 89 skills in this repo
  • Xray Pre Audit

    ccashwell/evm-cortex

    A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.

    131 GitHub stars~25k tokensUpdated 9 days ago
    Auto-check passed
  • Aave Integration

    ccashwell/evm-cortex

    A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.

    131 GitHub stars~1.3k tokensUpdated 9 days ago
    Auto-check passed
  • Access Control Patterns

    ccashwell/evm-cortex

    Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.

    131 GitHub stars~1.8k tokensUpdated 9 days ago
    Auto-check passed
  • Anvil Patterns

    ccashwell/evm-cortex

    A skill your agent uses when running a local Ethereum node with Anvil.

    131 GitHub stars~1.3k tokensUpdated 9 days ago
    Auto-check passed
  • Audit Breadth Scan

    ccashwell/evm-cortex

    A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.

    131 GitHub stars~1.4k tokensUpdated 9 days ago
    Auto-check passed
  • Audit Depth Analysis

    ccashwell/evm-cortex

    A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.

    131 GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed

Questions about Chainlink Oracles

What does Chainlink Oracles do?

A skill your agent uses when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks. Chainlink Oracles is an agent skill from ccashwell/evm-cortex. Use when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks.

When should I use Chainlink Oracles?

Chainlink Oracles fits situations like: integrating Chainlink price feeds; building oracle-dependent contracts; implementing staleness checks.

How do I install Chainlink Oracles in Claude Code?

Run `npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a claude-code`. Or copy the skill folder (skills/chainlink-oracles in ccashwell/evm-cortex) into .claude/skills/chainlink-oracles in your project. Claude Code loads it when a task matches its description.

How do I install Chainlink Oracles in Codex?

Run `npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a codex`. Or copy the skill folder (skills/chainlink-oracles in ccashwell/evm-cortex) into .agents/skills/chainlink-oracles in your project. Codex loads it when a task matches its description.

Can I use Chainlink Oracles in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chainlink-oracles, .gemini/skills/chainlink-oracles, .github/skills/chainlink-oracles and .opencode/skills/chainlink-oracles in your project.

What does Chainlink Oracles need to run?

SKILL.md names no scripts, command-line tools or credentials: Chainlink Oracles is instructions for the agent only.

Does Chainlink Oracles access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Chainlink Oracles safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Chainlink Oracles use?

Chainlink Oracles is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chainlink Oracles use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chainlink Oracles?

Skills that share tags, products or a category with Chainlink Oracles: Soroban Oracle Data Feed Audit (sickn33/agentic-awesome-skills, 47k stars), Creating Oracle To Postgres Migration Integration Tests (github/awesome-copilot, 40k stars), Planning Oracle To Postgres Migration Integration Testing (github/awesome-copilot, 40k stars) and Building Threat Intelligence Feed Integration (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chainlink Oracles?

ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.

Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.