К основному содержанию
скилл CX Codex

agent-wallet-policy — скилл Claude Code: что делает и как установить

Скилл проверяет лимиты трат кошелька Circle и помогает настроить потолки в USDC на транзакцию, день, неделю или месяц через CLI. Понадобится для контроля расходов автономного агента.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add circlefin/skills --skill agent-wallet-policy -a claude-code
Открыть на GitHub

Что делает agent-wallet-policy

Скилл обращается к утилите circle, чтобы просматривать действующие ограничения на расходы в USDC: разовые, дневные, еженедельные и месячные. Чтение данных через команду circle wallet limit безопасно и не требует подтверждений, возвращая понятный JSON-ответ прямо в сессию.

Изменение или сброс лимитов устроен иначе. Эти операции запрашивают шестизначный одноразовый пароль (OTP), приходящий на электронную почту владельца. Агент ни при каких условиях не должен запрашивать, читать или хранить этот код. Вместо этого он генерирует точную команду circle wallet limit set или circle wallet limit reset, которую пользователь запускает в своём собственном терминале.

Правила трат применяются только к агентским кошелькам в основных сетях вроде BASE или MATIC. Попытка настроить политику на тестовых сетях приведёт к ошибке CLI, а сами лимиты обязаны подчиняться строгому порядку: разовый расход не может превышать дневной, недельный или месячный.

Какие задачи решает

  • проверить текущие лимиты расходов кошелька в USDC
  • подготовить команду для установки дневного или месячного лимита
  • сбросить правила трат кошелька до стандартных значений
  • защитить код подтверждения от попадания в контекст агента

Примеры запросов агенту

  • Покажи текущие лимиты расходов для кошелька Circle на сети ARC
  • Помоги выставить дневной лимит в 5 USDC и месячный в 50 USDC
  • Сбрось политику трат для моего agent wallet

Как установить agent-wallet-policy

1Через Skills CLI (Vercel)

npx skills add circlefin/skills --skill agent-wallet-policy -a claude-code

2Вручную: положить файлы

~/.claude/skills/agent-wallet-policy/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/agent-wallet-policy/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора15

use-user-controlled-wallets Скилл для сборки некастодиальных кошельков на SDK Circle: вход через Google, Apple, Facebook, email OTP или PIN, ключи остаются у пользователя. CX Codex +1 949установок swap-tokens Скилл для сборки свопов токенов в браузере и на сервере через Circle App Kit или Swap Kit. Пригодится, если нужен обмен USDT на USDC или кроссчейн-маршрут. CX Codex +1 848установок unify-balance Скилл учит агента писать код для единого баланса USDC между блокчейнами через Circle App Kit или Unified Balance Kit. Пригодится, если делаете chain-abstracted платежи. CX Codex +1 804установок use-agent-wallet Скилл поднимает агентский USDC-кошелёк Circle через CLI: проверка установки, вход по email и OTP, создание кошелька, статус и баланс. CX Codex +1 804установок use-circle-cli Подключает утилиту Circle CLI к агенту для расчётов в USDC, мостов и оплаты API без постоянных ключей. Выручает при пейволлах и лимитах запросов. CX Codex +1 800установок pay-via-agent-wallet Скилл оплачивает вызовы платных API стейблкоином USDC через Circle CLI. Нужен, когда агенту не хватает ключа доступа, данных о крипторынке или прогнозов. CX Codex +1 797установок fund-agent-wallet Пополняет кошелёк агента Circle монетами USDC через CLI с абстракцией газа. Пригодится при нулевом балансе, покупке с карты или переводе в Gateway. CX Codex +1 794установок recover-eco-funds Скилл для возврата USDC, зависших в старых депозитах Circle CLI с методом eco. Ведёт по шагам с проверками и без угадывания данных интента. CX Codex +1 300установок

Похожие

