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

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing lending, trading, liquidation, collateral, pricing, and other functions that depend on Pyth, Switchboard, custom, or on-chain price feeds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plamentsv/plamen/oracle-analysis
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oracle-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/plamentsv/plamen/oracle-analysis"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/oracle-analysis.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 118
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.1 $0.00025 $0.03582
Opus 5.5 $0.00010 $0.01433
Sonnet 5.5 $0.00005 $0.00716
Haiku 4.5 $0.00003 $0.00358

Measured 3mo ago against content hash 6a48c80b5306, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (320 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 3,582 once invoked, about $0.0001 per session on Opus 5.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

oracle-analysis compared with skills from other repositories

oracle-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oracle-analysisPlamenTSV/plamenSkill3202mo agoMITA25Claude Code, Codex
trading-solanaalsk1992/CloddsBotSkill3.1k16d agoMITA28Claude Code, Codex
publicalsk1992/CloddsBotSkill3.1k16d agoMITA0Claude Code, Codex
pumpfunalsk1992/CloddsBotSkill3.1k16d agoMITA38Claude Code, Codex
bagsalsk1992/CloddsBotSkill3.1k16d agoMITA16Claude Code, Codex
dexalsk1992/CloddsBotSkill3.1k16d agoMITA25Claude Code, Codex
divergencealsk1992/CloddsBotSkill3.1k16d agoMITA17Claude Code, Codex