ramp-agentic-purchase
Make purchases using Ramp agent cards via browser checkout, then complete all transaction requirements (memo, tracking categories, receipt, trip). Use when…
от CognitionAI★ 42 звезды на GitHub
Установить ramp-agentic-purchase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Agentic Purchase
End-to-end agent card purchasing: pick a fund, get a payment token via ramp CLI, pay via browser, then fill all missing transaction items.
Access & Enrollment
Agent Cards are available via self-serve enrollment. Enrollment is a mutation — it enrolls the authenticated user's business in Agent Cards, enabling agent card funds and fund access. An availability, setup, or eligibility question is not consent to enroll: first answer the question, tell the user that enrolling activates Agent Cards for their business, and ask for explicit confirmation. Only after the user confirms, enroll using the CLI:
ramp agent_cards enroll --agent --rationale "User confirmed enrolling the business in Agent Cards"
The user must be authenticated (ramp auth login) and have appropriate permissions on their Ramp business. Once enrollment succeeds, the user can immediately use agent_cards list and agent_cards creds to access their agent card funds.
For more information, visit https://agents.ramp.com/cards.
Use this guidance for:
- "What are Agentic Cards?" or "How do I get agent cards?"
- Access, availability, enrollment, or setup questions
- Users who hit eligibility errors when running
agent_cards listoragent_cards creds
In every case, describe what enrollment does and get an explicit "yes" before running agent_cards enroll.
If the user is already enrolled, proceed with the workflow below.
Prerequisites
rampCLI installed and authenticated (ramp auth login)playwright-clibrowser automation set up per the bundled browser-checkout.md reference (formerly the standalone ramp-browser-automation skill, now shipped inside this skill)- Business enrolled in Agent Cards (see Access & Enrollment to enroll if not)
CLI conventions
- Pass
--agentfor machine-readable JSON output (documented shape is top-level, immediately afterramp:ramp --agent agent_cards list) - Use positional arguments where supported (e.g.,
ramp --agent agent_cards creds <fund_uuid>,ramp --agent transactions missing <transaction_uuid>) - Use
--jsonfor complex payloads (e.g.,ramp --agent transactions edit) - Every subcommand accepts
--json,--dry_run(-n), and--help --rationaleis required on every subcommand — a non-empty string (max 1024 chars) explaining why you are making the call. With--json, put it in the body as a"rationale"key instead. Omitting it returnsHTTP 422 (DEVELOPER_INVALID_SCHEMA), even in--agentmode.
Hard rules
- Two distinct amount thresholds — respect both:
- User preauth tolerance: policy-level, ~10% over requested. Stop and re-ask if exceeded.
- Visa cryptogram auth cap: the cryptogram from
ramp --agent agent_cards creds ... --amount Xrejects any charge > X at the network level — even $0.01 over declines. If the merchant's final total exceeds the cryptogram amount (bag fees, surprise tax, currency conversion), the old cryptogram is unusable — burn it, pull fresh creds at the corrected amount, and re-preauth if the new amount exceeds the user's original 10% tolerance.
- Run the browser headed, never
--headless. Purchase flows need the user able to see and intervene — bot checks, 3DS, and login walls all require human input. See browser-checkout.md for the headed-default rule. - Stop if anything unexpected happens. 3DS challenge, login wall, CAPTCHA, bot-block page, merchant form you can't parse → screenshot, hand off to the user via the visible Chrome window per the human-handoff pattern in browser-checkout.md, and wait. Do not retry blindly.
Phase 1: Payment
Step 1 — Pick a fund
ramp agent_cards list --agent --rationale "List the user's agent card funds"
The response contains funds, each with id, display_name, available_balance, currency, interval, max_transaction_amount, allowed_merchants, and allowed_categories. Select for purpose fit first, then technical eligibility:
- Use
display_nameto identify likely purpose fit, then confirm the choice with the user. Do not infer an intended use that is not present in the response. - Treat broad, admin, or shared-access funds as a hazard: technical access is not approval, and the purpose-fit bar is higher when many funds are visible.
- If no appropriate fund exists, stop and ask the user which fund to use or whether to proceed through the standard card request/approval flow. Do not keep trying broad/admin funds automatically.
Then verify the selected fund has:
available_balancecovers the purchase amountcurrencymatches the merchantmax_transaction_amountisnullor covers the purchase amountallowed_merchants/allowed_categoriespermit the purchase (empty = unrestricted)intervalis the fund's replenishment cadence, not additional balance available for the current purchase
Us
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- browser-checkout.md
FAQ
Что делает скилл ramp-agentic-purchase?
Make purchases using Ramp agent cards via browser checkout, then complete all transaction requirements (memo, tracking categories, receipt, trip). Use when asked to buy something with an agent card, make a payment using Ramp, spend from a fund, complete missing transaction items, or test the agent card payment flow. Also use when asked about agent card access, availability, or how to get started with Agentic Cards. Requires ramp CLI and a playwright-cli-driven browser (see bundled browser-checkout.md).
Как установить скилл ramp-agentic-purchase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ramp-agentic-purchase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…