restore-purchase
Use when a user needs previously purchased non-consumables or subscriptions reconstructed on a new/reinstalled device, or when local entitlement state may be…
от jammyfu★ 27 звёзд на GitHub
Установить restore-purchase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Restore purchase
Restoration discovers currently restorable store/account history or entitlements, then feeds each verified item through the same idempotent entitlement-grant path used for purchases.
Product eligibility
| Product type | Restore behavior |
|---|---|
| non-consumable | restorable/current-entitlement item; re-grant idempotently |
| auto-renewing subscription | reconstruct current entitlement/status from authoritative store/server state |
| non-renewing/time-limited product | restore only if the product/store contract and your persistence strategy support it |
| consumable | normally not reconstructed as spendable balance from generic restore history; use your durable/server ledger if the design requires cross-device consumable balance |
Do not treat "restore" as "replay every historical purchase and increment counters".
Flow
- start from an explicit user action or the platform-approved current-entitlement refresh path;
- fetch/sync store state without deleting local entitlements on transient failure;
- verify product/account identity and classify restorable vs non-restorable items;
- send each verified item through the idempotent grant function keyed by original/stable transaction identity or purchase token as appropriate;
- report completion, partial failure, or no-restorable-items without touching story-save trust classes.
Restored callbacks may repeat or replay history. Repetition must not duplicate durable unlocks or consumable balances.
Acceptance
On a second device/reinstall, restore a non-consumable and active subscription, repeat restore multiple times, test no-purchase account, expired/revoked subscription, store/network failure, and a consumable SKU. Restorable access returns once; consumable balance is not blindly incremented; transient failure never wipes known-good entitlement state.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл restore-purchase?
Use when a user needs previously purchased non-consumables or subscriptions reconstructed on a new/reinstalled device, or when local entitlement state may be stale.
Как установить скилл restore-purchase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл restore-purchase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…