[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MGV9YB2RXFYMQAWH4AGZT5":3,"skill-same:01M6MGV9YB2RXFYMQAWH4AGZT5":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6MGV9YB2RXFYMQAWH4AGZT5","shop",null,"Sell things in a Homie studio's games with the studio's OWN Stripe - a supporter pack, cosmetics, a season pass, a one-time unlock, a tip, a round of several items to a table, a paid booking with slot capacity, monthly giving or a membership - in real money, with Stripe Checkout, Stripe Tax or Stripe Managed Payments, refunds from the office, and optional studio policies with an open default; set up with Stripe's own agent tools (Stripe's MCP server and skills) with one browser approval and Payment Links by default, no human-handled key and no API key in the Worker. Use when someone asks to sell something, add a shop or store, take payments or donations, take paid bookings, set up monthly giving or memberships, make money from a game, set up or connect Stripe, make the products in Stripe, asks \"how are sales?\", about tax or Managed Payments, to add a supporter badge, refund a player, or about chargebacks.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fshop\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"default","paid","when","managed","player","studio","checkout","webhook","worker","local","time","MCP","up","open","TIP","SET","payments","wrangler","connect","official","mcp server","2026-11-10 10:12:30",false,"---\nname: shop\ndescription: Sell things in a Homie studio's games with the studio's OWN Stripe - a supporter pack, cosmetics, a season pass, a one-time unlock, a tip, a round of several items to a table, a paid booking with slot capacity, monthly giving or a membership - in real money, with Stripe Checkout, Stripe Tax or Stripe Managed Payments, refunds from the office, and optional studio policies with an open default; set up with Stripe's own agent tools (Stripe's MCP server and skills) with one browser approval and Payment Links by default, no human-handled key and no API key in the Worker. Use when someone asks to sell something, add a shop or store, take payments or donations, take paid bookings, set up monthly giving or memberships, make money from a game, set up or connect Stripe, make the products in Stripe, asks \"how are sales?\", about tax or Managed Payments, to add a supporter badge, refund a player, or about chargebacks.\ncompatibility: Stripe's official OAuth MCP\u002Fplugin, Homie's stripe_shop_plan and stripe_webhook tools, and Wrangler. Stripe CLI is used privately for webhook setup and local forwarding.\nmetadata:\n  providers: stripe\n---\n\nCustomer AIs can buy through the studio's own `\u002Fmcp`. Read the toolkit's `tools\u002FTOOLS.md`\nand use the `tools` skill for `studio_catalogue`, cart quotes, standard agent payments,\nprivate purchase claims, and human Stripe checkout approval. Priced studio tools sell\nservices through that same purchase engine; `shop connect` synchronizes their Payment Links.\nKeep orders, grants and refunds in the existing shop. For order\u002Frefund follow-up code, use\nStudio functions (`functions\u002FFUNCTIONS.md`), with the event ID as the idempotency key.\n\n\n# The shop\n\nCheck that the toolkit exposes `stripe_shop_plan` and `stripe_webhook`; upgrade older toolkits first.\nThe guide is `node_modules\u002F@homie-rocks\u002Fstudio\u002Fshop\u002FSHOP.md`; the owner's plain words are `SELLING.md`.\n\n**The model, said plainly to the person.** The studio sells with **its own Stripe account**. The studio is the\nseller: its prices, its refunds, its disputes, its tax. Money goes straight from players to the studio's Stripe;\n**homie.rocks never sees it, holds it or moves it, and Homie takes no cut.** The studio is responsible for the law where it sells and for Stripe's terms.\n\nIn a rules game, keep shop UI in the view. Do not turn a client character save, an\nentity field or a command into proof of a purchase: grants still come from the shop's\nverified server records. Room state is replicated to players; keep payment and private\ncustomer data out of it. Read the game skill's RULES.md before changing game outcomes.\n\n## Default: Stripe's official plugin\n\nUse Stripe's official plugin, authenticated with its browser OAuth approval, for Products,\nPrices, Payment Links, menu links, per-slot booking links, monthly giving and the customer\nportal. Install with `stripe agent setup` if needed; the MCP URL is\n`https:\u002F\u002Fmcp.stripe.com`. Current tools are `stripe_api_search`, `stripe_api_details`,\n`stripe_api_read` and `stripe_api_write`. Discover the operation and its schema before\ncalling it; tool argument shapes can change. See https:\u002F\u002Fdocs.stripe.com\u002Fmcp.\n\n1. Create\u002Fcheck `shop.json`. Read the app's published slot records and supply the complete\n   slot manifest described below. Select the owner's account and sandbox in Stripe's plugin;\n   read `\u002Fv1\u002Faccount` to record its account ID. Live mode only after the owner requests it.\n2. Call Homie's `stripe_shop_plan` with `account`, `mode: \"test\"`, `slots` and\n   `observations: []`. CLI equivalent: `homie-studio shop plan --have plan-input.json`.\n   That JSON file contains the same fields. `operations` contains every independent\n   operation currently ready, with method, path, parameters and create idempotency key.\n   Execute the batch through Stripe's official plugin, then replan for dependent work.\n   `next` remains the first operation for older clients.\n3. Append `{ \"method\": \"POST\", \"path\": \"…\", \"params\": {…}, \"body\": \u003CStripe response> }`\n   for **writes as well as reads**. Keep this setup's observations across batches.\n   Product creation includes its default Price; link creation expands line items.\n   Product and Price Search use studio\u002Forigin metadata. Payment Links use paginated\n   list reads with `expand[]=data.line_items`, then filter studio\u002Forigin metadata locally;\n   Stripe has no Payment Link metadata search. There is no per-link read loop.\n   The planner saves public observations in `.studio\u002Fstripe-mcp-observations.json` and\n   reuses them on the next call; send only new responses. Keep that file and\n   `.studio\u002Fstripe-mcp.json` when moving computers. Changed shop\u002Fslot settings refresh\n   mutable links while retaining product\u002Fprice discovery. Account, mode and origin\n   changes start separate reads. Pass `refresh: true` for Dashboard changes or a fresh\n   verification before webhook installation (CLI: include it in `--have` input).\n   Follow search `next_page` and list `starting_after` cursors. On an uncertain write,\n   retry its exact idempotency key; never discard successful responses or invent IDs.\n4. Call `stripe_shop_plan` with `verify: true` using those observations (CLI\n   `homie-studio shop verify --have plan-input.json`). Verification checks real fields,\n   line items, menus, slot limits and portal settings. It saves compact public Worker\n   configuration and provenance to `.studio\u002Fstripe-mcp.json`, never API response history.\n   Build writes public links to `site\u002Fdist\u002F_site\u002Fstripe-shop-links.json`; deploy ships\n   that asset, with only its path in Wrangler vars. Large catalogues never use a text\n   binding. Deploy after verifying, including when setup began on an already-live site. Checkout then reports only `webhook-secret` missing;\n   it cannot open until signed payment events can confirm orders. Changing shop.json,\n   the slot manifest or origin requires verification again. Local test configuration\n   goes to `.dev.vars`.\n5. For a deployed HTTPS studio, run `stripe_webhook` (CLI `homie-studio shop webhook`).\n   Follow `studio_job`. This uses Stripe CLI only for private webhook installation,\n   checks the same account as the MCP, and installs only the signing secret through\n   Wrangler stdin. If Stripe CLI is missing, the tool installs the official\n   `@stripe\u002Fcli@latest` npm package automatically, checks the executable, then continues.\n   An installation failure reports npm permissions\u002FPATH and a retry command. The CLI\n   needs one separate browser approval if its\n   studio profile is not already connected. MCP approval cannot be reused or exported.\n   Cloudflare authorization and an existing deployment are prerequisites.\n6. After installation, perform the returned `retire` operations through Stripe MCP to\n   archive replaced catalog objects. Use fresh scoped reads for later drift checks. Test a sandbox\n   purchase and its signed event, order grant, booking capacity or recurring invoice;\n   a browser return is never proof. Stripe CLI `trigger` can send a test event, and\n   `events resend \u003Cevent> --webhook-endpoint \u003Cendpoint>` retries a delivery. Check the\n   endpoint's delivery result and the app's verified records. Do not type a card into\n   a page for an automated proof; use Stripe's documented test PaymentMethods\u002Ffixtures.\n\nUpgrades accept 0.51.6 verifications without a source fingerprint only when their\nsaved content fingerprint still matches the current shop, slots, site and mode.\nActual changes name the affected settings and require verification. An unfinished\nsetup still builds and deploys with checkout closed and one next step: finish\n`stripe_shop_plan` with `verify: true`. Missing\u002Funreadable assets also close checkout;\nold link secrets cannot reopen it. Cached observations never renew the verification\ntime; use fresh reads if the private webhook tool requests them.\n\nNever create a webhook through model-visible Stripe MCP: its response exposes the signing secret.\n\n**Why the separate approval (checked 2026-10-14).** Stripe's\n[event destination API](https:\u002F\u002Fdocs.stripe.com\u002Fapi\u002Fv2\u002Fcore\u002Fevent-destinations\u002Fcreate)\nalso returns its signing secret only in the private create response when explicitly\nincluded. Thin events still require signature verification and authenticated retrieval\nof event details; they do not supply a secret handoff to Wrangler. The\n[official MCP](https:\u002F\u002Fdocs.stripe.com\u002Fmcp) documents no credential or secret transfer\nto a studio Worker. Therefore the AI starts `stripe_webhook`, the owner clicks\nApprove once in Stripe's CLI browser page if needed, and the tool completes endpoint\ncreation and Wrangler secret installation privately. MCP approval and CLI approval\nare separate. No API key is requested, no secret enters chat, and Homie is never in\nthe money path. A connected studio CLI profile needs no further approval.\n\n\nThe owner never handles an API key or signing secret. No Homie backend handles payments.\nThe Worker needs only public link configuration and the signing secret; buyers pay\nStripe directly even when the AI and the owner's computer are offline. The old\n`stripe_login` \u002F `shop connect` flow remains an alternative that syncs everything\nthrough Stripe CLI browser approval. `--renew` renews that approval; `--live` requires\nthe owner's go-live request. Never read CLI config or print login-completion output.\n\nFor local checkout, pass `url: \"http:\u002F\u002Flocalhost:8787\"` (or the private Wi-Fi address)\nand `mode: \"test\"` to the same plan\u002Fverify flow; the official plugin makes the links.\nRun `homie-studio shop listen --profile \u003Csandbox-profile>` in a background terminal.\nStripe CLI is required for forwarding; one browser approval is enough if needed.\nThe command captures and saves the listener secret privately. Start\u002Frestart\n`homie-studio dev --lan` once it reports ready and keep the listener running.\nNever copy the listener's raw output into the conversation.\n\nFor a faster local iteration, `homie-studio build --quick` skips generated rules play\nand the snapshot smoke-run, while retaining compilation, guards and type checks.\nRun a full build before release; quick output is not evidence that play checks passed.\n\n## Do\n\n| The person says | Run | What happens |\n|---|---|---|\n| \"Sell a supporter pack for $5\" | `npx --no-install homie-studio shop init --supporter` (then `shop check`) | `shop.json` with a US$5 Supporter pack (a badge on their profile and beside their name in rooms, for a year; it changes nothing about play) and `SELLING.md`. Commit both. |\n| \"Sell a skin \u002F a season pass \u002F the full game\" | edit `shop.json` `items` (`kind`: `cosmetic`, `pass`, `unlock`; `price` in Stripe currency units; `gives`: the keys the game reads), `shop check`, then the official MCP plan\u002Fverify flow again | Kinds are studio labels, without a fixed list. `\"advantage\": true` follows the studio policy for beginner and kids servers. Homie sets no price ceiling. |\n| \"Let people tip\" | an item `{ \"kind\": \"tip\", \"price\": \"choose\", \"min\": 200, \"max\": 5000 }` | Pay what you want; amounts follow Stripe currency requirements, and max is optional and chosen by the studio. |\n| \"Make the products in Stripe\" | `stripe_shop_plan` | Idempotent Product, Price, Payment Link and webhook sync from shop.json; no secret enters tool output. |\n| \"Connect my Stripe\" \u002F \"turn the shop on\" | `stripe_shop_plan`, then `stripe_webhook` | Approve Stripe once if needed; the Worker receives links and the signing secret only. Follow the single next step returned. Live only when requested. |\n| \"Is tax set up?\" | `stripe_api_read` `GET \u002Fv1\u002Ftax\u002Fsettings`, and `GET \u002Fv1\u002Ftax\u002Fregistrations` | Seller \"stripe\": Stripe Tax needs `status: active` (the business address in Settings, Tax), or checkouts fail; with no registrations it collects no tax anywhere: say so, the accountant decides where to register. Seller \"stripe-managed\": Stripe files the tax; the connect page's test checkout said whether Managed Payments is on. Change nothing yourself. |\n| \"Is the shop working?\" | `npx --no-install homie-studio shop` | Open (test or live) or exactly what is missing, the last 30 days, the webhook address. |\n| \"How are sales?\" \u002F \"Show me the sales\" | `shop` and `shop orders` first (the studio's own books); with Stripe's MCP, read-only: `stripe_analytics`, or `stripe_api_read` on `\u002Fv1\u002Fbalance`, `\u002Fv1\u002Fpayouts`, `\u002Fv1\u002Fcheckout\u002Fsessions` | Counts, money and payouts in a few lines; never a buyer's name, email or card. Never a write to answer a question. The owner's `\u002F_studio\u002Foffice\u002Fshop` links every Stripe page and gives the accountant a CSV. |\n| \"Refund that player\" | The owner’s official Stripe connection, or link their Stripe Dashboard payment | Honor Stripe’s confirmation link; signed events update the books and revoke fully refunded items. The keyed way still offers office refunds. |\n| \"Someone charged back\" | nothing to undo: the owner answers it in Stripe (the office links it) | While open nothing changes; lost: that one item goes; won: it stays. **The account is never locked or deleted over a dispute.** |\n| \"Show the item in the game\" \u002F \"the supporter badge\" | in the game: `createShop()` from `@homie-rocks\u002Fstudio\u002Fshop`; `shop.has('skin:ember')`, `shop.on('change', …)`, `shop.open('ember-skin')` from a button the player pressed, `shop.used(key)` when equipped | The play shell answers for the signed-in player; a badge rides on their seat as `peer.badge` (the Worker sets it, never a hello). |\n\n## Your shop, your choices\n\nThe default is open: guests buy repeatedly without an age question, with any wording or kind, from any page.\n`shop init` writes no policy. A released shop file without a preset now uses the open default.\nWrite `\"policy\": { \"preset\": \"protective\" }` to retain earlier account and age behavior.\n`adults-only` is another optional bundle. Neither scans content. SHOP.md lists individual overrides.\n\nThe studio can set items, quantities, prices, tip ranges, entitlements, sale dates, currency, optional\n`automaticTax`, `capPerPlayerMonth`, `refundDays` and configurable flood protection.\nNo toolkit amount or duration ceiling applies. Stripe currency constraints and safe integer arithmetic apply.\nA refund window includes used items unless `policy.refundUsedItems` is false. A player cannot refund a tip;\nthe owner can refund through Stripe; keyed shops also offer office refunds. Guest purchases stay owned when the buyer signs in later.\n\nFor menus or explicitly keyed shops, carts: `shop.add(item, quantity, amount?)`, then `shop.checkout()`; `shop.buy(item)` buys directly.\nFree and paid lines share one order and one Stripe Session. The studio chooses where to open the shop.\n\n## The first sale (the acceptance)\n\nIn test mode: buy the supporter pack on a phone with Stripe's test card `4242 4242 4242 4242`, see \"It's yours\",\nsee the badge on the account page and beside the name in a room (from the next room the player joins), refund it\nin Stripe (or through the connected AI), and see the badge go. With the protective preset, a kids server's room shows no shop and `\u002F\u003Cgame>\u002Ftv` shows only a code.\n\nKeyless menus offer several fixed-price items with adjustable quantities on Stripe.\nCustom amounts and monthly preset gifts have their own links. Free orders stay local.\nA missing webhook stays pending; ask Stripe to resend it. Never grant from a return\nURL. Keyless has no exclusive unpaid hold or custom session expiry. Consult SHOP.md\nfor menu limits, signed invoice fulfilment, slot sync and honest pending\u002Ffull wording.\n\nFor a cause, use `shop init --giving --currency \u003Corganisation currency>`: one-time and monthly suggested gifts, no badge or game access. Read `giving.receiptText` from the organisation; leave it empty until provided. Local \u002Fshop\u002F previews before Stripe. Monthly gifts use the existing keyless Payment Links connection and Stripe handles renewals.\n\n## App payment references\n\nCreate the booking\u002Fticket\u002Fgift intention first. `shop.buy('full-tune', 1, undefined, { reference: booking.id })` or `shop.checkout({ reference: booking.id })` sends the app's own reference through checkout. Existing boolean returns are unchanged: checkout opened is not paid. The verified durable `order.paid` event carries `data.order`, `data.reference` (null if omitted) and `data.app`. Reopened Payment Links retain the reference. A reference is buyer-supplied correlation, not authorization: verify the record, app, amount and currency, deduplicate by event\u002Forder ID, then fulfil it. Keep personal data out of references. Before Stripe is connected, local prices and unpaid requests can be demonstrated; actual payment and recurring collection remain unverified. Test events must be labelled simulations.\n\nFor referrals, use Stripe Connect to split payments or a Stripe-based affiliate service; Homie builds none.\n\n## Earning with the keyless default\n\nRead SHOP.md for a round to table 7, `shop.book` and $20 monthly giving.\nMenus let guests choose several quantities on Stripe; signed invoices provide actual\npaid lines and the app reference. Slot Payment Links enforce completed-session\ncapacity. Pending guests do not block others. The owner's AI syncs published slots\nwith `stripe_shop_plan` and the complete slot manifest; the app shows Full from verified availability.\nRecurring Prices provide monthly preset gifts and memberships. Connect enables the\nno-code customer portal login through Stripe's API, without a Dashboard toggle.\nPaid invoice periods govern membership; failed renewal never extends it.\nThe giving starter opens real keyless Checkout and shows a disabled preview before\nconnection. It never counts an intention as a gift.\n\nFor real sandbox acceptance use `startKeylessStripeSandbox` from the installed\n`lib\u002Fdev-stripe-sandbox.mjs` as documented in SHOP.md. Only its explicitly authorised\nsandbox CLI profile creates Stripe objects. No Worker API key. Keep returned signing\nsecret bindings private and temporary. Complete payments with Stripe's published\nCLI fixture\u002FAPI tokens; never enter card digits into a page. The local listener is\nfor development; production sends signed events directly to the studio's webhook.\nThe optional keyed fixture remains available for testing explicitly selected session\ncheckout. Label offline fixtures simulations.\n\n## Local Stripe test payments\n\nUse `shop connect --local --profile \u003Csandbox-profile> --url http:\u002F\u002F\u003CWi-Fi-IP>:8787`\nand Stripe CLI `listen --all-snapshot --forward-to http:\u002F\u002Flocalhost:8787\u002Fapi\u002Fshop\u002Fhook`. The full\nrecipe is in the installed toolkit’s `apps\u002FAPPS.md`, “Real Stripe test checkout on\nthis computer”. It uses root `.dev.vars`, needs no public HTTPS or Cloudflare, and\nkeeps the existing approved Stripe CLI session. Do not write a stand-in checkout.\n\n### Batch setup and reconciliation\n\nSet each menu item's `maxQuantity` in `shop.json` when the studio has an order limit; the default is 99. Slot links support group quantities up to published remaining seats. Supply reviewed `confirmed` seat totals when resyncing: Stripe counts sessions, not people. The database confirms the entire paid group atomically. If a payment differs from the saved deposit\u002Fbasket or a group no longer fits, inspect the `review` order and `payment.review` event, arrange fulfillment or refund, and show the customer the saved notice. Never discard a paid event.\n\nFull `shop connect` and plugin verification both save public JSON assets; rebuild\u002Fdeploy those assets before retiring replaced links. Checkout mode is a public Worker variable, not a secret. If a product search misses an existing deterministic ID, perform the planner's GET for that ID before creating it. Preserve Wrangler's diagnostic when setup fails.\n","Customer AIs can buy through the studio's own `\u002Fmcp`. Read the toolkit's `tools\u002FTOOLS.md`\nand use the `tools` skill for `studio_catalogue`, cart quotes, standard agent payments,\nprivate purchase claims, and human Stripe checkout approval. Priced studio tools sell\nservices through that same purchase engine; `shop connect` synchronizes their Payment Links.\nKeep orders, grants and refunds in the existing shop. For order\u002Frefund follow-up code, use\nStudio functions (`functions\u002FFUNCTIONS.md`), with the event ID as the idempotency key.\n\n\n# The shop\n\nCheck that the toolkit exposes `stripe_shop_plan` and `stripe_webhook`; upgrade older toolkits first.\nThe guide is `node_modules\u002F@homie-rocks\u002Fstudio\u002Fshop\u002FSHOP.md`; the owner's plain words are `SELLING.md`.\n\n**The model, said plainly to the person.** The studio sells with **its own Stripe account**. The studio is the\nseller: its prices, its refunds, its disputes, its tax. Money goes straight from players to the studio's Stripe;\n**homie.rocks never sees it, holds it or moves it, and Homie takes no cut.** The studio is responsible for the law where it sells and for Stripe's terms.\n\nIn a rules game, keep shop UI in the view. Do not turn a client character save, an\nentity field or a command into proof of a purchase: grants still come from the shop's\nverified server records. Room state is replicated to players; keep payment and private\ncustomer data out of it. Read the game skill's RULES.md before changing game outcomes.\n\n## Default: Stripe's official plugin\n\nUse Stripe's official plugin, authenticated with its browser OAuth approval, for Products,\nPrices, Payment Links, menu links, per-slot booking links, monthly giving and the customer\nportal. Install with `stripe agent setup` if needed; the MCP URL is\n`https:\u002F\u002Fmcp.stripe.com`. Current tools are `stripe_api_search`, `stripe_api_details`,\n`stripe_api_read` and `stripe_api_write`. Discover the operation and its schema before\ncalling it; tool argument shapes can change. See https:\u002F\u002Fdocs.stripe.com\u002Fmcp.\n\n1. Create\u002Fcheck `shop.json`. Read the app's published slot records and supply the complete\n   slot manifest described below. Select the owner's account and sandbox in Stripe's plugin;\n   read `\u002Fv1\u002Faccount` to record its account ID. Live mode only after the owner requests it.\n2. Call Homie's `stripe_shop_plan` with `account`, `mode: \"test\"`, `slots` and\n   `observations: []`. CLI equivalent: `homie-studio shop plan --have plan-input.json`.\n   That JSON file contains the same fields. `operations` contains every independent\n   operation currently ready, with method, path, parameters and create idempotency key.\n   Execute the batch through Stripe's official plugin, then replan for dependent work.\n   `next` remains the first operation for older clients.\n3. Append `{ \"method\": \"POST\", \"path\": \"…\", \"params\": {…}, \"body\": \u003CStripe response> }`\n   for **writes as well as reads**. Keep this setup's observations across batches.\n   Product creation includes its default Price; link creation expands line items.\n   Product and Price Search use studio\u002Forigin metadata. Payment Links use paginated\n   list reads with `expand[]=data.line_items`, then filter studio\u002Forigin metadata locally;\n   Stripe has no Payment Link metadata search. There is no per-link read loop.\n   The planner saves public observations in `.studio\u002Fstripe-mcp-observations.json` and\n   reuses them on the next call; send only new responses. Keep that file and\n   `.studio\u002Fstripe-mcp.json` when moving computers. Changed shop\u002Fslot settings refresh\n   mutable links while retaining product\u002Fprice discovery. Account, mode and origin\n   changes start separate reads. Pass `refresh: true` for Dashboard changes or a fresh\n   verification before webhook installation (CLI: include it in `--have` input).\n   Follow search `next_page` and list `starting_after` cursors. On an uncertain write,\n   retry its exact idempotency key; never discard successful responses or invent IDs.\n4. Call `stripe_shop_plan` with `verify: true` using those observations (CLI\n   `homie-studio shop verify --have plan-input.json`). Verification checks real fields,\n   line items, menus, slot limits and portal settings. It saves compact public Worker\n   configuration and provenance to `.studio\u002Fstripe-mcp.json`, never API response history.\n   Build writes public links to `site\u002Fdist\u002F_site\u002Fstripe-shop-links.json`; deploy ships\n   that asset, with only its path in Wrangler vars. Large catalogues never use a text\n   binding. Deploy after verifying, including when setup began on an already-live site. Checkout then reports only `webhook-secret` missing;\n   it cannot open until signed payment events can confirm orders. Changing shop.json,\n   the slot manifest or origin requires verification again. Local test configuration\n   goes to `.dev.vars`.\n5. For a deployed HTTPS studio, run `stripe_webhook` (CLI `homie-studio shop webhook`).\n   Follow `studio_job`. This uses Stripe CLI only for private webhook installation,\n   checks the same account as the MCP, and installs only the signing secret through\n   Wrangler stdin. If Stripe CLI is missing, the tool installs the official\n   `@stripe\u002Fcli@latest` npm package automatically, checks the executable, then continues.\n   An installation failure reports npm permissions\u002FPATH and a retry command. The CLI\n   needs one separate browser approval if its\n   studio profile is not already connected. MCP approval cannot be reused or exported.\n   Cloudflare authorization and an existing deployment are prerequisites.\n6. After installation, perform the returned `retire` operations through Stripe MCP to\n   archive replaced catalog objects. Use fresh scoped reads for later drift checks. Test a sandbox\n   purchase and its signed event, order grant, booking capacity or recurring invoice;\n   a browser return is never proof. Stripe CLI `trigger` can send a test event, and\n   `events resend \u003Cevent> --webhook-endpoint \u003Cendpoint>` retries a delivery. Check the\n   endpoint's delivery result and the app's verified records. Do not type a card into\n   a page for an automated proof; use Stripe's documented test PaymentMethods\u002Ffixtures.\n\nUpgrades accept 0.51.6 verifications without a source fingerprint only when their\nsaved content fingerprint still matches the current shop, slots, site and mode.\nActual changes name the affected settings and require verification. An unfinished\nsetup still builds and deploys with checkout closed and one next step: finish\n`stripe_shop_plan` with `verify: true`. Missing\u002Funreadable assets also close checkout;\nold link secrets cannot reopen it. Cached observations never renew the verification\ntime; use fresh reads if the private webhook tool requests them.\n\nNever create a webhook through model-visible Stripe MCP: its response exposes the signing secret.\n\n**Why the separate approval (checked 2026-10-14).** Stripe's\n[event destination API](https:\u002F\u002Fdocs.stripe.com\u002Fapi\u002Fv2\u002Fcore\u002Fevent-destinations\u002Fcreate)\nalso returns its signing secret only in the private create response when explicitly\nincluded. Thin events still require signature verification and authenticated retrieval\nof event details; they do not supply a secret handoff to Wrangler. The\n[official MCP](https:\u002F\u002Fdocs.stripe.com\u002Fmcp) documents no credential or secret transfer\nto a studio Worker. Therefore the AI starts `stripe_webhook`, the owner clicks\nApprove once in Stripe's CLI browser page if needed, and the tool completes endpoint\ncreation and Wrangler secret installation privately. MCP approval and CLI approval\nare separate. No API key is requested, no secret enters chat, and Homie is never in\nthe money path. A connected studio CLI profile needs no further approval.\n\n\nThe owner never handles an API key or signing secret. No Homie backend handles payments.\nThe Worker needs only public link configuration and the signing secret; buyers pay\nStripe directly even when the AI and the owner's computer are offline. The old\n`stripe_login` \u002F `shop connect` flow remains an alternative that syncs everything\nthrough Stripe CLI browser approval. `--renew` renews that approval; `--live` requires\nthe owner's go-live request. Never read CLI config or print login-completion output.\n\nFor local checkout, pass `url: \"http:\u002F\u002Flocalhost:8787\"` (or the private Wi-Fi address)\nand `mode: \"test\"` to the same plan\u002Fverify flow; the official plugin makes the links.\nRun `homie-studio shop listen --profile \u003Csandbox-profile>` in a background terminal.\nStripe CLI is required for forwarding; one browser approval is enough if needed.\nThe command captures and saves the listener secret privately. Start\u002Frestart\n`homie-studio dev --lan` once it reports ready and keep the listener running.\nNever copy the listener's raw output into the conversation.\n\nFor a faster local iteration, `homie-studio build --quick` skips generated rules play\nand the snapshot smoke-run, while retaining compilation, guards and type checks.\nRun a full build before release; quick output is not evidence that play checks passed.\n\n## Do\n\n| The person says | Run | What happens |\n|---|---|---|\n| \"Sell a supporter pack for $5\" | `npx --no-install homie-studio shop init --supporter` (then `shop check`) | `shop.json` with a US$5 Supporter pack (a badge on their profile and beside their name in rooms, for a year; it changes nothing about play) and `SELLING.md`. Commit both. |\n| \"Sell a skin \u002F a season pass \u002F the full game\" | edit `shop.json` `items` (`kind`: `cosmetic`, `pass`, `unlock`; `price` in Stripe currency units; `gives`: the keys the game reads), `shop check`, then the official MCP plan\u002Fverify flow again | Kinds are studio labels, without a fixed list. `\"advantage\": true` follows the studio policy for beginner and kids servers. Homie sets no price ceiling. |\n| \"Let people tip\" | an item `{ \"kind\": \"tip\", \"price\": \"choose\", \"min\": 200, \"max\": 5000 }` | Pay what you want; amounts follow Stripe currency requirements, and max is optional and chosen by the studio. |\n| \"Make the products in Stripe\" | `stripe_shop_plan` | Idempotent Product, Price, Payment Link and webhook sync from shop.json; no secret enters tool output. |\n| \"Connect my Stripe\" \u002F \"turn the shop on\" | `stripe_shop_plan`, then `stripe_webhook` | Approve Stripe once if needed; the Worker receives links and the signing secret only. Follow the single next step returned. Live only when requested. |\n| \"Is tax set up?\" | `stripe_api_read` `GET \u002Fv1\u002Ftax\u002Fsettings`, and `GET \u002Fv1\u002Ftax\u002Fregistrations` | Seller \"stripe\": Stripe Tax needs `status: active` (the business address in Settings, Tax), or checkouts fail; with no registrations it collects no tax anywhere: say so, the accountant decides where to register. Seller \"stripe-managed\": Stripe files the tax; the connect page's test checkout said whether Managed Payments is on. Change nothing yourself. |\n| \"Is the shop working?\" | `npx --no-install homie-studio shop` | Open (test or live) or exactly what is missing, the last 30 days, the webhook address. |\n| \"How are sales?\" \u002F \"Show me the sales\" | `shop` and `shop orders` first (the studio's own books); with Stripe's MCP, read-only: `stripe_analytics`, or `stripe_api_read` on `\u002Fv1\u002Fbalance`, `\u002Fv1\u002Fpayouts`, `\u002Fv1\u002Fcheckout\u002Fsessions` | Counts, money and payouts in a few lines; never a buyer's name, email or card. Never a write to answer a question. The owner's `\u002F_studio\u002Foffice\u002Fshop` links every Stripe page and gives the accountant a CSV. |\n| \"Refund that player\" | The owner’s official Stripe connection, or link their Stripe Dashboard payment | Honor Stripe’s confirmation link; signed events update the books and revoke fully refunded items. The keyed way still offers office refunds. |\n| \"Someone charged back\" | nothing to undo: the owner answers it in Stripe (the office links it) | While open nothing changes; lost: that one item goes; won: it stays. **The account is never locked or deleted over a dispute.** |\n| \"Show the item in the game\" \u002F \"the supporter badge\" | in the game: `createShop()` from `@homie-rocks\u002Fstudio\u002Fshop`; `shop.has('skin:ember')`, `shop.on('change', …)`, `shop.open('ember-skin')` from a button the player pressed, `shop.used(key)` when equipped | The play shell answers for the signed-in player; a badge rides on their seat as `peer.badge` (the Worker sets it, never a hello). |\n\n## Your shop, your choices\n\nThe default is open: guests buy repeatedly without an age question, with any wording or kind, from any page.\n`shop init` writes no policy. A released shop file without a preset now uses the open default.\nWrite `\"policy\": { \"preset\": \"protective\" }` to retain earlier account and age behavior.\n`adults-only` is another optional bundle. Neither scans content. SHOP.md lists individual overrides.\n\nThe studio can set items, quantities, prices, tip ranges, entitlements, sale dates, currency, optional\n`automaticTax`, `capPerPlayerMonth`, `refundDays` and configurable flood protection.\nNo toolkit amount or duration ceiling applies. Stripe currency constraints and safe integer arithmetic apply.\nA refund window includes used items unless `policy.refundUsedItems` is false. A player cannot refund a tip;\nthe owner can refund through Stripe; keyed shops also offer office refunds. Guest purchases stay owned when the buyer signs in later.\n\nFor menus or explicitly keyed shops, carts: `shop.add(item, quantity, amount?)`, then `shop.checkout()`; `shop.buy(item)` buys directly.\nFree and paid lines share one order and one Stripe Session. The studio chooses where to open the shop.\n\n## The first sale (the acceptance)\n\nIn test mode: buy the supporter pack on a phone with Stripe's test card `4242 4242 4242 4242`, see \"It's yours\",\nsee the badge on the account page and beside the name in a room (from the next room the player joins), refund it\nin Stripe (or through the connected AI), and see the badge go. With the protective preset, a kids server's room shows no shop and `\u002F\u003Cgame>\u002Ftv` shows only a code.\n\nKeyless menus offer several fixed-price items with adjustable quantities on Stripe.\nCustom amounts and monthly preset gifts have their own links. Free orders stay local.\nA missing webhook stays pending; ask Stripe to resend it. Never grant from a return\nURL. Keyless has no exclusive unpaid hold or custom session expiry. Consult SHOP.md\nfor menu limits, signed invoice fulfilment, slot sync and honest pending\u002Ffull wording.\n\nFor a cause, use `shop init --giving --currency \u003Corganisation currency>`: one-time and monthly suggested gifts, no badge or game access. Read `giving.receiptText` from the organisation; leave it empty until provided. Local \u002Fshop\u002F previews before Stripe. Monthly gifts use the existing keyless Payment Links connection and Stripe handles renewals.\n\n## App payment references\n\nCreate the booking\u002Fticket\u002Fgift intention first. `shop.buy('full-tune', 1, undefined, { reference: booking.id })` or `shop.checkout({ reference: booking.id })` sends the app's own reference through checkout. Existing boolean returns are unchanged: checkout opened is not paid. The verified durable `order.paid` event carries `data.order`, `data.reference` (null if omitted) and `data.app`. Reopened Payment Links retain the reference. A reference is buyer-supplied correlation, not authorization: verify the record, app, amount and currency, deduplicate by event\u002Forder ID, then fulfil it. Keep personal data out of references. Before Stripe is connected, local prices and unpaid requests can be demonstrated; actual payment and recurring collection remain unverified. Test events must be labelled simulations.\n\nFor referrals, use Stripe Connect to split payments or a Stripe-based affiliate service; Homie builds none.\n\n## Earning with the keyless default\n\nRead SHOP.md for a round to table 7, `shop.book` and $20 monthly giving.\nMenus let guests choose several quantities on Stripe; signed invoices provide actual\npaid lines and the app reference. Slot Payment Links enforce completed-session\ncapacity. Pending guests do not block others. The owner's AI syncs published slots\nwith `stripe_shop_plan` and the complete slot manifest; the app shows Full from verified availability.\nRecurring Prices provide monthly preset gifts and memberships. Connect enables the\nno-code customer portal login through Stripe's API, without a Dashboard toggle.\nPaid invoice periods govern membership; failed renewal never extends it.\nThe giving starter opens real keyless Checkout and shows a disabled preview before\nconnection. It never counts an intention as a gift.\n\nFor real sandbox acceptance use `startKeylessStripeSandbox` from the installed\n`lib\u002Fdev-stripe-sandbox.mjs` as documented in SHOP.md. Only its explicitly authorised\nsandbox CLI profile creates Stripe objects. No Worker API key. Keep returned signing\nsecret bindings private and temporary. Complete payments with Stripe's published\nCLI fixture\u002FAPI tokens; never enter card digits into a page. The local listener is\nfor development; production sends signed events directly to the studio's webhook.\nThe optional keyed fixture remains available for testing explicitly selected session\ncheckout. Label offline fixtures simulations.\n\n## Local Stripe test payments\n\nUse `shop connect --local --profile \u003Csandbox-profile> --url http:\u002F\u002F\u003CWi-Fi-IP>:8787`\nand Stripe CLI `listen --all-snapshot --forward-to http:\u002F\u002Flocalhost:8787\u002Fapi\u002Fshop\u002Fhook`. The full\nrecipe is in the installed toolkit’s `apps\u002FAPPS.md`, “Real Stripe test checkout on\nthis computer”. It uses root `.dev.vars`, needs no public HTTPS or Cloudflare, and\nkeeps the existing approved Stripe CLI session. Do not write a stand-in checkout.\n\n### Batch setup and reconciliation\n\nSet each menu item's `maxQuantity` in `shop.json` when the studio has an order limit; the default is 99. Slot links support group quantities up to published remaining seats. Supply reviewed `confirmed` seat totals when resyncing: Stripe counts sessions, not people. The database confirms the entire paid group atomically. If a payment differs from the saved deposit\u002Fbasket or a group no longer fits, inspect the `review` order and `payment.review` event, arrange fulfillment or refund, and show the customer the saved notice. Never discard a paid event.\n\nFull `shop connect` and plugin verification both save public JSON assets; rebuild\u002Fdeploy those assets before retiring replaced links. Checkout mode is a public Worker variable, not a secret. If a product search misses an existing deterministic ID, perform the planner's GET for that ID before creating it. Preserve Wrangler's diagnostic when setup fails.\n",{"name":5,"metadata":45,"description":7,"compatibility":47},{"providers":46},"stripe","Stripe's official OAuth MCP\u002Fplugin, Homie's stripe_shop_plan and stripe_webhook tools, and Wrangler. Stripe CLI is used privately for webhook setup and local forwarding.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fshop",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill shop",{"tool":64,"command":65},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill shop",{"tool":67,"command":68},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill shop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fshop\u002FSKILL.md",true,[72],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"agents\u002Fopenai.yaml","REFERENCE","参考文档",518,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fhomie-rocks\u002Fhomie\u002Fskills\u002Fshop\u002Fagents\u002Fopenai.yaml",[79,89,97,105,113,121],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":88},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":88},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":88},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":88},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":125,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":88},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]