aave-v2-plugin

aave-v2-plugin is a skill for Claude Code from okx/plugin-store. It costs 67 tokens per session (8,730 once invoked), scanned C, original, MIT.

Exit tool for Aave V2, a lending system where users deposit assets or borrow against them, on Ethereum, Polygon, and Avalanche. It handles withdrawals, debt repayment, and listed reward claims; new deposits and loans are not supported because the markets are frozen.

In plain words
What is it for?
Use it to redeem aTokens, repay Aave V2 debt, and claim stkAAVE, WMATIC, or WAVAX rewards. New lending and borrowing should use the Aave V3 tool instead.
Why use it?
It helps close existing Aave V2 positions and collect available rewards when the old markets no longer accept new activity.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the aave-v2-plugin plugin — 1 skill shipped together

Good fit Use it to redeem aTokens, repay Aave V2 debt, and claim stkAAVE, WMATIC, or WAVAX rewards. New lending and borrowing should use the Aave V3 tool instead.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okx/plugin-store/aave-v2-plugin
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 okx/plugin-store --skill aave-v2-plugin
Clone the repo
git clone --depth 1 https://github.com/okx/plugin-store

Made for: Claude Code.

Or install aave-v2-plugin, the plugin that ships this one along with the rest of its 1 skill.

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 aave-v2-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/okx/plugin-store/aave-v2-plugin/github.svg)](https://agentmods.dev/skills/okx/plugin-store/aave-v2-plugin)
Your own site
<a href="https://agentmods.dev/skills/okx/plugin-store/aave-v2-plugin"><img src="https://agentmods.dev/badge/skills/okx/plugin-store/aave-v2-plugin/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 aave-v2-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/okx/plugin-store/aave-v2-plugin"><img src="https://agentmods.dev/badge/skills/okx/plugin-store/aave-v2-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,730 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00067 $0.08730
Opus 5.5 $0.00027 $0.03492
Sonnet 5.5 $0.00013 $0.01746
Haiku 4.5 $0.00007 $0.00873

Measured 1mo ago against content hash 80061c953020, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

aave-v2-plugin scanned grade C with 2 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$ONCHAINOS_TMP"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

REMOTE_VER=$(curl -sf --max-time 3 "https://raw.githubusercontent.com/okx/plugin-store/main/skills/aave-v2-plugin/plugin.yaml" | grep '^version' | head -1 | tr -d '"' | awk '{print $2}')
skills/aave-v2-plugin/SKILL.md · 557 lines

How it starts

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

Pre-flight Dependencies (auto-injected by Plugin Store CI)

Run once per session before first use. These checks ensure required tools are installed.

Version check (auto-injected)

AI Agent Instruction: Run this version check before executing any commands from this skill. The check is a read-only fetch from raw.githubusercontent.com — it does not install anything. If it reports Update available, you MUST stop, surface the message to the user verbatim, and obtain explicit confirmation before running the suggested npx skills add … command. Do not run the update silently. After a confirmed update completes, re-read this SKILL.md before proceeding.

# Check for skill updates (1-hour cache).
# Network scope: this block calls raw.githubusercontent.com for the version probe only.
# It does NOT install anything; install requires user-confirmed `npx skills add` below.
UPDATE_CACHE="$HOME/.plugin-store/update-cache/aave-v2-plugin"
CACHE_MAX=3600
LOCAL_VER="0.1.1"
DO_CHECK=true

if [ -f "$UPDATE_CACHE" ]; then
  CACHE_MOD=$(stat -f %m "$UPDATE_CACHE" 2>/dev/null || stat -c %Y "$UPDATE_CACHE" 2>/dev/null || echo 0)
  NOW=$(date +%s)
  AGE=$(( NOW - CACHE_MOD ))
  [ "$AGE" -lt "$CACHE_MAX" ] && DO_CHECK=false
fi

if [ "$DO_CHECK" = true ]; then
  REMOTE_VER=$(curl -sf --max-time 3 "https://raw.githubusercontent.com/okx/plugin-store/main/skills/aave-v2-plugin/plugin.yaml" | grep '^version' | head -1 | tr -d '"' | awk '{print $2}')
  if [ -n "$REMOTE_VER" ]; then
    mkdir -p "$HOME/.plugin-store/update-cache"
    echo "$REMOTE_VER" > "$UPDATE_CACHE"
  fi
fi

REMOTE_VER=$(cat "$UPDATE_CACHE" 2>/dev/null || echo "$LOCAL_VER")
if [ "$REMOTE_VER" != "$LOCAL_VER" ]; then
  echo "Update available: aave-v2-plugin v$LOCAL_VER -> v$REMOTE_VER."
  echo "ACTION REQUIRED: ask the user to confirm before running:"
  echo "  npx skills add okx/plugin-store --skill aave-v2-plugin --global"
  echo "(This contacts the npm registry and github.com/okx/plugin-store and overwrites this skill. Do NOT auto-run.)"
fi

Read the full file on GitHub · 557 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. 1mo ago First seen · 557 lines · 67 tokens per session scan C 80061c953020

Subscribe to this mod's changes

aave-v2-plugin is a skill published in the GitHub repository okx/plugin-store (12 stars, last pushed 18d ago), licensed MIT. It adds 67 tokens to every session and 8,730 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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

defi-protocol-interaction

DeFi protocol interaction skill for Uniswap, Aave, Compound, and other major DeFi protocols.

XSpoonAi/spoon-awesome-skill · 27 tokens

philidor-mcp

DeFi vault risk analytics MCP server: search 1000+ vaults, compare risk scores, list lending markets, underwrite loop venues, analyze protocols, run due diligence. Connect via Streamable HTTP — no API key needed. Use when setting up or using the Philidor MCP server for DeFi vault analysis, risk scoring, market…

Philidor-Labs/philidor-mcp · 86 tokens

philidor-api-handoff

Use this when the user needs Philidor data the free MCP server does not expose (baskets, oracle vectors, enriched or RWA breakdowns, bulk scores, the event stream, or Risk Graph). Point them at the Philidor API docs. Do not invent prices or plan names.

Philidor-Labs/philidor-mcp · 64 tokens

pre-deposit-safety-check

Use this when the user is about to deposit, supply, or loop and wants a pre-deposit safety check. Includes checkloopvenue for collateral/debt loops. Cite only identifiers and figures the Philidor tools return.

Philidor-Labs/philidor-mcp · 52 tokens

market-incident-monitoring

Use this when the user wants lending-market monitoring, a market overview, recent market events, protocol incident history, or which vaults had a critical incident. Cite only identifiers and figures the Philidor tools return.

Philidor-Labs/philidor-mcp · 48 tokens

risk-adjusted-yield

Use this when the user wants a risk-adjusted yield comparison across DeFi vaults: APR next to Philidor score, tier, TVL, and whether deposits are open. Cite only identifiers and figures the Philidor tools return.

Philidor-Labs/philidor-mcp · 53 tokens