omh-spend-gate
它能做什么
该技能确保你在任何资金通过 AI 智能体流动之前,准确看到将要支付的内容。适合允许 AI 工具进行刷卡付款、预订或付费数据调用的人。
适用场景
- ✓当 AI 智能体即将代表你进行刷卡付款时。
- ✓当付费 API 请求要求先付款才返回结果时。
- ✓当智能体即将预订一项需要花钱的服务时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-spend-gate/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我购买之前,请向我显示收款方、含手续费的总额、支出上限和退款条款,并等待我批准。”
每周 5 个新技能,1 分钟读完。
工作原理
在提交任何内容之前,智能体先填写一张预先支出卡,包括收款方、总额、上限和审批人。只有看到收据之后,它才会把购买标记为完成。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Spend Gate
This is an OMH spend-gate workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
spend-gate exists because money movement had at most one native guard, on one rail: where Hermes' saved-card fill is present it asks before filling a card and refuses when nobody can confirm, while an HTTP 402 call, a wallet transfer, a booking, or a paid data endpoint had no pre-spend check, no receipt rule, and no cap. omh-provider-profile-posture claims no payment at all.
First Steps
- Check that a person can answer in this session; in a scheduled, webhook, API-server, single-query, background-worker, or subagent run, prepare the card and stop before any payment surface.
- Read the quote from its source and fill the pre-spend card from it, the cap included, before anything is submitted.
Do Not Use When
- The page task moves no money -- open a URL, log in, fill a form, capture blockers.
- Users report a payment failure in the product and the ask is to sort those reports; use
omh-feedback-triage. - The ask is budget vs actual, a budget variance, or the month-end close; use
omh-finance-analysis. - The ask is a provider profile's posture or whether its secrets are present, with nothing bought; use
omh-provider-profile-posture.
Examples
Good example:
- Prompt: the api answered 402 payment required, pay it so we get the dataset
- Expected behavior: Read the amount, currency, payee, and method from the 402 challenge, show pre_spend_card/v1 with the cap and what remains of it, wait for the person's typed yes, pay through the client they installed, and report done only with the receipt header and the amount charged.
- Why: A 402 call spends the moment it is retried with a credential; the card is the one point where the person sees the price.
Bad example:
- Prompt: the checkout timed out, just click pay again
- Expected behavior: Mark the first charge unknown, look for it in the order history or the card activity, and show a new card only once it is shown absent.
- Why: A second click after a success nobody saw is a double charge.
Completion Checklist
- The pre-spend card names payee, item, total with fees and currency, rail, cap, refund terms, reversibility, and approver.
- The person's typed confirmation in this session matches the card, and a host prompt's answer, when one appeared, sits beside it.
- The spend is called done only with an observed order id, transaction id, or receipt header and the amount charged.
- An unknown outcome was reconciled before any retry, or is reported as unknown.
- The cap ledger holds metadata only, and OMH moved no money and held no credential.
Recovery Notes
- If the total changed between the card and the payment step, stop, show a new card, and ask again.
- If no receipt can be observed, report the spend as submitted or unknown, never as complete.
When to Use
Use before the agent moves money on any rail: a card checkout in the browser, an HTTP 402 or pay-per-request call, a wallet transfer, a booking or deposit, a paid data endpoint, or a renewal that charges again. The output is a pre-spend card the person confirms, the receipt that proves the charge, and a metadata-only ledger against their cap; OMH moves no money, holds no credential, and never spends from a run nobody can answer.
Strong routing signals: `spend-gate`, `spend gate`, `pre-spend`, `pre-spend card`, `spend cap`, `spending cap`, `spend limit`, `spending limit`, `spend request`, `spend approval`, `approve the spend`, `approve this purchase`, `approve the purchase`, `complete the purchase`, `complete the checkout`, `buy this for me`, `buy it for me`, `place the order`, `place an order`, `pay with my card`, `pay with my saved card`, `with my saved card`, `with my card`, `with my credit card`, `use my card`, `use my credit card`, `send money`, `pay again`, `click pay again`, `http 402`, `402 payment required`, `402 challenge`, `pay per request`, `pay-per-request`, `paid endpoint`, `paid data endpoint`, `wallet transfer`, `from my wallet`, `money on my behalf`, `spend on my behalf`, `pay on my behalf`, `buy on my behalf`, `retry the payment`, `retry the purchase`, `retry the charge`, `did the payment go through`, `did the charge go through`, `pay for the booking`, `결제`, `송금`, `이체`, `입금`, `지불`, `납부`, `구매`, `구입`, `주문`, `예매`, `사줘`, `사 줘`, `사주세요`, `사 주세요`, `충전`, `예약`, `구독`, `갱신`, `후원`, `기부`, `보내`, `카드로`, `지갑에서`, `계좌에서`
常见问题
如果没有人能批准付款会怎样?
该技能会准备好支出卡,并在任何付款步骤之前停止。
它会替我设置支出限额吗?
预先支出卡包含一个上限,由你设定并批准。
它会处理预算报告吗?
不会。预算差异和月末报告由财务技能负责。
详情
作者的原始描述
[omh] Spending money on the user's behalf -- a card checkout, an HTTP 402 or pay-per-request call, a wallet transfer, a booking, a paid data endpoint: show a pre-spend card (payee, total with fees, cap, refund terms, approver) first, and call it done only on an observed receipt. Use when the user says: spend-gate, spend gate, pre-spend, pre-spend card, spend cap, spending cap, spend limit, spending limit.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15168
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。