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.
A skill your agent uses when integrating Chainlink price feeds, building oracle-dependent contracts, or implementing staleness checks.
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .claude/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oraclesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/chainlink-oracles .agents/skills/chainlink-oracles && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .agents/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/chainlink-oracles .cursor/skills/chainlink-oracles && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .cursor/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ccashwell/evm-cortex.git --path skills/chainlink-oracles--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/chainlink-oracles .gemini/skills/chainlink-oracles && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .gemini/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ccashwell/evm-cortex chainlink-oraclesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/chainlink-oracles .github/skills/chainlink-oracles && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .github/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill chainlink-oracles -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex chainlink-oracles --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/chainlink-oracles .opencode/skills/chainlink-oracles && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "chainlink-oracles" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/chainlink-oracles into .opencode/skills/chainlink-oracles/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chainlink-oracles", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
chainlink-oraclesA 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. 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.
Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 181 words, ~1,332 tokens.
.claude/skills/chainlink-oracles/SKILL.md (or your agent's skills folder).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);
}// 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();
}
}Chainlink feeds have varying decimals:
| Feed Type | Decimals | Example |
|---|---|---|
| USD pairs | 8 | ETH/USD = 3500.00000000 |
| ETH pairs | 18 | USDC/ETH = 0.000285... |
| Non-USD | varies | Check decimals() |
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);
}
}| Feed | Heartbeat | Recommended maxStaleness |
|---|---|---|
| ETH/USD | 1 hour | 3600 + buffer (3900s) |
| BTC/USD | 1 hour | 3900s |
| USDC/USD | 24 hours | 86400 + buffer |
| Stablecoin pairs | 24 hours | 90000s |
| L2 feeds | varies | Check docs per chain |
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: 0x371EAD81c9102C9BF4874A9075FFFf170F2Ee389Always check the sequencer feed on L2 before trusting price data.
For critical price dependencies, use multiple oracles with a fallback:
function getPrice() external view returns (uint256) {
try this._getChainlinkPrice() returns (uint256 price) {
return price;
} catch {
return _getFallbackPrice(); // Uniswap TWAP, Redstone, etc.
}
}answer > 0 from latestRoundData()updatedAt against a staleness thresholdansweredInRound >= roundId© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/chainlink-oracles of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Chainlink Oracles this skillccashwell/evm-cortex | 131 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Soroban Oracle Data Feed Auditsickn33/agentic-awesome-skills | 47k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Creating Oracle To Postgres Migration Integration Testsgithub/awesome-copilot | 40k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Planning Oracle To Postgres Migration Integration Testinggithub/awesome-copilot | 40k | 1 repos | ~669 | Automated safety check: Pass | MIT | |
| Building Threat Intelligence Feed Integrationmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Oracleopenclaw/openclaw | 392k | 1 repos | ~1.2k | Automated safety check: Notes | MIT |
sickn33/agentic-awesome-skills
DeFi price oracle integration and safety audit register: heartbeat bounds, stale price threshold reversion, and TWAP medianizer validation.
github/awesome-copilot
Creates integration test cases targeting Oracle for .NET data access artifacts.
github/awesome-copilot
Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations.
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…
openclaw/openclaw
Oracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.
sickn33/agentic-awesome-skills
When the user wants help with pricing decisions, packaging, or monetization strategy.
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.
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.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
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.
Chainlink Oracles fits situations like: integrating Chainlink price feeds; building oracle-dependent contracts; implementing staleness checks.
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.
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.
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.
SKILL.md names no scripts, command-line tools or credentials: Chainlink Oracles is instructions for the agent only.
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.
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.
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.
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.
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.
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.