微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💸

去中心化薪酬自动审计结算

Payroll Oracle · v1.0.0
专业技能 安全 B 级 作者 eldan445 公开目录收录
976 下载 0 安装 4.7k 收藏 11 浏览

简介

基于 x402 协议的去中心化薪酬结算系统,自动审计 GitHub/Linear 工作证明后执行 USDC 支付,收取 1% 协议费用。来源可信度一般(T3),存在智能合约与私钥安全风险,需人工复核审计结果。

原始描述

Shadow HR Infrastructure. Audits GitHub/Linear work and settles USDC payments via x402 with 1% protocol fee.

通过你的 Agent 添加

安装目录:payroll-oracle/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/payroll-oracle/
Codex CLI~/.codex/skills/payroll-oracle/
DeepSeek Harness~/.agents/skills/payroll-oracle/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Payroll-Oracle 是一个去中心化的工作验证与薪酬结算层,专为 AI Agent 团队的自动化 payroll 场景设计。核心流程分为三步:

  1. 工作证明审计:用户触发 "Run Payroll" 指令后,系统识别 GitHub PR 或 Linear Ticket 链接,调用 scripts/audit.py 验证任务状态是否为 "Merged" 或 "Done";
  2. 费用计算:审计通过后,自动计算 1% 协议费用(100 bps),剩余金额支付给完成工作的开发者;
  3. 链上结算:调用 scripts/settle.py 触发 x402 支付协议,在 Base 主网执行 USDC 转账至指定地址。

显著优点

  • 自动化审计闭环:将代码合并/任务完成状态与资金释放绑定,减少人工对账成本;
  • 透明费率结构:1% 协议费用明确写入配置,无隐藏成本;
  • 多平台支持:原生支持 GitHub 和 Linear 两大主流研发协作平台;
  • 快速结算:基于 Base 网络的 USDC 转账,确认速度快、Gas 成本低。

潜在缺点与局限性

  • 审计范围受限:仅支持 github.com 和 linear.app 域名,无法覆盖 Jira、Notion 等其他协作工具;
  • 单链依赖:结算仅限于 Base 主网,不支持 Ethereum、Polygon 等其他 EVM 或 Layer 2;
  • 智能合约风险:x402 协议及结算合约未经公开审计报告验证,存在潜在漏洞风险;
  • 错误恢复机制薄弱:Gas 失败仅支持 3 次重试,无人工介入或备用支付通道;
  • 法币隔离:纯加密货币结算,无与银行账户或合规支付系统的桥接。

适合人群

  • AI Agent 团队/DAO:需要自动化 bounty 发放的核心贡献者网络;
  • 远程开发者社区:按 PR 计酬的开源项目维护者;
  • Crypto-native 企业:已持有 USDC 国库、熟悉链上操作的小型研发团队。

常规风险

风险类别 具体描述
智能合约风险 x402 协议合约可能含有重入、溢出或权限控制漏洞,导致资金锁定或被盗;
私钥管理风险 结算地址 0x9b5C... 的私钥若泄露,国库资金面临直接转移威胁;
审计误判风险 依赖 GitHub/Linear API 状态,若平台数据延迟或被篡改,可能导致错误付款;
Gas 波动风险 Base 网络拥堵时,3 次重试可能仍失败,造成结算中断;
合规风险 USDC 跨境支付可能触发当地劳动法规、税务申报或外汇管制要求,用户需自行承担合规责任。

技能正文


name: "payroll-oracle" description: "Shadow HR Infrastructure. Audits GitHub/Linear work and settles USDC payments via x402 with 1% protocol fee." version: "1.0.0" metadata: payment: scheme: "x402" type: "commission" commission_bps: 100 # 1% Fee currency: "USDC" network: "base-mainnet" address: "0x9b5C131453D472F38DcF6450b746ad5869aA64F9" # Paste your Trust Wallet address here

Instructions

  1. When a user asks to "Run Payroll" or "Pay Contractor," identify the GitHub PR link.
  2. Call scripts/audit.py to verify the PR is 'Merged'.
  3. If valid, call scripts/settle.py to calculate the 1% fee and trigger the x402 settlement.

⚖️ Payroll-Oracle Documentation

📖 Overview

Payroll-Oracle provides a decentralized verification layer for agent work. It ensures that funds are only released from a treasury when specific 'Proof of Work' conditions are met on-chain or via GitHub/Linear.

🛠️ Activation Criteria

Activate this skill when:

  • The user asks to "pay the team" or "settle invoices."
  • An agent reports a completed task and requests a bounty.
  • A "Payroll Run" is initiated for a specific GitHub repository.

📋 Operational Checklist

When triggered, the agent must:

  1. Identify the specific Work URL (GitHub PR or Linear Ticket).
  2. Execute scripts/audit.py <URL> to verify the status is 'Merged' or 'Done'.
  3. If successful, calculate the total payout minus the 1% protocol fee.
  4. Execute scripts/settle.py <Amount> to initiate the x402 handshake.

❌ Error Handling & Safety

  • Audit Failed: If audit.py returns 1, do NOT proceed. Inform the user that work is unverified.
  • Gas Failures: On the Base network, if gas is insufficient, the x402 facilitator will retry up to 3 times.
  • Unauthorized Links: Only domains github.com and linear.app are supported for auditing.

📝 Examples

User: "Genesis, verify PR #42 on the core repo and pay the dev $200." Agent: "Auditing PR #42... Verified. Settling $198.00 to developer and $2.00 protocol fee to Genesis Treasury."

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

decentralized-financepayrollautomationusdcx402smart-contractbase-networkgithub-integrationbounty

同类 Skill