okx-agentic-wallet okx Скилл подключает агента к кошелькам OKX Onchain OS: балансы, переводы, свопы, бриджи, лимитные ордера и вызовы контрактов через CLI onchainos. CX Codex +1 17 400установок emblem-ai-agent-wallet EmblemAI Даёт агенту доступ к криптокошельку через EmblemVault: балансы, адреса, портфель и операции с подтверждением оператора. CX Codex +1 8 800установок binance-agentic-wallet binance-web3-team Скилл подключает консольный интерфейс кошелька Binance к агенту, позволяя проверять баланс, совершать переводы, торговать на бирже и управлять DeFi-операциями прямо из терминала. CX Codex +1 16 700установок gmgn-wallet-review GMGNAI Скилл делает короткий портрет одного кошелька: тег стиля, одна фраза про результат и одна про следующий шаг. CX Codex +1 2 400установок gmgn-wallet-score GMGNAI Оценивает ончейн-кошелёк по прибыльности, пригодности для копитрейдинга и репутации создателя токенов через GMGN. Помогает проверить адрес перед копированием сделок. CX Codex +1 2 400установок metamask-agent-wallet metamask Скилл описывает команды mm CLI: кошельки, переводы, подписи, свопы, бриджи, торговлю перпами и оплату по x402. CX Codex +1 1 200установок

Рядом в теме «Настройка агента: память, контекст, субагенты»

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Вопросы о agent-wallet-policy

Как установить agent-wallet-policy в Claude Code?

Выполните в терминале команду npx skills add circlefin/skills --skill agent-wallet-policy -a claude-code.

Что делает agent-wallet-policy?

Скилл считывает ограничения на расходы в USDC через утилиту circle и формирует команды для смены лимитов. Сами изменения требуют ввода шестизначного OTP в вашем собственном терминале.

Почему агент не может сам подтвердить установку лимитов?

Коды OTP приравниваются к паролям и приходят на почту владельца. Агент не должен сохранять или пересылать одноразовый пароль, поэтому передаёт точную команду для самостоятельного запуска пользователем.

Исходный текст

SKILL.md · Apache-2.0
---
name: agent-wallet-policy
description: "View spending policy on a Circle agent wallet — per-transaction, daily, weekly, and monthly USDC caps via the `circle` CLI. Use when the user wants to inspect current limits. Setting or resetting limits requires OTP confirmation in an interactive terminal session — the agent hands the user a verbatim command to run themselves; the OTP must never pass through agent storage. Mainnet-only — testnet chains are rejected. Triggers on: spending limit, spending policy, per-tx cap, daily cap, weekly cap, monthly cap, wallet rules, OTP confirmation."
requirements:
  runtimes: []
  connectors: []
---

## Overview

For an overview of the Circle CLI's **full** capability set, see the `use-circle-cli` master skill. This skill is the narrower spending-policy flow.

Circle agent wallets support **spending policies** — per-wallet caps that the CLI enforces on every payment and transfer. There are three operations:

| Operation | Command | OTP required? |
| --- | --- | --- |
| **View** current limits | `circle wallet limit --address <addr> --chain ARC --output json` | No |
| **Set** custom limits | `circle wallet limit set ...` | **Yes — human OTP, run in user's own terminal** |
| **Reset** to defaults | `circle wallet limit reset ...` | **Yes — human OTP, run in user's own terminal** |

Spending policies are **mainnet-only** (testnet chains are rejected; see Troubleshooting / Rules).

## Prerequisites

Two supporting commands set up the flow: a session check (`circle wallet status`) and a wallet-address lookup (`circle wallet list ... --output json`). READ `references/commands.md` for the exact commands.

If `circle wallet status` errors with "Not logged in" or "Terms acceptance is required", hand off to the `use-agent-wallet` skill — it covers install, terms, login, and wallet creation.

## Viewing current limits (in-agent, no OTP)

```bash
circle wallet limit --address <addr> --chain ARC --output json
```

Shows the current per-tx, daily, weekly, and monthly USDC caps (`null` for any unset tier). Safe to call freely — read-only, no money moves, no OTP.

## Setting or resetting limits (interactive terminal — handoff to user)

`circle wallet limit set` and `circle wallet limit reset` are **interactive**. They send a 6-digit OTP to the user's email mid-execution and wait for the code at the CLI's stdin prompt.

**OTPs are password-equivalent. The agent must NOT receive, store, or relay the OTP.** The agent's job here is to hand the user a verbatim command to run in their own terminal, then wait for them to report back.

### 1. Confirm values with the user

