request_confirmation — Claude Code prompt: what it does
The request_confirmation Claude Code prompt asks for approval before an action that spends money. It covers placing an order, making a booking, or taking a final step on a page showing a payment amount.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/request_confirmation.mdWhat request_confirmation does
The prompt requires approval before an action that spends money, such as placing an order or booking. The agent fills in the details first, asks for approval, then performs the action as its next step on the same screen. The target and amount must be visible there.
Approval applies to the next matching action, even if it fails; another action requires a fresh approval. Navigating away, swiping, going back, opening another page or app, or waiting more than three steps cancels it. An unapproved spending action is blocked with confirmation_required.
This prompt does not confirm payment. Payment is handed to the user with the reason payment. Actions that do not spend money, such as sending, posting, or deleting, proceed without approval. If the user declines, the agent must not retry; it reports the current state and stops.
What it helps with
- request approval before placing an order
- confirm a booking with its displayed amount
- block spending actions without consent
- separate order approval from payment confirmation
Example prompts for the agent
- Ask for approval before placing the order and state the amount shown on screen.
- Prepare the booking, then request approval for its final step.
- Stop if the user declines the approval request.
How to install request_confirmation
Manually: put the files in place
.claude/commands/request_confirmation.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about request_confirmation
How do I install request_confirmation in Claude Code?
Add the file .claude/commands/request_confirmation.md to the Claude Code project.
What does request_confirmation do?
It requires approval before an action that spends money, such as placing an order or making a booking. Payment itself is handed to the user separately.
Which actions require approval with request_confirmation?
Only actions that spend money, including orders, bookings, and a final step on a page showing an amount due. Posting, sending messages, and deleting do not require approval.
Source text
request_confirmation.md · Apache-2.0
Ask the user to approve a step that spends their money, before you do it: placing an order or booking, or another final step on a page that shows the amount to pay (submit, confirm). This is the only kind of step that needs approval: sending, posting, submitting forms, deleting, greeting or applying, changing settings and everything else that spends no money is done directly, without asking. Fill everything in first, then call it, then do the step as your very next action on that screen: tapping elsewhere, swiping, going back or opening another app or page in between, or waiting more than 3 steps, cancels the approval. One approval is used up by the next matching step even if that step fails; ask again for the next one. The target must be visible on screen, as shown there; give the amount shown on screen. A spending step without approval is refused with confirmation_required. Payment itself is not confirmed here: use hand_to_user with reason payment. If the user declines, do not try the step again; report the current state and end.
© wangzan101 · Apache-2.0 · wangzan101/Mika