implement-in-app-purchases
An agent skill by Unity-Technologies, from Unity-Technologies/unity-agent-plugin. Tags: api, mobile, monetization, payments, store, validation.
What it does
Implement, configure, and debug Unity In-App Purchases (IAP) — store connection, product catalog, consumable/non-consumable/subscription purchases, two-step pending-confirm flow, receipt validation, entitlement checking, restore transactions, Apple extensions (promotional purchases, Ask-to-Buy, code redemption), and Google Play extensions (subscription upgrade/downgrade), D2C Capabilities(direct to customer), 3rd party payment provider (Stripe/Coda) via Unity IAP/Unity Cloud. Use when the user needs to add, modify, debug, or migrate from native Android/iOS billing, 3rd party packages(RevenueCat/Adapty/Essential Kit/Unipay supported) to IAP. Triggers on microtransactions (MTX), monetization, real-money purchases, store purchases, buying items, support D2C, purchase via Stripe/Coda, migrate from native billing(Google's BillingClient or Apple's StoreKit/SKPaymentQueue/SKProduct)/RevenueCat/Adapty/EssentialKit/Unipay.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add Unity-Technologies/unity-agent-plugin --skill implement-in-app-purchases
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/Unity-Technologies/unity-agent-plugin
cp -r unity-agent-plugin/skills/implement-in-app-purchases ~/.claude/skills/implement-in-app-purchases
Safety box score
Grade C, moderate risk: 18 of 100 risk points, rated 2026-10-19. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is about implementing Unity in-app purchases, subscription handling, receipt validation, and even direct-to-customer payment flows. It mostly edits Unity project files and settings, but the main risk is that it enables real-money purchase behavior in production; one referenced D2C guide could not be read during review.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 0 (none) | No shipped scripts or shell commands are included; the files are markdown guidance only, with no `curl`, `eval`, or native installers. |
| Network access | 0 (none) | The reviewed files do not themselves download from or send data to remote hosts; they only describe app-side IAP/validation behavior. |
| Filesystem reach | 1 (low) | The skill directs edits to project-local paths such as `Packages/manifest.json`, `ProjectSettings/...`, `Assets/Resources/IAPProductCatalog.json`, and platform plugin folders. |
| Secrets & credentials | 0 (none) | There is no handling of tokens, passwords, keychains, `.env` files, or browser sessions in the skill files. |
| Privilege & persistence | 0 (none) | Nothing here requires sudo, system services, shell startup edits, or global installs; all changes are scoped to the Unity project. |
| Instruction hijack surface | 0 (none) | I did not find hidden instructions, remote-content follow prompts, or commands to ignore higher-level rules; the imperative text is ordinary workflow guidance. |
| Irreversible actions | 3 (high) | The stated purpose is to implement "real-money purchases or microtransactions" and "direct-to-customer payments via Stripe or Coda," which is inherently high-blast-radius payment functionality. |
| Transparency | 1 (low) | `references/path-implement-iap-d2c.md` could not be read, so the D2C path referenced by `SKILL.md` was not fully reviewable. |
Before installing
- Confirm whether you want standard Apple/Google billing or D2C (Stripe/Coda) before using this skill.
- Check whether `Assets/Resources/IAPProductCatalog.json` exists and whether `enableCodelessAutoInitialization` is true.
- If D2C is planned, open `references/path-implement-iap-d2c.md` directly before trusting the skill’s guidance.
- Sandbox-test any purchase flow and receipt validation before shipping to production.
Rated 2026-10-19 by an automated review of 13 files from the skill's repository.
Source
- Repository
- Unity-Technologies/unity-agent-plugin (all skills from this repository)
- Path
- skills/implement-in-app-purchases/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- agents-pay — Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments.
- aws-auth — Adds user authentication to web and mobile apps with Amazon Cognito (user pools and identity pools) and the AWS Amplify client auth libraries.
- aws-sdk-js-v3-usage — AWS SDK for JavaScript v3 development patterns.
- aws-sdk-python-usage — AWS SDK for Python (boto3/botocore) development patterns. You MUST use this skill when writing Python code that uses AWS services via boto3 or botocore.
- aws-sdk-swift-usage — AWS SDK for Swift development patterns. Use when writing Swift code that uses AWS services via aws-sdk-swift package.
- expo-data-fetching — Framework (OSS). Use when implementing or debugging ANY network request, API call, or data fetching.