# AGENTS.md instructions for Webhook テストと決済開発のための Stripe CLI

Use Webhook テストと決済開発のための Stripe CLI only for: Stripe Webhook、テストイベント、決済連携のデバッグに使える CLI。

## Default behavior

- Prefer non-interactive commands and stable output formats: json, text.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- safe: `stripe listen --forward-to localhost:3000/api/webhooks/stripe` — Forwards test webhooks to local development.
- safe: `stripe trigger checkout.session.completed` — Creates a test event for webhook validation.
- destructive: `stripe refunds create --charge ch_...` — Moves money and must not be agent-autonomous.

## Safety notes

- Listen and trigger commands are good for local webhook testing.
- Commands that create, refund, or cancel live resources must require explicit approval.
- Use test mode keys for agent-driven development work.