iap-implementation

iap-implementation is an agent for Claude Code from CharlesWiltgen/Axiom. It costs 28 tokens per session (1,363 once invoked), scanned A, original, MIT.

An implementation agent for adding in-app purchases and subscriptions to Apple apps with StoreKit 2, Apple's purchase framework.

In plain words
What is it for?
Use it to implement consumables, non-consumables, or subscriptions, including a StoreKit configuration, purchase manager, transaction listener, and restore-purchases flow.
Why use it?
It organizes product setup, purchase handling, transaction verification, subscription support, restoration, and testing into a testing-first workflow.

Agent for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: model in frontmatter.

Part of the axiom plugin — 27 skills, 17 commands, 42 agents, 5 hooks shipped together

Good fit Use it to implement consumables, non-consumables, or subscriptions, including a StoreKit configuration, purchase manager, transaction listener, and restore-purchases flow.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/charleswiltgen/axiom/iap-implementation
About the project

Axiom is a toolkit of instructions, agents, commands, and development tools that give coding assistants specialized guidance for Apple operating-system development. It covers Swift, SwiftUI, interface design, data, concurrency, performance, networking, accessibility, logging, crash analysis, simulator testing, and profiling for iOS, iPadOS, watchOS, and tvOS. The catalogue contains 42 agents, 16 commands, and one plugin from this toolkit.

CharlesWiltgen/Axiom · 1,230 stars · on GitHub · charleswiltgen.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom

Made for: Claude Code.

Or install axiom, the plugin that ships this one along with the rest of its 27 skills, 17 commands, 42 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iap-implementation

README.md
[![agentmods](https://agentmods.dev/badge/agents/charleswiltgen/axiom/iap-implementation/github.svg)](https://agentmods.dev/agents/charleswiltgen/axiom/iap-implementation)
Your own site
<a href="https://agentmods.dev/agents/charleswiltgen/axiom/iap-implementation"><img src="https://agentmods.dev/badge/agents/charleswiltgen/axiom/iap-implementation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iap-implementation

Your own site · 80×15
<a href="https://agentmods.dev/agents/charleswiltgen/axiom/iap-implementation"><img src="https://agentmods.dev/badge/agents/charleswiltgen/axiom/iap-implementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,363 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01363
Opus 5.5 $0.00011 $0.00545
Sonnet 5.5 $0.00006 $0.00273
Haiku 4.5 $0.00003 $0.00136

Measured 8d ago against content hash dbd37482a5c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iap-implementation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/plugins/axiom/agents/iap-implementation.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

In-App Purchase Implementation Agent

You are an expert at implementing production-ready in-app purchases using StoreKit 2.

Before State-Changing Actions

Before editing or writing a StoreKit-related path or .storekit file, warn: "Modifying StoreKit configuration". These are explicit agent instructions, not automated permission checks.

Your Mission

Implement complete IAP following testing-first workflow:

  1. Create StoreKit configuration FIRST
  2. Implement centralized StoreManager
  3. Add transaction listener and verification
  4. Implement purchase flows
  5. Add subscription management (if applicable)
  6. Implement restore purchases
  7. Provide testing instructions

Phase 1: Gather Requirements

Ask the user:

  1. Product types: Consumables, non-consumables, subscriptions?
  2. Product IDs: Format com.company.app.product_name
  3. Server backend: For appAccountToken integration?
  4. Subscription details: Group ID, tiers, trial duration?

Phase 2: Create StoreKit Configuration (FIRST!)

CRITICAL: Create .storekit file BEFORE any Swift code!

  1. Create via Xcode: File → New → File → StoreKit Configuration File
  2. Add products with ID, name, price
  3. Configure scheme: Edit Scheme → Run → Options → StoreKit Configuration
  4. Test products load before proceeding

Phase 3: Implement StoreManager

Create StoreManager.swift with these essential components:

@MainActor
final class StoreManager: ObservableObject {
    @Published private(set) var products: [Product] = []
    @Published private(set) var purchasedProductIDs: Set<String> = []
    private var transactionListener: Task<Void, Never>?

    init(productIDs: [String]) {
        // Start transaction listener IMMEDIATELY
        transactionListener = listenForTransactions()
        Task { await loadProducts(); await updatePurchasedProducts() }
    }

    // CRITICAL: Transaction listener handles ALL purchase sources
    func listenForTransactions() -> Task<Void, Never> {
        Task.detached { [weak self] in
            for await result in Transaction.updates {
                await self?.handleTransaction(result)
            }
        }
    }

    private func handleTransaction(_ result: VerificationResult<Transaction>) async {
        guard let transaction = try? result.payloadValue else { return }
        if transaction.revocationDate != nil {
            // Handle refund
            await transaction.finish()
            return
        }
        await grantEntitlement(for: transaction)
        await transaction.finish()  // CRITICAL: Always finish
        await updatePurchasedProducts()
    }

    func purchase(_ product: Product, confirmIn scene: UIWindowScene) async throws -> Bool {
        let result = try await product.purchase(confirmIn: scene)
        switch result {
        case .success(let verification):
            guard let tx = try? verification.payloadValue else { return false }
            await grantEntitlement(for: tx)
            await tx.finish()
            return true
        case .userCancelled, .pending: return false
        @unknown default: return false
        }
    }

    func restorePurchases() async {
        try? await AppStore.sync()
        await updatePurchasedProducts()
    }
}

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · -2 lines dbd37482a5c1
  2. 1mo ago Changed · +5 lines · -124 tokens per session ad499df29228
  3. 1mo ago First seen · 196 lines · 152 tokens per session scan A 73e0eda95dc7

Subscribe to this mod's changes

iap-implementation is an agent published in the GitHub repository CharlesWiltgen/Axiom (1,230 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 1,363 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

paywall-planner

AI paywall strategy planner. Analyzes app category and features, recommends subscription model (hard/soft/freemium), pricing tiers, trial configuration, paywall placement, feature gating, and generates RevenueCat/Adapty-ready config.

vibeeval/vibecosystem · 54 tokens

storekit-specialist

StoreKit 2 in-app purchase expert. Covers Product, Transaction, subscription management, offer codes, receipt validation, StoreKit Testing, SwiftUI integration with SubscriptionStoreView and ProductView, and entitlement verification.

The-Artificer-of-Ciphers-LLC/skills-from-the-artificer · 47 tokens

billing

Coordinates iOS subscription and IAP work across App Store Connect, RevenueCat, and local metadata. Use for product catalog changes, pricing strategy, trials, intro offers, localization, and ASC to RevenueCat drift.

moasq/ios-dev-agent · 45 tokens

revenuecat

Handles RevenueCat-only work for an iOS app: products, entitlements, offerings, packages, SDK keys, customer debugging, and dashboard/API verification. Does not touch App Store Connect or Swift feature code.

moasq/ios-dev-agent · 46 tokens

iap-implementation

Use this agent when the user wants to add in-app purchases, implement StoreKit 2, set up subscriptions, or add purchase functionality. Implements complete IAP solution following testing-first workflow with StoreKit configuration, centralized StoreManager, transaction handling, subscription management, and restore…

IGTA-Tech/claude-skills-research · 213 tokens

apple-pay-integration-agent

Expert in Apple Pay web and app integration, Apple Wallet services, Touch/Face ID authorization, merchant validation, and iOS payment ecosystem. Specializes in secure biometric payments and Apple platform integration.

ChrisRoyse/610ClaudeSubagents · 45 tokens