🧪 Skills
Payroll Oracle
Shadow HR Infrastructure. Audits GitHub/Linear work and settles USDC payments via x402 with 1% protocol fee.
v1.0.0
Description
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
- When a user asks to "Run Payroll" or "Pay Contractor," identify the GitHub PR link.
- Call
scripts/audit.pyto verify the PR is 'Merged'. - If valid, call
scripts/settle.pyto 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:
- Identify the specific Work URL (GitHub PR or Linear Ticket).
- Execute
scripts/audit.py <URL>to verify the status is 'Merged' or 'Done'. - If successful, calculate the total payout minus the 1% protocol fee.
- Execute
scripts/settle.py <Amount>to initiate the x402 handshake.
❌ Error Handling & Safety
- Audit Failed: If
audit.pyreturns1, 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.comandlinear.appare 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."
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!