← 返回 Skills 市场
protogenosone

Clawhub Skill

作者 Protogenosone · GitHub ↗ · v1.2.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
224
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install clicks-protocol
功能描述
Integrate autonomous USDC yield into AI agent projects on Base. Query live APY, inspect agent treasury state, simulate payment splits, use the MCP server, an...
使用说明 (SKILL.md)

Clicks Protocol

Autonomous DeFi yield for AI agents on Base. 80% liquid, 20% earning by default. No lockup.

When to Use

  • Check current DeFi yield rates on Base: Aave V3 vs Morpho Blue
  • Query whether an agent is registered and inspect its treasury state
  • Preview how a USDC payment gets split between liquid funds and yield
  • Check referral network stats, team bonus status, and earned rewards
  • Add x402-aligned treasury logic to AI agents that hold or route USDC
  • Give agents a monetization layer through referrals, yield spread, and treasury automation

Commands

All commands use the live HTTP MCP Server. No API key, no setup, no dependencies beyond curl + jq.

Current Yield Rates

{baseDir}/scripts/clicks.sh yield-info

Returns: active protocol, APY for Aave and Morpho, total balance, pending fees.

Agent Status

{baseDir}/scripts/clicks.sh agent-info 0xYOUR_AGENT_ADDRESS

Returns: registration status, operator, deposited USDC, yield percentage, wallet balance.

Simulate Payment Split

{baseDir}/scripts/clicks.sh simulate 1000 0xYOUR_AGENT_ADDRESS

Returns: how much goes liquid and how much goes to yield for a given payment amount.

Referral Stats

{baseDir}/scripts/clicks.sh referral 0xYOUR_AGENT_ADDRESS

Returns: direct referrals, total earned, claimable rewards, referral chain, team bonus status.

Protocol Info

{baseDir}/scripts/clicks.sh info

Returns: protocol overview, contract addresses, fee model, and links.

How Clicks Works

  1. Agent receives a USDC payment.
  2. Clicks auto-splits funds: 80% stays liquid, 20% goes to DeFi yield.
  3. YieldRouter picks the best APY automatically between Aave V3 and Morpho Blue.
  4. Principal and earned yield can be withdrawn anytime.
  5. Protocol fee is 2% on yield only, never on principal.

Quick Start for Developers

Read operations work via the script above. For write operations like deposit, withdraw, receive payment, or register agent, install the SDK:

npm install @clicks-protocol/sdk
import { ClicksClient } from '@clicks-protocol/sdk';

const clicks = new ClicksClient(signer);
await clicks.quickStart('1000', agentAddress);

What quickStart('1000', agentAddress) does:

  • registers the agent if needed
  • keeps 800 USDC liquid for operations
  • routes 200 USDC to the best current yield source
  • leaves funds fully non-custodial and withdrawable

With referrer:

await clicks.quickStart('1000', agentAddress, referrerAddress);

That activates the 3-level referral graph for agent-driven distribution.

MCP Server

For MCP-compatible clients like Claude, Cursor, LangChain, or custom agent runtimes:

# Local stdio server, needs private key for write ops
npx @clicks-protocol/mcp-server

# Remote HTTP endpoint, read-only, zero setup
# POST https://mcp.clicksprotocol.xyz/mcp

Available tools (10):

  • clicks_quick_start
  • clicks_receive_payment
  • clicks_withdraw_yield
  • clicks_register_agent
  • clicks_set_yield_pct
  • clicks_get_agent_info
  • clicks_simulate_split
  • clicks_get_yield_info
  • clicks_get_referral_stats
  • clicks_explain (agent-to-agent pitch for discovery)

ADO Hooks for Agents

Clicks is not just treasury infra. It is an agent distribution layer.

On-Chain Attribution for Agents

Each onboarded agent can generate fee share upstream via the on-chain attribution graph:

  • Level 1: 40% of protocol fee
  • Level 2: 20% of protocol fee
  • Level 3: 10% of protocol fee

This lets agents monetize onboarding other agents, tools, teams, or x402 payment flows. Attribution is enforced by ClicksReferral + ClicksFeeV2 on-chain, no off-chain bookkeeping.

Team Tiers

Agents with larger attributed downstream volume can unlock team bonus logic and higher economics. Use this when building agent ecosystems, operator dashboards, or monetized agent templates.

Yield Discovery Bounty

Agents can promote Clicks by showing live APY deltas, explaining idle-USDC optimization, and routing users into a working treasury flow.

x402 + ACP Alignment

Clicks pairs naturally with x402 and Virtuals ACP:

  • payment arrives in USDC via x402 or ACP settlement
  • treasury logic preserves working capital
  • idle balance earns automatically on Aave V3 / Morpho
  • attribution graph adds agent-native monetization

ERC-8004 Trustless Agent

Clicks is registered as agentId 45074 on the Base ERC-8004 Identity Registry. Reputation accrues per completed job. A future ClicksSplitterV5 will read the agent's reputation to offer variable fee tiers (1.0-3.0%) via ClicksReputationMultiplierV1. Attestor Schema V1 published at https://clicksprotocol.xyz/strategy/ATTESTOR-SCHEMA-V1.md.

