Skip to content
Back to skills

Xspoonai Official Token Allowance

ASecurity

Manage ERC20 token approvals and allowances.

  • 81 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 7, 2026
blockchainpythonsecurity

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add jiayaoqijia/cryptoskill --skill xspoonai-official-token-allowance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xspoonai Official Token Allowance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xspoonai Official Token Allowance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-xspoonai-official-token-allowance/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-xspoonai-official-token-allowance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: token-allowance
description: Manage ERC20 token approvals and allowances.
version: 1.0.0
author: SpoonOS Contributor
tags: [web3, erc20, defi, security, allowance]
---

# Token Allowance Manager

A security-focused skill to manage ERC20 token approvals. It allows agents to check current allowances, approve spenders (like DEX routers), and revoke permissions to secure funds.

## Quick Start

```python
# Check if Uniswap Router has access to my USDC
allowance = await agent.run_tool(
    "manage_allowance",
    action="check",
    token_address="0xA0b8...",
    spender_address="0xE592..."
)

# Approve 100 USDC
await agent.run_tool(
    "manage_allowance",
    action="approve",
    token_address="0xA0b8...",
    spender_address="0xE592...",
    amount=100.0
)
```

## Scripts

| Script | Purpose |
|--------|---------|
| [allowance.py](scripts/allowance.py) | Checks and manages ERC20 allowances |

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `WEB3_RPC_URL` | Yes | RPC URL for the blockchain |
| `PRIVATE_KEY` | Yes | Required for 'approve' and 'revoke' actions |

## Best Practices

1. Always check allowance before approving (avoid unnecessary txs).
2. Approve exact amounts rather than infinite (security best practice).
3. Revoke allowances for unused DApps to prevent hacks.

Files in this skill

  • README.md1.7 KB
  • SKILL.md1.3 KB
  • SOURCE.md372 B
  • TRUST.auto.yaml2.1 KB
  • scripts/allowance.py8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in blockchain →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.