[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EE20N65CZC25TG05C2CXGV":3,"skill-same:01M7EE20N65CZC25TG05C2CXGV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EE20N65CZC25TG05C2CXGV","agent-payment-x402",null,"Add x402 payment execution to AI agents — per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents need to pay for APIs, services, or other agents.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fagent-payment-x402-everything-claude-code-main\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-payment-x402\ndescription: Add x402 payment execution to AI agents — per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents need to pay for APIs, services, or other agents.\norigin: community\n---\n\n# Agent Payment Execution (x402)\n\nEnable AI agents to make autonomous payments with built-in spending controls. Uses the x402 HTTP payment protocol and MCP tools so agents can pay for external services, APIs, or other agents without custodial risk.\n\n## When to Use\n\nUse when: your agent needs to pay for an API call, purchase a service, settle with another agent, enforce per-task spending limits, or manage a non-custodial wallet. Pairs naturally with cost-aware-llm-pipeline and security-review skills.\n\n## How It Works\n\n### x402 Protocol\nx402 extends HTTP 402 (Payment Required) into a machine-negotiable flow. When a server returns `402`, the agent's payment tool automatically negotiates price, checks budget, signs a transaction, and retries — no human in the loop.\n\n### Spending Controls\nEvery payment tool call enforces a `SpendingPolicy`:\n- **Per-task budget** — max spend for a single agent action\n- **Per-session budget** — cumulative limit across an entire session\n- **Allowlisted recipients** — restrict which addresses\u002Fservices the agent can pay\n- **Rate limits** — max transactions per minute\u002Fhour\n\n### Non-Custodial Wallets\nAgents hold their own keys via ERC-4337 smart accounts. The orchestrator sets policy before delegation; the agent can only spend within bounds. No pooled funds, no custodial risk.\n\n## MCP Integration\n\nThe payment layer exposes standard MCP tools that slot into any Claude Code or agent harness setup.\n\n> **Security note**: Always pin the package version. This tool manages private keys — unpinned `npx` installs introduce supply-chain risk.\n\n```json\n{\n  \"mcpServers\": {\n    \"agentpay\": {\n      \"command\": \"npx\",\n      \"args\": [\"agentwallet-sdk@6.0.0\"]\n    }\n  }\n}\n```\n\n### Available Tools (agent-callable)\n\n| Tool | Purpose |\n|------|---------|\n| `get_balance` | Check agent wallet balance |\n| `send_payment` | Send payment to address or ENS |\n| `check_spending` | Query remaining budget |\n| `list_transactions` | Audit trail of all payments |\n\n> **Note**: Spending policy is set by the **orchestrator** before delegating to the agent — not by the agent itself. This prevents agents from escalating their own spending limits. Configure policy via `set_policy` in your orchestration layer or pre-task hook, never as an agent-callable tool.\n\n## Examples\n\n### Budget enforcement in an MCP client\n\nWhen building an orchestrator that calls the agentpay MCP server, enforce budgets before dispatching paid tool calls.\n\n> **Prerequisites**: Install the package before adding the MCP config — `npx` without `-y` will prompt for confirmation in non-interactive environments, causing the server to hang: `npm install -g agentwallet-sdk@6.0.0`\n\n```typescript\nimport { Client } from \"@modelcontextprotocol\u002Fsdk\u002Fclient\u002Findex.js\";\nimport { StdioClientTransport } from \"@modelcontextprotocol\u002Fsdk\u002Fclient\u002Fstdio.js\";\n\nasync function main() {\n  \u002F\u002F 1. Validate credentials before constructing the transport.\n  \u002F\u002F    A missing key must fail immediately — never let the subprocess start without auth.\n  const walletKey = process.env.WALLET_PRIVATE_KEY;\n  if (!walletKey) {\n    throw new Error(\"WALLET_PRIVATE_KEY is not set — refusing to start payment server\");\n  }\n\n  \u002F\u002F Connect to the agentpay MCP server via stdio transport.\n  \u002F\u002F Whitelist only the env vars the server needs — never forward all of process.env\n  \u002F\u002F to a third-party subprocess that manages private keys.\n  const transport = new StdioClientTransport({\n    command: \"npx\",\n    args: [\"agentwallet-sdk@6.0.0\"],\n    env: {\n      PATH: process.env.PATH ?? \"\",\n      NODE_ENV: process.env.NODE_ENV ?? \"production\",\n      WALLET_PRIVATE_KEY: walletKey,\n    },\n  });\n  const agentpay = new Client({ name: \"orchestrator\", version: \"1.0.0\" });\n  await agentpay.connect(transport);\n\n  \u002F\u002F 2. Set spending policy before delegating to the agent.\n  \u002F\u002F    Always verify success — a silent failure means no controls are active.\n  const policyResult = await agentpay.callTool({\n    name: \"set_policy\",\n    arguments: {\n      per_task_budget: 0.50,\n      per_session_budget: 5.00,\n      allowlisted_recipients: [\"api.example.com\"],\n    },\n  });\n  if (policyResult.isError) {\n    throw new Error(\n      `Failed to set spending policy — do not delegate: ${JSON.stringify(policyResult.content)}`\n    );\n  }\n\n  \u002F\u002F 3. Use preToolCheck before any paid action\n  await preToolCheck(agentpay, 0.01);\n}\n\n\u002F\u002F Pre-tool hook: fail-closed budget enforcement with four distinct error paths.\nasync function preToolCheck(agentpay: Client, apiCost: number): Promise\u003Cvoid> {\n  \u002F\u002F Path 1: Reject invalid input (NaN\u002FInfinity bypass the \u003C comparison)\n  if (!Number.isFinite(apiCost) || apiCost \u003C 0) {\n    throw new Error(`Invalid apiCost: ${apiCost} — action blocked`);\n  }\n\n  \u002F\u002F Path 2: Transport\u002Fconnectivity failure\n  let result;\n  try {\n    result = await agentpay.callTool({ name: \"check_spending\" });\n  } catch (err) {\n    throw new Error(`Payment service unreachable — action blocked: ${err}`);\n  }\n\n  \u002F\u002F Path 3: Tool returned an error (e.g., auth failure, wallet not initialised)\n  if (result.isError) {\n    throw new Error(\n      `check_spending failed — action blocked: ${JSON.stringify(result.content)}`\n    );\n  }\n\n  \u002F\u002F Path 4: Parse and validate the response shape\n  let remaining: number;\n  try {\n    const parsed = JSON.parse(\n      (result.content as Array\u003C{ text: string }>)[0].text\n    );\n    if (!Number.isFinite(parsed?.remaining)) {\n      throw new TypeError(\"missing or non-finite 'remaining' field\");\n    }\n    remaining = parsed.remaining;\n  } catch (err) {\n    throw new Error(\n      `check_spending returned unexpected format — action blocked: ${err}`\n    );\n  }\n\n  \u002F\u002F Path 5: Budget exceeded\n  if (remaining \u003C apiCost) {\n    throw new Error(\n      `Budget exceeded: need $${apiCost} but only $${remaining} remaining`\n    );\n  }\n}\n\nmain().catch((err) => {\n  console.error(err);\n  process.exitCode = 1;\n});\n```\n\n## Best Practices\n\n- **Set budgets before delegation**: When spawning sub-agents, attach a SpendingPolicy via your orchestration layer. Never give an agent unlimited spend.\n- **Pin your dependencies**: Always specify an exact version in your MCP config (e.g., `agentwallet-sdk@6.0.0`). Verify package integrity before deploying to production.\n- **Audit trails**: Use `list_transactions` in post-task hooks to log what was spent and why.\n- **Fail closed**: If the payment tool is unreachable, block the paid action — don't fall back to unmetered access.\n- **Pair with security-review**: Payment tools are high-privilege. Apply the same scrutiny as shell access.\n- **Test with testnets first**: Use Base Sepolia for development; switch to Base mainnet for production.\n\n## Production Reference\n\n- **npm**: [`agentwallet-sdk`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fagentwallet-sdk)\n- **Merged into NVIDIA NeMo Agent Toolkit**: [PR #17](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FNeMo-Agent-Toolkit-Examples\u002Fpull\u002F17) — x402 payment tool for NVIDIA's agent examples\n- **Protocol spec**: [x402.org](https:\u002F\u002Fx402.org)\n","# Agent Payment Execution (x402)\n\nEnable AI agents to make autonomous payments with built-in spending controls. Uses the x402 HTTP payment protocol and MCP tools so agents can pay for external services, APIs, or other agents without custodial risk.\n\n## When to Use\n\nUse when: your agent needs to pay for an API call, purchase a service, settle with another agent, enforce per-task spending limits, or manage a non-custodial wallet. Pairs naturally with cost-aware-llm-pipeline and security-review skills.\n\n## How It Works\n\n### x402 Protocol\nx402 extends HTTP 402 (Payment Required) into a machine-negotiable flow. When a server returns `402`, the agent's payment tool automatically negotiates price, checks budget, signs a transaction, and retries — no human in the loop.\n\n### Spending Controls\nEvery payment tool call enforces a `SpendingPolicy`:\n- **Per-task budget** — max spend for a single agent action\n- **Per-session budget** — cumulative limit across an entire session\n- **Allowlisted recipients** — restrict which addresses\u002Fservices the agent can pay\n- **Rate limits** — max transactions per minute\u002Fhour\n\n### Non-Custodial Wallets\nAgents hold their own keys via ERC-4337 smart accounts. The orchestrator sets policy before delegation; the agent can only spend within bounds. No pooled funds, no custodial risk.\n\n## MCP Integration\n\nThe payment layer exposes standard MCP tools that slot into any Claude Code or agent harness setup.\n\n> **Security note**: Always pin the package version. This tool manages private keys — unpinned `npx` installs introduce supply-chain risk.\n\n```json\n{\n  \"mcpServers\": {\n    \"agentpay\": {\n      \"command\": \"npx\",\n      \"args\": [\"agentwallet-sdk@6.0.0\"]\n    }\n  }\n}\n```\n\n### Available Tools (agent-callable)\n\n| Tool | Purpose |\n|------|---------|\n| `get_balance` | Check agent wallet balance |\n| `send_payment` | Send payment to address or ENS |\n| `check_spending` | Query remaining budget |\n| `list_transactions` | Audit trail of all payments |\n\n> **Note**: Spending policy is set by the **orchestrator** before delegating to the agent — not by the agent itself. This prevents agents from escalating their own spending limits. Configure policy via `set_policy` in your orchestration layer or pre-task hook, never as an agent-callable tool.\n\n## Examples\n\n### Budget enforcement in an MCP client\n\nWhen building an orchestrator that calls the agentpay MCP server, enforce budgets before dispatching paid tool calls.\n\n> **Prerequisites**: Install the package before adding the MCP config — `npx` without `-y` will prompt for confirmation in non-interactive environments, causing the server to hang: `npm install -g agentwallet-sdk@6.0.0`\n\n```typescript\nimport { Client } from \"@modelcontextprotocol\u002Fsdk\u002Fclient\u002Findex.js\";\nimport { StdioClientTransport } from \"@modelcontextprotocol\u002Fsdk\u002Fclient\u002Fstdio.js\";\n\nasync function main() {\n  \u002F\u002F 1. Validate credentials before constructing the transport.\n  \u002F\u002F    A missing key must fail immediately — never let the subprocess start without auth.\n  const walletKey = process.env.WALLET_PRIVATE_KEY;\n  if (!walletKey) {\n    throw new Error(\"WALLET_PRIVATE_KEY is not set — refusing to start payment server\");\n  }\n\n  \u002F\u002F Connect to the agentpay MCP server via stdio transport.\n  \u002F\u002F Whitelist only the env vars the server needs — never forward all of process.env\n  \u002F\u002F to a third-party subprocess that manages private keys.\n  const transport = new StdioClientTransport({\n    command: \"npx\",\n    args: [\"agentwallet-sdk@6.0.0\"],\n    env: {\n      PATH: process.env.PATH ?? \"\",\n      NODE_ENV: process.env.NODE_ENV ?? \"production\",\n      WALLET_PRIVATE_KEY: walletKey,\n    },\n  });\n  const agentpay = new Client({ name: \"orchestrator\", version: \"1.0.0\" });\n  await agentpay.connect(transport);\n\n  \u002F\u002F 2. Set spending policy before delegating to the agent.\n  \u002F\u002F    Always verify success — a silent failure means no controls are active.\n  const policyResult = await agentpay.callTool({\n    name: \"set_policy\",\n    arguments: {\n      per_task_budget: 0.50,\n      per_session_budget: 5.00,\n      allowlisted_recipients: [\"api.example.com\"],\n    },\n  });\n  if (policyResult.isError) {\n    throw new Error(\n      `Failed to set spending policy — do not delegate: ${JSON.stringify(policyResult.content)}`\n    );\n  }\n\n  \u002F\u002F 3. Use preToolCheck before any paid action\n  await preToolCheck(agentpay, 0.01);\n}\n\n\u002F\u002F Pre-tool hook: fail-closed budget enforcement with four distinct error paths.\nasync function preToolCheck(agentpay: Client, apiCost: number): Promise\u003Cvoid> {\n  \u002F\u002F Path 1: Reject invalid input (NaN\u002FInfinity bypass the \u003C comparison)\n  if (!Number.isFinite(apiCost) || apiCost \u003C 0) {\n    throw new Error(`Invalid apiCost: ${apiCost} — action blocked`);\n  }\n\n  \u002F\u002F Path 2: Transport\u002Fconnectivity failure\n  let result;\n  try {\n    result = await agentpay.callTool({ name: \"check_spending\" });\n  } catch (err) {\n    throw new Error(`Payment service unreachable — action blocked: ${err}`);\n  }\n\n  \u002F\u002F Path 3: Tool returned an error (e.g., auth failure, wallet not initialised)\n  if (result.isError) {\n    throw new Error(\n      `check_spending failed — action blocked: ${JSON.stringify(result.content)}`\n    );\n  }\n\n  \u002F\u002F Path 4: Parse and validate the response shape\n  let remaining: number;\n  try {\n    const parsed = JSON.parse(\n      (result.content as Array\u003C{ text: string }>)[0].text\n    );\n    if (!Number.isFinite(parsed?.remaining)) {\n      throw new TypeError(\"missing or non-finite 'remaining' field\");\n    }\n    remaining = parsed.remaining;\n  } catch (err) {\n    throw new Error(\n      `check_spending returned unexpected format — action blocked: ${err}`\n    );\n  }\n\n  \u002F\u002F Path 5: Budget exceeded\n  if (remaining \u003C apiCost) {\n    throw new Error(\n      `Budget exceeded: need $${apiCost} but only $${remaining} remaining`\n    );\n  }\n}\n\nmain().catch((err) => {\n  console.error(err);\n  process.exitCode = 1;\n});\n```\n\n## Best Practices\n\n- **Set budgets before delegation**: When spawning sub-agents, attach a SpendingPolicy via your orchestration layer. Never give an agent unlimited spend.\n- **Pin your dependencies**: Always specify an exact version in your MCP config (e.g., `agentwallet-sdk@6.0.0`). Verify package integrity before deploying to production.\n- **Audit trails**: Use `list_transactions` in post-task hooks to log what was spent and why.\n- **Fail closed**: If the payment tool is unreachable, block the paid action — don't fall back to unmetered access.\n- **Pair with security-review**: Payment tools are high-privilege. Apply the same scrutiny as shell access.\n- **Test with testnets first**: Use Base Sepolia for development; switch to Base mainnet for production.\n\n## Production Reference\n\n- **npm**: [`agentwallet-sdk`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fagentwallet-sdk)\n- **Merged into NVIDIA NeMo Agent Toolkit**: [PR #17](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FNeMo-Agent-Toolkit-Examples\u002Fpull\u002F17) — x402 payment tool for NVIDIA's agent examples\n- **Protocol spec**: [x402.org](https:\u002F\u002Fx402.org)\n",{"name":5,"origin":24,"description":7},"community","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fagent-payment-x402-everything-claude-code-main",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-payment-x402",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-payment-x402",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-payment-x402","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fagent-payment-x402-everything-claude-code-main\u002FSKILL.md",true,[],[48,56,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":57,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":55},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":55},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":55},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":55},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":55},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]