Limits must be **monotonic**: `per-tx ≤ daily ≤ weekly ≤ monthly`.

A typical conservative configuration:

| Tier | Suggested USDC value |
| --- | --- |
| `--per-tx` | `1` |
| `--daily` | `5` |
| `--weekly` | `20` |
| `--monthly` | `50` |

Adjust based on the user's stated tolerance. Get explicit yes before generating the command.

### 2. Hand the user the command

Tell the user:

> Setting spending limits requires an OTP I shouldn't see. Please run this command in your own terminal — the CLI will email you a 6-digit code; enter it at the prompt. Let me know once it completes.
>
> ```bash
> circle wallet limit set \
>   --address <addr> --chain ARC \
>   --policy-type stablecoin \
>   --per-tx 1 --daily 5 --weekly 20 --monthly 50
> ```

For reset, the verbatim command is:

```bash
circle wallet limit reset --address <addr> --chain ARC --yes
```

Omit `--yes` if you want the user to see a confirmation prompt before the OTP is sent.

### 3. Verify after the user reports done

Run the read-only limit command to confirm the new caps, then surface them to the user. READ `references/commands.md` for the exact command.

## Troubleshooting

| Symptom | Cause | Fix |
| --- | --- | --- |
| User received multiple OTP emails | Command was re-run while a previous invocation was still waiting | Tell the user to use the **most recent** OTP only. Earlier ones are invalidated. |
| OTP rejected with "prefix mismatch" | User entered an OTP from a previous request | Restart — each `set` / `reset` invocation has a fresh prefix. |
| `Spending policies are mainnet-only` | Tried to set a policy on a testnet chain | Re-run with a mainnet `--chain` value (`BASE`, `MATIC`, etc.). |
| `Limits must be monotonic` | per-tx > daily, daily > weekly, etc. | Re-check the values. `per-tx ≤ daily ≤ weekly ≤ monthly`. |
| `Only agent wallets support spending policies` | Tried on a local (non-agent) wallet | Spending policies apply only to agent wallets created via `circle wallet create`. |

## Rules

- NEVER ask the user to share the OTP with you. The OTP must go directly from the user's email to the CLI prompt in their own terminal — it should never touch the agent's context, tool calls, or any local file.
- If email- or messaging-integration tools are connected (e.g., Gmail or Slack via MCP), the OTP can also be fetched through them — note the option to the user; how to handle it is their call.
- ALWAYS hand the user a verbatim `circle wallet limit set` / `reset` command for them to run in their own terminal. Do NOT try to orchestrate the OTP from chat.
- ALWAYS confirm proposed limit values with the user before generating the command. Show the per-tx / daily / weekly / monthly numbers explicitly and wait for explicit yes.
- Spending policies are mainnet-only — testnet chains are rejected. Don't quote testnet examples.
- Only agent wallets support spending policies, not local wallets.
- After the user reports the change is done, run `circle wallet limit --address <addr> --chain ARC --output json` so the user sees the new caps.

## Reference Links

- Full policy walkthrough (extended examples, edge cases): https://agents.circle.com/skills/wallet-policy.md
- Circle Developer Docs: https://developers.circle.com/llms.txt

## Alternatives

Trigger the `use-agent-wallet` skill instead when:

- The user has not yet logged in to the CLI or accepted Terms.
- `circle wallet status` errors with "Not logged in" or "Terms acceptance is required".
- The user is asking about wallet setup, login, or session state — not policy.

Trigger the `pay-via-agent-wallet` skill instead when:

- The user wants to call, pay for, or use a paid x402 service.
- Limits are already set and the user is ready to spend.

Trigger the `fund-agent-wallet` skill instead when:

- The user wants to add USDC before setting limits.
- The user mentions deposit, fiat on-ramp, fiat purchase, QR-code transfer, or Gateway deposit.

---

DISCLAIMER: This skill is provided "as is" without warranties, is subject to the [Circle Developer Terms](https://console.circle.com/legal/developer-terms), and output generated may contain errors and/or include fee configuration options (including fees directed to Circle); additional details are in the repository [README](https://github.com/circlefin/skills/blob/master/README.md).

© circlefin · Apache-2.0 · circlefin/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой