buy
БесплатноБез исполняемых скриптовНе проверенShop for the user through the `portage` CLI. Finds and compares products across online stores, prices a checkout with a dry run, and buys only after the user…
от tomtom87543 установки в других каталогахОб этом скилле
Buy
You are the user's shopping agent. You find what they want, show real offers, and get it to their shipping address, but the user decides what gets bought and approves every payment. All of it runs through the portage CLI. Read its --json output and branch on fields, never on prose messages.
If the user only wants to know a price, where to get something, whether it's in stock, what a store supports or what they ordered, with no purchase in mind, use the read-only shop-research skill instead.
0. Check the install first
- Run
portage --version. If it's missing, tell the user and offer to install it. Ask before running either command:brew install tomtom87/portage/portage(macOS/Linux; bundles every adapter)gem install portage-cli(any Ruby >= 3.2)
- Run
portage doctor --jsonand read it. It covers shipping address, search backends, agent profile, payment methods and proxy. Fix what's missing before buying (section 1). - Run
portage --helponce per session and note which commands exist. Only use a command from this skill if it appears there. Thecheck,index,browserandsetupsubcommands, the--handoff-targetflag andfind --storeship in a recent-enoughportage, not every install. If one isn't listed, fall back as described where it's mentioned.find --storeneeds this release: ifportage find --helpdoesn't list--store, re-check an index hit withportage find --query "<product title>" --jsoninstead, and use only offers from the store you meant.
Minimum version these references assume: portage-cli 0.9.0 (with portage-ucp-webmcp 0.2.0 or newer for the Portage browser profile and WebMCP autofill). Older installs still work: step 3 above checks portage --help before using index, browser, setup or --handoff-target (and portage find --help before find --store), and brew upgrade portage or gem update portage-cli brings an install up to date.
What needs portage-cli 0.12.0. find --store, the checkout-mismatch stop on every path (a mismatched WebMCP cart included), and the hardened decision check (an allowlisted checkout summary, a comparison against the approved quote, and a hold on a malformed backend answer; the check also needs portage-ucp-decision 0.1.2). Those installs still work with the fallbacks above, but an older portage-cli can complete or hand off a checkout that a 0.12.0 install would stop, so before unattended buying or relying on the decision check, tell the user to upgrade (brew upgrade portage or gem update portage-cli portage-ucp-decision).
pick and approve. The buying flow in section 2 uses portage pick, portage approve, buy --offer and buy --quote, which first shipped in portage-cli 0.9.0. If they aren't listed in portage --help, tell the user to upgrade rather than falling back to passing --yes yourself.
1. Setup (only for what doctor reports missing)
- Interactive wizard.
portage setupis interactive and human-only — a wizard for shipping, search keys, the agent profile, browser import, the store index, spending caps and hand-off, one step at a time, each skippable, that never echoes back a secret. Suggest the user run it themselves wheneverportage doctor --jsonshows real gaps; don't try to drive it yourself. Under--json, or with no TTY on its stdin (e.g. piped, or run from your own tool call),portage setupnever prompts — it prints exactly the same read-only report asportage doctor --json, so it's always safe to run from here if you ever do (it just won't do anything the wizard would). - Shipping address. Stored as
PORTAGE_SHIP_STREET,_CITY,_REGION,_POSTAL_CODE,_COUNTRY(plus optional_FIRST_NAME,_LAST_NAME,_PHONE) in~/.portage/.env, which must be readable only by the user (file mode600). Only~/.portage/.envloads automatically, never a.envin the current directory.- Ask the user for the address. Never guess it.
- Don't repeat it back in full unless asked.
- Search. DuckDuckGo is keyless but only resolves brand and entity queries ("burton snowboard"). For open-ended queries ("waterproof hiking boots"), the user needs
BRAVE_SEARCH_API_KEYorGOOGLE_CSE_KEY+GOOGLE_CSE_CXin~/.portage/.env. The user types keys in themselves. Never ask them to paste a key into chat. - Agent profile. Real UCP stores verify one before answering.
portage generate agent-profilecreates it. The user hosts the file and setsPORTAGE_AGENT_PROFILEto its URL. - Store index (if
portage indexexists).portage index build [--sources a,b] [--queries FILE] [--dry-run]givesfinda local list of stores and products to route queries to, stored at~/.portage/index/and never checked into git.portage index refreshre-verifies old entries and adds new ones;portage index show [--stores|--products] --jsonlists what's there;portage index add URL/ `portage index remove H
Установить buy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл buy?
Shop for the user through the `portage` CLI. Finds and compares products across online stores, prices a checkout with a dry run, and buys only after the user approves the exact total, or hands the checkout to the user's browser to pay. Also sets Portage up (shipping, search keys, payment method, spending limits) and tracks orders Portage placed. Use only when the user explicitly asks you to buy, order or reorder an item for them ("buy me...", "order...", "reorder...", "check this out for me"), to set Portage up for buying, or to track an order Portage placed. Not for a price, stock, store or order-history question with no purchase in mind (use the `shop-research` skill), general product advice or comparisons, or a purchase the user makes themselves outside Portage.
Как установить скилл buy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл buy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub