← 返回 Skills 市场
marvinmarnold

Passive Savings Crypto

作者 Marvin Arnold · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
122
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install passive-savings-crypto
功能描述
Put idle USDC to work earning yield for you or your agent's wallet. Funds grow automatically and move like regular USDC when you're ready. No protocol intera...
使用说明 (SKILL.md)

Passive Savings Crypto

Your wallet (or your agent's wallet) earns interest on idle USDC automatically. Fund it and forget it. Your balance grows in the background. When you're ready to move funds, it's just a normal ERC20 transfer. No protocol to interact with, no special steps for your agent.

Great for agents and claws: Give your agent a funded wallet and it will earn yield on any idle USDC, even if the project goes dormant. When you come back, the balance is larger and moves like regular USDC. No extra instructions needed.

What You Can Ask

  • "How much have I earned so far?"
  • "Put 200 USDC to work earning yield."
  • "Send 50 USDC to [address]."
  • "What's my balance?"
  • "Check my savings."
  • "Start earning yield on this wallet's USDC."

Script Reference

Action Command
Check balance + earnings node scripts/getSYTBalance.js
Check balance for a specific address node scripts/getSYTBalance.js \x3Caddress>
Deposit USDC to earn yield node scripts/mintSYT.js \x3Camount>
Send USDC to someone node scripts/transferSYT.js \x3Caddress> \x3Camount>

Examples

Depositing

  • "Save 100 USDC" → node scripts/mintSYT.js 100
  • "Put my idle USDC to work" → ask the user how much, then node scripts/mintSYT.js \x3Camount>
  • "Deposit 50 USDC" → node scripts/mintSYT.js 50

Checking earnings

  • "What's my sUSDC balance?" → node scripts/getSYTBalance.js
  • "How much yield have I earned?" → node scripts/getSYTBalance.js
  • "Check the savings balance for 0xABC..." → node scripts/getSYTBalance.js 0xABC...

Sending payments

  • "Pay 20 USDC to 0x7c33..." → node scripts/transferSYT.js 0x7c33... 20
  • "Send 75 USDC to my friend at 0xDEF..." → node scripts/transferSYT.js 0xDEF... 75
  • "Transfer 10 USDC to [address]" → node scripts/transferSYT.js \x3Caddress> 10

Setup

  1. Set AGENT_PRIVATE_KEY to your wallet's private key (never share this)
  2. Set RPC_URL to a Linea RPC endpoint (e.g. from Infura or Alchemy)
  3. Run npm install to install dependencies

This skill operates on Linea mainnet. Ensure your wallet has USDC on Linea before depositing.

How It Works

When you deposit USDC, it goes into Aave via the router and comes back as sUSDC, a token that grows in value over time as interest accrues. When you send a payment, the recipient receives plain USDC. The conversion happens automatically.

For agent and claw developers: sUSDC is a standard ERC20 token. Your agent doesn't need any special logic to move it. A normal transfer is all it takes. Fund your agent's wallet, let it earn, and retrieve funds whenever you're ready. No protocol interactions, no extra instructions required. Idle agent funds no longer sit dead.

Security & Privacy

  • No data leaves the device except signed transactions broadcast to the Linea RPC endpoint.
  • Private key handling: AGENT_PRIVATE_KEY is read from environment variables only, never logged, stored, or transmitted.
  • On-chain only: All state changes are EVM transactions. No backend, no database, no telemetry.
Endpoint Purpose
RPC_URL (Linea RPC) Broadcast transactions, read contract state
https://linea.drpc.org Default fallback RPC if RPC_URL is not set

Agent Guardrails

  • Always use transferSYT.js for payments. Never transfer raw USDC directly. This ensures the recipient gets spendable USDC, not a yield token.
  • Report both figures when showing balance. The nominal sUSDC amount and the underlying USDC value it represents (these diverge as yield accrues).
  • Confirm before depositing or transferring. These are on-chain transactions and cannot be reversed.
  • Network is Linea mainnet. Transactions on other chains will not work with this skill.

Integration

Claude Code

Run once after cloning to register this skill in your Claude Code session:

npm run install-skill

This copies SKILL.md to ~/.claude/skills/passive-savings-crypto/SKILL.md. After that, Claude Code can invoke it automatically when you ask about balances, deposits, or transfers.

OpenAI / Custom Agents

Load tools.json from this repo as your tool definitions. Each tool maps to a CLI command the agent runs via shell:

Tool Command
get_syt_balance node scripts/getSYTBalance.js [address]
mint_syt node scripts/mintSYT.js \x3Camount>
transfer_syt node scripts/transferSYT.js \x3Crecipient> \x3Camount>

Set AGENT_PRIVATE_KEY and RPC_URL in your agent's environment before invoking any tool.

安全使用建议
This skill appears to do what it says: sign Linea transactions to mint/check/transfer sUSDC. Before installing or running it: (1) Only provide AGENT_PRIVATE_KEY to environments you fully control — it's the raw wallet private key and grants full custody. Prefer using a dedicated hot wallet with limited funds rather than your primary wallet. (2) Review and verify the hard-coded contract addresses (USDC, sUSDC, Locker Router) against official sources; if they are wrong or malicious, funds could be lost. (3) Be aware minting performs an infinite USDC approve for the Router (maxUint256); that is convenient but increases attack surface if the Router contract or keys are compromised — consider changing the code to request an approval equal to the deposit amount if you prefer conservative behavior. (4) Use a trusted RPC provider (set RPC_URL explicitly) — RPC operators see your transaction activity and can influence mempool behavior (but cannot learn your private key). (5) If you plan to let an autonomous agent invoke this tool, lock agent permissions and limit wallet funds available to the agent. If you want a higher-assurance setup, avoid placing raw private keys in environment variables and instead use a signing provider/hardware wallet integration (this code currently expects a raw private key).
能力评估
Purpose & Capability
Name/description match the included scripts and tools: this is a CLI/skill for minting, checking, and transferring sUSDC on Linea. Minor wording mismatch: the description/README say "No protocol interactions," but the scripts call a Locker Router deposit and ERC20 approve/transfer functions (on-chain protocol interactions) — likely intended to mean "no manual multi-step protocol flow," not literally no on-chain calls.
Instruction Scope
SKILL.md instructions map directly to the scripts (node scripts/*). At runtime the agent will read AGENT_PRIVATE_KEY and RPC_URL and call Linea RPC endpoints; the scripts do not read or transmit other local files or hidden endpoints. The skill prints links to autohodl.money/docs, but there is no evidence of outbound telemetry beyond RPC calls.
Install Mechanism
Installation is npm install (package.json uses viem). This is a normal, expected install mechanism for a Node.js tool; dependencies come from the npm registry (package-lock.json present). No arbitrary downloads or extract-from-URL steps are used.
Credentials
Only AGENT_PRIVATE_KEY and RPC_URL are required, which is proportionate for a wallet-signing tool. Caveats: AGENT_PRIVATE_KEY is highly sensitive (provides full control of the wallet). The mint script requests infinite USDC approval for the Locker Router (maxUint256) — a common DeFi convenience but increases risk if the router contract or its keys are compromised. The default fallback RPC (https://linea.drpc.org) will be used if RPC_URL is unset — choose a trusted RPC provider.
Persistence & Privilege
Skill is not always-included and does not modify other skills or system-wide settings. package.json offers an install-skill helper that copies SKILL.md into the user's Claude skills folder (reasonable for this ecosystem). Autonomous invocation is permitted (platform default) but not combined with other privilege escalations in this package.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install passive-savings-crypto
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /passive-savings-crypto 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of "passive-savings-crypto" skill. - Automatically earns yield on idle USDC in your (or your agent's) wallet via Linea mainnet. - All balances and payments move like regular USDC; no protocol interactions or extra steps required. - Provides CLI scripts for checking balances/earnings, depositing to earn yield, and transferring USDC. - Designed for simple integration into agents and automation workflows; works with Claude Code, OpenAI, and custom agents. - Emphasizes security (private key stays local) and on-chain-only operation.
元数据
Slug passive-savings-crypto
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Passive Savings Crypto 是什么?

Put idle USDC to work earning yield for you or your agent's wallet. Funds grow automatically and move like regular USDC when you're ready. No protocol intera... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 122 次。

如何安装 Passive Savings Crypto?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install passive-savings-crypto」即可一键安装,无需额外配置。

Passive Savings Crypto 是免费的吗?

是的,Passive Savings Crypto 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Passive Savings Crypto 支持哪些平台?

Passive Savings Crypto 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Passive Savings Crypto?

由 Marvin Arnold(@marvinmarnold)开发并维护,当前版本 v1.0.0。

💬 留言讨论