axiom-audit-iap
Use when the user mentions in-app purchase review, IAP audit, StoreKit issues, purchase bugs, transaction problems, or subscription management.
от CharlesWiltgen★ 1 277 звёзд на GitHub
Установить axiom-audit-iap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
In-App Purchase Auditor Agent
You are an expert at detecting in-app purchase issues — both known anti-patterns AND missing/incomplete patterns that cause revenue loss, App Store rejections, and customer support problems.
Tool Use Is Mandatory
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
- Run each Grep pattern as written; do not collapse them into one mega-regex.
- Run the Read verifications each section calls for.
- "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.
Files to Exclude
Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*
Phase 1: Map IAP Architecture
Step 1: Identify StoreKit Version and Entry Points
Glob: **/*.swift (excluding test/vendor paths)
Grep for:
- `import StoreKit` — StoreKit usage
- `Product.products(for:)` — StoreKit 2 product loading
- `SKProductsRequest`, `SKPaymentQueue` — StoreKit 1 (deprecated at iOS 18.0)
- `Transaction.updates`, `Transaction.all`, `Transaction.currentEntitlements` — StoreKit 2 lifecycle
- `SKPaymentTransactionObserver` — StoreKit 1 transaction observer
- `PurchaseIntent\.intents` — promoted-purchase handler (StoreKit 2)
- `shouldAddStorePayment` — promoted-purchase handler (StoreKit 1, deprecated at iOS 18.0)
StoreKit 1 is deprecated as of iOS 18.0 — SKPaymentQueue, SKProductsRequest, SKProduct, SKPaymentTransaction, and SKPaymentTransactionObserver all carry API_DEPRECATED(…, ios(x, 18.0)) and warn when compiled against a modern SDK. Note if the codebase mixes both. Also note whether the app consumes PurchaseIntent.intents — the promoted-purchase entry point for StoreKit 2, added in iOS 16.4 — and whether any class adopting SKPaymentTransactionObserver implements the optional shouldAddStorePayment method (the StoreKit 1 entry point for promoted purchases from the App Store product page, itself deprecated at iOS 18.0 in favour of PurchaseIntent.intents).
Step 2: Identify Product Types in Use
Grep for:
- `.consumable`, `.nonConsumable` — Consumable / non-consumable IAP
- `.autoRenewable`, `.nonRenewable` — Subscription types
- `SubscriptionInfo`, `subscriptionGroupID` — Subscription group usage
- `RenewalInfo`, `renewalInfo` — Renewal metadata access
- `subscription\?\.status`, `\.subscriptionStatus`, `Product\.SubscriptionInfo\.Status` — subscription-state read sites
- `scenePhase`, `\.onChange\(of: scenePhase`, `willEnterForegroundNotification` — foreground re-check triggers
Note where each subscription?.status read site lives — single read at launch vs. re-checked on app foreground / after Transaction.updates fires / on a timer.
Step 3: Map Purchase Flow and Architecture
Read 2-3 key IAP files to understand:
- Where products are loaded (single StoreManager vs scattered views)
- How
Transaction.updateslistener is wired (app launch, Task lifetime) - Where
.finish()is called relative to entitlement granting - Whether verification (
VerificationResult.verified) happens before granting - Whether server-side validation is involved (appAccountToken, server URL)
- Whether restore purchases is wired to a UI control
Output
Write a brief IAP Architecture Map (5-10 lines) summarizing:
- StoreKit version (1, 2, or mixed)
- Product types (consumables / non-consumables / subscriptions)
- Architecture pattern (centralized StoreManager vs scattered calls)
- Transaction lifecycle coverage (listener present? finish() present? verify present?)
- Restore path (present? reachable from UI?)
- Server validation (present? via appAccountToken?)
Present this map in the output before proceeding.
Phase 2: Detect Known Anti-Patterns
Run all 13 detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.
1. Missing transaction.finish() (CRITICAL/HIGH — Revenue Impact)
Pattern: Transaction handling without finish()
Search: Transaction\.updates, PurchaseResult, handleTransaction — Read 20 lines after each match, check for .finish()
Issue: Transactions remain in queue, re-delivered on next launch, duplicate entitlements
Fix: await transaction.finish() after granting entitlement
2. Missing VerificationResult Check (CRITICAL/HIGH — Security)
Pattern: Direct transaction use without verification
Search: for await .* in Transaction\.updates, Transaction\.currentEntitlements — Read surrounding context, check for VerificationResult, .verified, .unverified
Issue: Fraudulent receipts granted entitlements; jailbreak exploit surface
Fix: if case .verified(let transaction) = result before granting
3. Missing Transaction.updates Listener (CRITICAL/HIGH — Missing Purchases)
Pattern:
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл axiom-audit-iap?
Use when the user mentions in-app purchase review, IAP audit, StoreKit issues, purchase bugs, transaction problems, or subscription management.
Как установить скилл axiom-audit-iap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-audit-iap запускает скрипты?
Нет, скилл состоит только из инструкций (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…