Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

tomtom87от 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

  1. 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)
  2. Run portage doctor --json and read it. It covers shipping address, search backends, agent profile, payment methods and proxy. Fix what's missing before buying (section 1).
  3. Run portage --help once per session and note which commands exist. Only use a command from this skill if it appears there. The check, index, browser and setup subcommands, the --handoff-target flag and find --store ship in a recent-enough portage, not every install. If one isn't listed, fall back as described where it's mentioned. find --store needs this release: if portage find --help doesn't list --store, re-check an index hit with portage find --query "<product title>" --json instead, 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 setup is 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 whenever portage doctor --json shows 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 setup never prompts — it prints exactly the same read-only report as portage 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 mode 600). Only ~/.portage/.env loads automatically, never a .env in 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_KEY or GOOGLE_CSE_KEY + GOOGLE_CSE_CX in ~/.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-profile creates it. The user hosts the file and sets PORTAGE_AGENT_PROFILE to its URL.
  • Store index (if portage index exists). portage index build [--sources a,b] [--queries FILE] [--dry-run] gives find a local list of stores and products to route queries to, stored at ~/.portage/index/ and never checked into git. portage index refresh re-verifies old entries and adds new ones; portage index show [--stores|--products] --json lists what's there; portage index add URL / `portage index remove H
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить buy с