返回顶部
a

autonomous-agent自主代理技能

CornerStone MCP x402 skill for agents. Tools for stock predictions, backtests, bank linking, and agent/borrower scores. Payment-protected MCP tools (run_prediction, run_backtest, link_bank_account, get_agent_reputation_score, get_borrower_score, by-email variants) with x402 flow (Aptos + Base). Skill handles 402 → pay → retry. Wallet attestation for onboarding. For marketplaces where agents download and use skills autonomously.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.1.1
安全检测
已通过
3,854
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

autonomous-agent

CornerStone MCP x402 技能(面向智能体)

本技能为您(智能体)提供一套工具,用于:创建和管理 Aptos 及 EVM 钱包、查询余额,以及调用 x402 付费的 MCP 工具(股票预测、回测、银行账户关联、智能体/借款人评分)。支付是自动完成的——当付费工具返回 402 错误时,本技能会自动签名、验证、结算并重试。您只需调用工具,结果就会返回。



快速入门工作流程

首次使用时请按以下顺序操作,之后可直接跳转到所需工具:

  1. 1. 检查钱包 → 调用 getwalletaddresses(无需参数)。
  2. 如果为空 → 调用 createaptoswallet,然后调用 createevmwallet。
  3. 充值 → 调用 creditaptoswallet(Aptos 水龙头)和 fundevmwallet(EVM 水龙头说明)。
  4. 告知用户 在 https://arnstein.ch/flow.html 将返回的地址加入白名单。
  5. 检查余额 → 调用 balanceaptos(进行预测/回测必须有 USDC)和/或 balanceevm(关联银行账户必须有 ETH)。
  6. 使用付费工具 → runprediction、runbacktest、linkbankaccount 或评分工具。

重要提示: 如果地址尚未充值并加入白名单,付费工具将因钱包/白名单错误而失败。请务必先验证钱包和余额。


工具参考

钱包管理工具(本地)

getwalletaddresses

  • - 参数:
  • 返回: { aptos: [{ address, network }], evm: [{ address, network }] } — 可能为空数组。
  • 使用时机: 在任何钱包或付费工具操作之前始终先调用。用于确定已存在的内容。
  • 决策: 如果两个数组都为空 → 创建钱包。如果只有一个为空 → 创建缺失的钱包。如果两者都有条目 → 继续检查余额或使用付费工具。

createaptoswallet

  • - 参数: { force?: boolean, network?: testnet | mainnet } — 默认值:force=false, network=testnet。
  • 返回: { success, address, network, message } 或如果钱包已存在且 force=false,则返回 { success: false, message, addresses }。
  • 使用时机: 当 getwalletaddresses 返回空的 aptos 数组,或用户请求创建新钱包时。
  • 错误处理: 如果 success: false 且钱包已存在,要么使用现有钱包,要么使用 force: true 重试以添加另一个钱包。

createevmwallet

  • - 参数: { force?: boolean, network?: testnet | mainnet } — 默认值:force=false, network=testnet。
  • 返回: { success, address, network, message } 或 { success: false, message, addresses }。
  • 模式与 createaptoswallet 相同。

creditaptoswallet

  • - 参数: { amountoctas?: number } — 默认 100,000,000(= 1 APT)。
  • 在 devnet 上返回: { success: true, address }(程序化水龙头已充值)。
  • 在 testnet 上返回: { success: true, address, fauceturl }(仅说明;无程序化水龙头)。
  • 前置条件: Aptos 钱包必须存在(先调用 createaptoswallet)。
  • 注意: 充值的 APT 用于支付 gas 费;工具以 USDC 支付(约 6 美分)。用户可能需要单独获取测试网 USDC。

fundevmwallet

  • - 参数:
  • 返回: { success: true, address, fauceturl, message }(手动充值说明)。
  • 前置条件: EVM 钱包必须存在(先调用 createevm_wallet)。
  • 注意: 返回一个 Base Sepolia 水龙头 URL。用户必须手动充值;没有程序化水龙头。

余额工具(本地)

balance_aptos

  • - 参数:
  • 返回: { address, balances: { usdc, apt } } 或 { error }。
  • 使用时机: 在调用 runprediction、runbacktest 或评分工具之前,确认是否有足够的 USDC。

balance_evm

  • - 参数: { chain?: string } — 默认 base。支持:base、baseSepolia、ethereum、polygon、arbitrum、optimism。
  • 返回: { address, chain, balance, symbol } 或 { error }。
  • 使用时机: 在调用 linkbankaccount 之前,确认 Base Sepolia 上是否有足够的 ETH。
  • 注意: 对于测试网工具,使用 chain: baseSepolia。

付费 MCP 工具(x402 — 自动处理支付)

所有付费工具都接受 Aptos 和 EVM 支付。本技能会选择最佳选项或遵循 PREFERREDPAYMENTORDER。您永远不会看到 402 错误——只需调用工具并获取结果或错误消息。

run_prediction

  • - 参数: { symbol: string, horizon?: number } — symbol 是股票代码(例如 AAPL),horizon 是天数(默认 30)。
  • 返回: 预测结果对象(预测数据、置信区间等)或 { error }。
  • 费用: 约 6 美分 USDC(Aptos 或 EVM)。
  • 前置条件: 已充值并加入白名单的 Aptos 或 EVM 钱包。
  • 示例调用: run_prediction({ symbol: AAPL, horizon: 30 })

run_backtest

  • - 参数: { symbol: string, startDate?: string, endDate?: string, strategy?: string } — 日期格式为 YYYY-MM-DD,strategy 默认为 chronos。
  • 返回: 回测结果(收益率、回撤、夏普比率等)或 { error }。
  • 费用: 约 6 美分 USDC。
  • 示例调用: run_backtest({ symbol: TSLA, startDate: 2024-01-01, endDate: 2024-12-31, strategy: chronos })

linkbankaccount

  • - 参数:
  • 返回: { link_token } 或用于 Plaid 银行关联的账户 ID,或 { error }。
  • 费用: 约 5 美分(EVM/Base)。
  • 前置条件: 已充值并加入白名单的 EVM 钱包(测试网使用 Base Sepolia)。

getagentreputation_score

  • - 参数: { agentaddress?: string, payerwallet?: string } — 两者均为可选;如果省略则使用配置的钱包。
  • 返回: { reputationscore: number }(例如 100),如果未加入白名单则返回 403,或 { error }。
  • 费用: 通过 x402 约 6 美分,或使用贷方积分免费(传递 payerwallet)。

getborrowerscore

  • - 参数: { agentaddress?: string, payerwallet?: string } — 相同模式。
  • 返回: { score: number }(基础值 100;关联银行后更高)或 { error }。
  • 费用: 通过 x402 约 6 美分,或使用贷方积分免费。

getagentreputationscoreby_email

  • - 参数: { email: string, payerwallet?: string } — 将电子邮件解析为已加入白名单的智能体。
  • 返回: { reputationscore: number } 或 { error }。
  • 前置条件: 服务器上必须设置 SCOREBYEMAIL_ENABLED。费用更高。

getborrowerscorebyemail

  • - 参数: { email: string, payerwallet?: string } — 相同模式。
  • 返回: { score: number } 或 { error }。
  • 前置条件: 服务器上必须设置 SCOREBYEMAILENABLED

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 autonomous-agent-1776109403 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 autonomous-agent-1776109403 技能

通过命令行安装

skillhub install autonomous-agent-1776109403

下载

⬇ 下载 autonomous-agent v2.1.1(免费)

文件大小: 117 KB | 发布时间: 2026-4-14 14:17

v2.1.1 最新 2026-4-14 14:17
- Improved and clarified documentation on wallet management, funding, and prerequisites for all tools.
- Added detailed quick-start workflow and decision trees for common agent operations.
- Explicit step-by-step tool reference for wallet, balance, and paid MCP actions.
- Enhanced error handling documentation, including typical error patterns and recovery steps.
- Now explicitly supports both Aptos and EVM chains for payment, with automatic 402-payment flow and transparent retry.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部