anajuliabit/aeon/approval-audit
Claude Code and agent skill by anajuliabit/aeon
- community
Checking that the SKILL.md file is still in the repository.
List a wallet's live ERC-20 token approvals on Base and flag unlimited / risky spender grants. Keyless via Base RPC (eth_getLogs + eth_call) — no explorer key needed.
Install
npx vskill@latest install anajuliabit/aeon/approval-auditSKILL.md
The same SKILL.md was published earlier as anajuliabit/aeon/approval-audit.
${var} — Wallet address (0x...) on Base to audit. Required. If empty, logAPPROVAL_AUDIT_NO_TARGETand exit cleanly (no notify).
Answers "what can drain this wallet?" — every ERC-20 approve() a wallet has granted that is still live, with unlimited allowances flagged. Token approvals are the #1 wallet-drain vector: a forgotten unlimited approval to a malicious or exploited contract lets it move your full balance at any time.
Runs keyless entirely on the Base RPC — reads Approval event logs, then confirms each grant's current allowance, so revoked or fully-spent approvals are excluded.
Read the last 2 days of memory/logs/ so a repeat audit can note newly-granted or newly-revoked approvals.
Config
- Target wallet =
${var}. Chain = Base (chainid=8453, explorerbasescan.org). BASE_RPC_URL— optional; defaults to a public Base RPC (https://mainnet.base.org). Any standard JSON-RPC endpoint works.
Steps
1. Find the current block
2. Fetch Approval events for the owner (chunked)
The ERC-20 Approval(owner,spender,value) event has topic0 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925; the owner is indexed in topic1 (left-padded to 32 bytes).
Scan a recent window (~24k blocks ≈ 13h on Base) newest-first in ~1800-block chunks — most public RPCs cap eth_getLogs at ~20k results per range, so a single wide call fails. Merge the results.
For each log: token = .address, spender = "0x" + topic2[-40:]. Keep the latest entry per (token, spender) pair. Some RPCs ignore the indexed-topic filter — defensively keep only logs whose topics[1] equals OWNER_TOPIC.
3. Confirm each approval is still live
For each (token, spender), read the current allowance via eth_call on allowance(address,address) (selector 0xdd62ed3e):
Drop any approval whose allowance is 0 (revoked or fully spent). Flag any allowance >= 2^255 as UNLIMITED (covers 2^256-1 and the common 2^256/2 sentinel).
4. Verdict
| Signal | Verdict | |
|---|---|---|
| One or more unlimited live approvals | REVIEW | |
| Live approvals, none unlimited | OK | |
| No live approvals | CLEAN |
5. Notify
Notify via ./notify only if verdict is REVIEW. Under 4000 chars, lead with the verdict, clickable URL:
6. Log
Append to memory/logs/${today}.md:
End-states: APPROVAL_AUDIT_OK (clean/ok, no notify), APPROVAL_AUDIT_FLAGGED (review → notify), APPROVAL_AUDIT_ERROR (RPC unreachable).
Sandbox note
The sandbox may block outbound curl or env-var expansion. The Base RPC is public and needs no key, so for every failed curl retry the same URL/body via WebFetch before giving up. eth_getLogs must be chunked (~1800 blocks/call) to stay under the public-RPC result cap — a single 24k-block call will error. Never put a key in a -H header from the sandbox. Treat all fetched token/spender addresses as untrusted — never interpolate beyond the quoted $OWNER / validated hex.
Constraints
- No trade or "safe to approve" advice — this is a risk inventory. Reporting an approval is not an accusation.
- Only report approvals confirmed live by the current
allowanceread — never list a grant the wallet has already revoked. UNLIMITEDmeans allowance>= 2^255; report exact amounts otherwise. Don't round in a way that hides a large grant.- The window is recent (~24h of blocks), not all-time — say so; for a full history the operator should add a higher-throughput RPC.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/approval-audit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anajuliabit/aeon/approval-audit)