oracle-analysis

oracle-analysis is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 25 tokens per session (3,582 once invoked), scanned A, original, MIT.

A security review guide for price or data oracles in Aptos Move. Oracles are external sources that provide values such as asset prices; the guide checks freshness, decimals, invalid values, confidence, aggregation, and failures.

In plain words
What is it for?
Reviewing lending, trading, liquidation, collateral, pricing, and other functions that depend on Pyth, Switchboard, custom, or on-chain price feeds.
Why use it?
It helps prevent contracts from using outdated, mis-scaled, zero, negative, or otherwise unreliable oracle data.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/plamentsv/plamen/oracle-analysis
Any agent
npx skills add PlamenTSV/plamen --skill oracle-analysis
Clone the repo
git clone --depth 1 https://github.com/PlamenTSV/plamen

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oracle-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/plamentsv/plamen/oracle-analysis.svg)](https://agentmods.dev/skills/plamentsv/plamen/oracle-analysis)
Your own site
<a href="https://agentmods.dev/skills/plamentsv/plamen/oracle-analysis"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/oracle-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.03582
Opus 5 $0.00013 $0.01791
Sonnet 5 $0.00005 $0.00716
Haiku 4.5 $0.00003 $0.00358

Measured 5d ago against content hash 6a48c80b5306, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

oracle-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/skills/aptos/oracle-analysis/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ORACLE_ANALYSIS Skill

Trigger Pattern: ORACLE flag (required) Inject Into: Breadth agents, depth-external, depth-edge-case Purpose: Analyze all oracle integrations in Aptos Move protocols for staleness, decimal errors, zero/negative prices, confidence intervals, multi-oracle aggregation, and failure modes

For every oracle the protocol consumes:

STEP PRIORITY: Steps 6 (Failure Modes) and 5c (Deviation Reference) are where HIGH/CRITICAL severity findings most commonly hide. Do NOT rush these steps. If constrained, skip conditional sections (4a-4d, 5a) before skipping 5c or 6.

1. Oracle Inventory

Enumerate ALL oracle data sources the protocol reads:

Oracle Type Module Path Functions Called Consumers (protocol functions) Update Frequency Freshness Guarantee
{name} Pyth / Switchboard / Custom / On-chain TWAP {module::path} {get_price / get_result / etc.} {list all} {expected} {documented or UNKNOWN}

Aptos oracle landscape:

  • Pyth Network: pyth::price_feed module, returns Price { price: I64, conf: u64, expo: I64, publish_time: u64 }
  • Switchboard: switchboard::aggregator module, returns aggregator results with mantissa and scale
  • Custom price feeds: Protocol-specific oracles using Table or SmartTable for price storage
  • On-chain TWAP: DEX-derived time-weighted prices (Thala, LiquidSwap, Pontem)

For each oracle: What decision does the protocol make based on this data? (pricing, liquidation threshold, reward rate, rebase trigger, collateral valuation, etc.)

Hardcoded stablecoin pricing: Does the protocol skip oracle lookup for any asset and hardcode its price (e.g., USDC = 1e8)? All assets require dynamic oracle pricing — stablecoins depeg.

2. Staleness Analysis

For each oracle identified in Step 1:

2a. Staleness Checks Present?

Oracle Timestamp Checked? Max Staleness Enforced? Staleness Threshold Appropriate?
{name} YES/NO YES/NO {seconds or NONE} {analysis}

Read the full file on GitHub · 271 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 271 lines · 25 tokens per session scan A 6a48c80b5306

Subscribe to this mod's changes

oracle-analysis is a skill published in the GitHub repository PlamenTSV/plamen (281 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 3,582 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

prowler-tour

Keeps product-tour definitions aligned with the UI features they describe. Trigger: When modifying UI components that have associated tours, editing tour definition files, or renaming data-tour-id attributes.

prowler-cloud/prowler · 41 tokens

analyzing-ethereum-smart-contract-vulnerabilities

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.

xalgorix/xalgorix · 49 tokens

evm-bytecode-analysis

Analyze supplied deployed EVM runtime bytecode with EVMole or guide a separate application in integrating a published EVMole Rust, Go, Python, or JavaScript binding. Use for unverified-contract inspection, ABI reconstruction from runtime code, selector discovery, storage-access analysis, EVM control-flow inspection…

cdump/evmole · 135 tokens

organize-test

Reorganize Foundry test files (.t.sol) for readability and consistency without changing semantics. Use when the user asks to organize, reorder, clean up, tidy, or reformat a test file's structure.

OriginProtocol/origin-dollar · 43 tokens

verify-deployment-pr

Verifies a POST-EXECUTION mainnet (or other network) smart-contract deployment PR for this repo: confirms every deployed contract is listed in the PR description, that the on-chain verified source (and its dependencies) matches the codebase via sol2uml diff, that constructor args and the initialize tx match the…

OriginProtocol/origin-dollar · 117 tokens