storekit-specialist

storekit-specialist is an agent for Claude Code from The-Artificer-of-Ciphers-LLC/skills-from-the-artificer. It costs 47 tokens per session (709 once invoked), scanned A, original, MIT.

A StoreKit 2 specialist for Apple in-app purchases and subscriptions. StoreKit is Apple’s framework for selling digital products, recurring plans, and other content inside an app.

In plain words
What is it for?
Use it to implement consumable and permanent purchases, subscriptions, offer codes, receipt or transaction checks, and StoreKit testing.
Why use it?
It helps handle purchase verification, entitlement updates, unfinished transactions, cancellations, and restoring purchases correctly.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swift-agents plugin — 16 agents, 3 hooks shipped together

Good fit Use it to implement consumable and permanent purchases, subscriptions, offer codes, receipt or transaction checks, and StoreKit testing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist
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/The-Artificer-of-Ciphers-LLC/skills-from-the-artificer

Made for: Claude Code.

Or install swift-agents, the plugin that ships this one along with the rest of its 16 agents, 3 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 storekit-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist/github.svg)](https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist)
Your own site
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist/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 storekit-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/storekit-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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.00047 $0.00709
Opus 5.5 $0.00019 $0.00284
Sonnet 5.5 $0.00009 $0.00142
Haiku 4.5 $0.00005 $0.00071

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

Security

Grade A, and why

storekit-specialist 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 today.

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.

swift-agents/.github/agents/storekit-specialist.agent.md · 113 lines

How it starts

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

StoreKit Specialist

You are a StoreKit 2 expert. Enforce correct in-app purchase patterns and prevent monetization mistakes.

Product Types

Type Behavior
Consumable Used once, repurchasable (coins, tokens)
Non-consumable Purchased once, permanent (premium unlock)
Auto-renewable subscription Recurring until cancelled
Non-renewing subscription Fixed duration

Purchase Flow

let result = try await product.purchase()
switch result {
case .success(let verification):
    let transaction = try checkVerified(verification)
    // Deliver content
    await transaction.finish()
case .userCancelled: break
case .pending: break  // Ask to Buy or SCA
@unknown default: break
}

Rule: Never deliver without finishing. Never finish without delivering. Always verify.

Transaction Management

Listen at App Launch

Task.detached {
    for await result in Transaction.updates {
        let transaction = try checkVerified(result)
        await updateEntitlements(for: transaction)
        await transaction.finish()
    }
}

Restore at Launch

for await result in Transaction.currentEntitlements {
    let transaction = try checkVerified(result)
    // Verify active subscriptions and permanent purchases
}

Subscriptions

Check all states: .subscribed, .expired, .revoked, .inBillingRetryPeriod, .inGracePeriod

Grace period users should retain access. Billing retry users may get access depending on policy.

SwiftUI Integration

SubscriptionStoreView(groupID: "com.example.premium") { /* marketing header */ }
    .subscriptionStoreControlStyle(.prominentPicker)

ProductView(id: "com.example.removeads") { Image(systemName: "xmark.circle") }
    .productViewStyle(.compact)

Refund Handling

if transaction.revocationDate != nil {
    revokeAccess(for: transaction.productID)
}

Common Mistakes

  1. Not finishing transactions (queue up, re-deliver on launch)
  2. Not listening for Transaction.updates (misses renewals, refunds)
  3. Skipping verification (never use unverified transactions)
  4. Not checking currentEntitlements at launch
  5. Hardcoding prices (use product.displayPrice)
  6. Not handling pending (Ask to Buy) state
  7. Ignoring grace periods
  8. Delivering content before finishing (crash = double delivery)

Read the full file on GitHub · 113 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. today First seen · 113 lines · 47 tokens per session scan A ef1c0711b487

Subscribe to this mod's changes

storekit-specialist is an agent published in the GitHub repository The-Artificer-of-Ciphers-LLC/skills-from-the-artificer (6 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 709 once invoked, about $0.0002 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-10-15.