360 Secure SkillHub
360 安全技能中心

Payroll Oracle

该 Skill 在用户要求运行工资或支付承包商时,先用 audit.py 检查 GitHub PR 或 Linear Ticket 是否已合并或完成,再通过 settle.py 计算并触发 x402 USDC 结算,并扣除 1% 协议费;仅支持 GitHub 和 Linear 链接。

eldan445
eldan445
热度 86.75
最近更新 2026-05-18 12:08:20
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:财务 / 工作流 / API 集成 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add payroll-oracle
Metadata
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,"currency":"USDC","network":"base-mainnet","address":"0x9b5C131453D472F38DcF6450b746ad5869aA64F9"}}

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."