Key Facts

Chain Base L2
Asset USDC
Split 80% liquid / 20% yield by default
Yield Range Aave and Morpho, auto-routed
Fee 2% on yield only
Lockup None
Referral 3-level: 40% / 20% / 10%
Discovery llms.txt + agent.json + agent-registration.json + OpenAPI
Identity ERC-8004 agentId 45074
Ownership Gnosis Safe Multisig

Verified Contracts

  • ClicksRegistry: 0x23bb0Ea69b2BD2e527D5DbA6093155A6E1D0C0a3
  • ClicksSplitterV4: 0xB7E0016d543bD443ED2A6f23d5008400255bf3C8
  • ClicksFeeV2: 0x8C4E07bBF0BDc3949eA133D636601D8ba17e0fb5
  • ClicksYieldRouter: 0x053167a233d18E05Bc65a8d5F3F8808782a3EECD
  • ClicksReferral: 0x1E5Ab896D3b3A542C5E91852e221b2D849944ccC
  • Safe Multisig Owner: 0xaD8228fE91Ef7f900406D3689E21BD29d5B1D6A9
  • USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Basescan links and examples are in references/contracts.md.

Discovery Surfaces

安全使用建议
This skill appears to do what it says: read-only queries to Clicks Protocol via their MCP server and helper scripts. Before using it: (1) Confirm you trust the MCP endpoint (https://mcp.clicksprotocol.xyz) because remote servers can see requests and could perform actions if given credentials; prefer read-only queries. (2) Never paste private keys or signer secrets to remote endpoints; only run write operations (SDK quickStart or an MCP server that needs a private key) in a controlled environment you trust. (3) Inspect and/or pin the npm SDK before running write flows. (4) Validate any addresses/amounts you pass to the script (the script interpolates arguments into JSON) to avoid accidental injection or malformed requests. (5) Verify the contract addresses on Basescan if you need on-chain assurance.
功能分析
Type: OpenClaw Skill Name: clicks-protocol Version: 1.2.0 The clicks-protocol skill provides a query tool and documentation for integrating USDC yield management into AI agents on the Base network. The primary component, `scripts/clicks.sh`, is a wrapper that uses `curl` and `jq` to interact with a remote MCP server (mcp.clicksprotocol.xyz) for read-only operations like checking APY and agent treasury status. The skill's behavior is consistent with its stated purpose of DeFi integration, and no evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力标签
cryptorequires-walletcan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match what the files do: SKILL.md, contract references, and scripts all target Clicks Protocol and query an MCP server for yield, agent info, simulations and referrals. Required binaries (curl, jq) and the npm SDK suggestion align with described functionality.
Instruction Scope
Runtime instructions and the included script perform only network reads (JSON-RPC POSTs to mcp.clicksprotocol.xyz) and local simulation/printing. SKILL.md also documents write flows (SDK quickStart, running an MCP server with a private key) — those are expected for write operations but carry additional risk if users supply private keys or use the remote MCP for writes. The script itself does not request secrets, but user-provided arguments (addresses/amounts) are interpolated into JSON without escaping—validate inputs before use.
Install Mechanism
There is no automatic install spec; the skill is instruction-only with one helper script. The only third-party install suggested is an npm SDK (@clicks-protocol/sdk) and an optional MCP server (npx @clicks-protocol/mcp-server) which are reasonable for the described write-capable SDK functionality. No downloads from untrusted shorteners or extract/install steps are present.
Credentials
The skill declares no required environment variables or credentials. That matches the provided read-only scripts. The SKILL.md clearly notes that write operations require a signer/private key (via SDK or a locally-run MCP server) — this is appropriate and not requested by the skill itself.
Persistence & Privilege
always:false and default autonomous invocation are used. The skill does not request permanent presence or modify other skills or system-wide config. It does not attempt to store credentials or change agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clicks-protocol
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clicks-protocol 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
1.2.0: ERC-8004 agentId 45074, V2 contract naming, Safe multisig ownership, on-chain attribution framing, clicks_explain tool (10 total)
v1.1.0
Add ADO hooks, x402 positioning, inline contract addresses, stronger referral economics, quickStart with referrer, and richer discovery links.
v1.0.2
Fix display name
v1.0.1
Fix domain mismatch: MCP endpoint now uses mcp.clicksprotocol.xyz instead of workers.dev URL
v1.0.0
Autonomous DeFi yield for AI agents on Base. Query APY, agent status, payment splits, referrals. Zero deps.
元数据
Slug clicks-protocol
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Clawhub Skill 是什么?

Integrate autonomous USDC yield into AI agent projects on Base. Query live APY, inspect agent treasury state, simulate payment splits, use the MCP server, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 224 次。

如何安装 Clawhub Skill?

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

Clawhub Skill 是免费的吗?

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

Clawhub Skill 支持哪些平台?

Clawhub Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Clawhub Skill?

由 Protogenosone(@protogenosone)开发并维护,当前版本 v1.2.0。

💬 留言讨论