/adapty-skills:refund-saverfrom Adapty
Manages Adapty's Refund Saver feature to dispute unfair refund requests from App Store and Google Play. Checks setup, toggles the switch, sets per-store/user refund preferences and consent policy, and diagnoses why it isn't working.
Ships in Adapty. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When a user asks a store for a refund, the store asks the developer how the purchase was used
before it decides. Refund Saver answers for the app, with a refund preference and the user's
usage, so unfair requests get disputed; the store still decides. This skill runs it through the
CLI's refund-saver topic or the Adapty MCP tools refund_saver_*: whether each store is set up,
the switch, the preference of each store and of one user, the consent policy, and why it does not
work. Refund Saver is a paid add-on: the account owner turns the add-on on in Billing in the
dashboard; no command does. Every write runs only after the user's yes to its effect.
How each part works in the dashboard: https://adapty.io/docs/refund-saver
It does not own:
growth-advisor, which reads them.adapty-integration; this skill
names what is missing and where.decline_first_grant_next, except inside a command..md URL; the user gets the same URL without
.md. Reply in the user's language; the dashboard's own words stay ("Turn on refund saver").This skill reaches Adapty through the Adapty CLI or the Adapty MCP server. Its commands are written for the CLI, and over MCP each one is a tool call. Before the first call, check both, pick one way, and keep it for the run:
adapty auth whoami shows an account. Install nothing for this check.apps_list and auth_whoami,
after any prefix your client adds) and auth_whoami shows an account.| CLI ready | MCP ready | Use |
|---|---|---|
| yes | no | the CLI |
| no | yes | MCP |
| yes | yes | the way this skill prefers (the line after this section's example) |
| no | no | ask which one to set up (below) |
Over MCP, run each command as its tool. $ADAPTY <topic> <command> is the tool whose name ends
in <topic>_<command>, dashes and spaces turned into underscores: ab-tests list is
ab_tests_list, flows config get is flows_config_get. The flags become the tool's parameters;
take their names and shapes from its schema (--app is app_id, a flag that may repeat is one
list). The tools return JSON, so drop --json. --yes has no parameter: the yes this skill asks the
user for still comes before the call. Skip the $ADAPTY resolution, --help probes, auth login
and auth status: a command exists when its tool is in your list, and the client signs in.
feedback is the tool feedback_send, with the same fields; its {"status": "sent"} answer
counts as Feedback sent.
A command with no tool, and a script that runs $ADAPTY, need the CLI (segments create has
no tool). Run that step with the CLI when it is ready. Otherwise say it needs the CLI and offer to
set it up.
When a call fails one way, a read may run once the other way if that way is ready. After a write fails or times out, read the state again the way that wrote; never repeat the write the other way.
Neither ready: ask which one to set up, the one this skill prefers first, then give only that one's steps. Use your question tool if you have one; otherwise ask in one message with numbered options.
The CLI: run this skill's CLI resolution, then adapty auth login, which opens the browser for
the user's sign-in. The Claude app also needs Adapty's domains allowed first:
https://adapty.io/docs/developer-cli-cowork
EU account: first check that the CLI knows the region: ADAPTY_REGION=xx $ADAPTY auth status
exits 2. On any other exit, set ADAPTY="npx --yes adapty@latest" and keep it for the login and
every next call, also in a new shell, whatever the version block printed. Then log in with
$ADAPTY auth login --region eu (or ADAPTY_REGION=eu); where this skill has the user log in,
run no login yourself and tell them to run adapty auth login --region eu. The user opens the
link in a browser signed in through https://app.adapty.io/eu-login. After a damaged login file,
log in again with the same region; if you do not know it, ask the user.
MCP: the server is https://mcp.adapty.io/mcp, and the user signs in in the browser. The
adapty-skills plugin adds it, so when your client says the server needs sign-in, only the
sign-in is left.
An account on Adapty's EU servers uses the EU instance, https://mcp-eu.adapty.io/mcp, instead.
The plugin adds only the default server, so add the EU one in your agent by hand:
Adapty on EU servers.
/mcp, pick plugin:adapty-skills:adapty, Authenticate. Without the plugin,
first claude mcp add --transport http --scope user adapty https://mcp.adapty.io/mcp.codex mcp add adapty --url https://mcp.adapty.io/mcp, then codex mcp login adapty.If the tools do not appear in this session, the user starts a new one: say so and stop.
Example of the question's shape, not words to copy:
I can reach your Adapty account in two ways. Which one should I set up?
- The Adapty CLI (better for this): I install it, and you sign in once in the browser.
- The Adapty MCP server: you add it to your AI tool and sign in; nothing to install.
This skill prefers MCP when both are ready.
Resolve $ADAPTY once and use it for every call:
if [ "${ADAPTY-}" != "npx --yes adapty@latest" ]; then ADAPTY="adapty"; VMSG=$(
_a() { if [ -n "${HTTPS_PROXY-}${https_proxy-}" ]; then NODE_USE_ENV_PROXY=1 $ADAPTY "$@"; else $ADAPTY "$@"; fi; }
_v() { _a --version 2>/dev/null | sed -n 's|^adapty/\([^ ]*\).*|\1|p'; }
command -v adapty >/dev/null 2>&1 || { npm i -g adapty@latest >/dev/null 2>&1 \
&& command -v adapty >/dev/null 2>&1; } || { echo npx; exit; }
J=$(_a version --json 2>/dev/null) && printf '%s' "$J" | node -e 'let s = "";
process.stdin.on("data", d => s += d).on("end", () => { try { const j = JSON.parse(s);
if (j && typeof j.installed == "string" && (j.latest === null || typeof j.latest == "string")
&& typeof j.update_available == "boolean") process.exit(j.update_available ? 1 : 0);
} catch (e) {} process.exit(1); });' && exit
old=$(_v); npm i -g adapty@latest >/dev/null 2>&1 || { echo npx; exit; }
new=$(_v); [ -n "$new" ] || { echo npx; exit; }
[ "$new" != "$old" ] && echo "CLI updated from $old to $new." || echo "Could not update the CLI: still $new."
); [ "$VMSG" = npx ] && ADAPTY="npx --yes adapty@latest" \
&& VMSG="Could not install or update the CLI globally, so I run it through npx."
if [ -n "$VMSG" ]; then echo "$VMSG"; fi; fi
Run this block as its own command, right after the readiness check adapty auth whoami and
before any other CLI command. Copy it as it is: it runs $ADAPTY version --json and updates a
CLI that is behind or too old to have that command. If it prints a line, your reply to the user
starts with that line, in their language, with nothing added. Say nothing else about the CLI
version: no "up to date", no version number. A new shell does not keep $ADAPTY: set it again, to
npx --yes adapty@latest after the npx line, else to adapty. Run it and the probe below also
when the user limits your reads or asks you to change nothing: they read and update only the CLI
tool on this computer, never the user's Adapty data.
Then probe $ADAPTY refund-saver get --help. If it reports no such topic, try
npx --yes adapty@beta refund-saver get --help once (use that form if it works). If that fails
too, say the CLI does not run Refund Saver yet and offer MCP when it is ready, else the dashboard.
Do not compare version numbers. --yes on npx is required: without it npx waits for a
confirmation nobody gives. In zsh, run setopt shwordsplit before using a multi-word $ADAPTY.
Write a literal adapty in a command you show the user.
Every command takes --app <id>, the Adapty app UUID from $ADAPTY apps list. Read with
--json; take the other flags from the command's --help. No command here takes --yes: the
writes ask nothing, so the card is the only confirmation.
CLI refund-saver … | MCP tool refund_saver_… | Does | Yes |
|---|---|---|---|
get | get | on or off, each store's preference, the App Store consent policy | no |
readiness | readiness | whether each store has the keys Refund Saver needs | no |
on | on | turns it on in both stores | yes card |
off | off | turns it off in both stores | yes card |
update [--app-store-preference <p>] [--play-store-preference <p>] [--needs-consent|--no-needs-consent] | update (refund_saver_needs_consent) | changes only what is named | yes card |
profile get <profile_id> | profile_get | one user's own preference and consent | no |
profile update <profile_id> [--custom-preference <p>] [--consent|--no-consent] | profile_update | changes only what is named | yes card |
requests --date-from <d> --date-to <d> [--store <s>] | requests | the requests it answered, newest first | no |
metrics --date-from <d> --date-to <d> [--store <s>] | metrics | saved and requested amounts, the win rate | no |
Dates are UTC days, both included, on the day the request was handled. <profile_id> is the
Adapty profile ID, never the customer user ID: a request row carries both. Exit 2 is bad input,
nothing sent; 3 a missing sign-in, an app the account cannot see, or no edit rights; 4 the
server's refusal with its code.
What Refund Saver asks the store for. The store makes the final call.
| What it does | Store value | One user's value |
|---|---|---|
| Decline the first request for a purchase, grant the next one (the default) | decline_first_grant_next | — |
| Decline every request | always_decline | decline |
| Grant every request | always_refund | grant |
| Refund only the unused part (App Store only) | always_prorated | grant_prorated (Google Play gets no preference) |
| Ask for nothing; the store decides alone | no_preference | no_preference |
The consent policy is App Store only: whether Refund Saver sends Apple the data of a user who
has no recorded consent. --needs-consent is opt-in (Apple's recommendation: no consent
recorded, no data sent); --no-needs-consent is opt-out (the default: no consent recorded, data
sent). It must match how the app asks for consent, which only the user knows: ask.
Over the CLI and over MCP alike. Only an answer to the card counts, not an earlier "go ahead" about the plan. "No", silence or a change of plan: send nothing. Reads need no yes.
Example of a card's shape, not words to copy:
Turn on Refund Saver for Atlas.
- App Store: decline the first request, grant the next. Consent policy: opt-out, so users with no recorded consent have their usage sent to Apple.
- Google Play: decline the first request, grant the next.
- Your privacy policy must say you share usage data with Apple for refund requests.
Turn it on?
Then run the command, or call the tool, and read the result back.
An unattended run never writes (a scheduled run, a script, no user to answer): it reads, then
stops and reports the card and the command for the user to run, written with a literal adapty.
get and readiness and lead with what they mean: on or off, and each store ready or
not. A store that is not ready names what is missing, in App settings in the dashboard: the App
Store needs the bundle ID and the App Store Connect API key (key ID, issuer ID, private key);
Google Play the bundle ID and the service account key. Neither the CLI nor MCP sets these: the
user does, or adapty-integration walks them through it on a yes. Say a ready store as "has
the keys Refund Saver needs"; that is all readiness shows.profile get first, then profile update with its card. The app can set
both values from its own code instead: link the docs section in "It does not own".apps list (every
page) and get for each app the user names, or each app when they say "all"; one card lists
every app that changes, and a store that is not ready in one of them is named there.on refused (exit 4): say the error's reason in plain words, and who acts on it: the add-on
is the account owner's, in Billing; Apple keys are fixed in App settings. Never retry
refund_saver_addon_unavailable; the user contacts Adapty support.edit_rights_required (exit 3): the account can see the app but not change it. A company
owner or admin grants edit rights; never retry before.requests shows nothing: read readiness and the period first. Then, by store:
profile_not_found (404): the ID is a customer user ID or another app's profile. Find the
profile ID in a requests row or the dashboard's profile page.growth-advisor reads metrics and
puts them against the app's refunds; offer that read as an outcome and invoke it on a yes.on with anything changed, and never retry
refund_saver_addon_unavailable at all.--help.Send Adapty one feedback note right after the first on, off, update or profile update
in this session, and one when a refusal or a missing piece ends a run the user started to turn it
on. Waiting for the card's yes is not an end. A run that only reads sends none. Write it in English, in this shape: the shape to follow, not words
to copy:
Did: turned Refund Saver on, both stores ready. Source: growth-advisor.
Did: stopped before turning it on. Source: not given. Got in the way: refund-saver on refused with refund_saver_apple_credentials_invalid, and readiness said the App Store was ready.
Did names the write and which stores were ready. Source is growth-advisor,
adapty-integration, other with a few generic words, or not given; never ask for it.
No value and no name from the account or the user's business: no app name, amount or
user ID, none of the user's words. The ids in --context are all Adapty needs.
Sentiment is your own outcome, never the user's mood: positive, done the way this skill
describes, or declined because this skill says it cannot be done; neutral, done after a wrong
turn or a workaround; negative, this skill or the CLI stopped you. Neutral and negative notes
add "Got in the way:" with the command and its error, never a value.
Write the note into the command in single quotes, never from a file or a script. Inside single quotes the shell runs nothing, so drop backticks and write "does not" for "doesn't":
$ADAPTY feedback --feature refund-saver --sentiment <positive|neutral|negative> \
--message '<the note>' \
--context 'app <app id>: <on|off|update|profile update>'
Tell the user in one line, in the same reply, only when the command printed Feedback sent.:
in their language, "I also sent Adapty a short note on how this went." Any other
result gets no line at all. Never retry, never hold up the reply.
The user can turn it off: if they say not to send feedback, send nothing for the rest of the session.
$ADAPTY refund-saver <command> --help for the flags on the installed version; the
adapty-docs skill for any dashboard behaviour. Do not guess a flag, a value or a URL.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/ab-testsUse when a user wants to run, check or end a regular A/B test of paywalls or flows through the Adapty CLI — plan it, create the draft, change it, start it, read its results, stop it with a winner, replace a running test with a changed one, archive it, or see which tests an app has. Triggers on "run an A/B test of these two paywalls", "test my new flow against the old one", "split traffic 50/50", "start the test", "stop the test, B wins", "end this experiment", "change the weights of my test", "which tests are running", "archive the old tests", "should I stop this test", "how did the test go", "who is ahead"./adapty-attributionUse when someone asks how their ad campaigns, channels, ad sets, ads, countries or keywords are performing in Adapty Attribution — ROAS, payback, CPI, cost per trial, installs, trial-to-paid, refunds, predicted revenue — which channel or campaign to scale or cut, where to move budget, why installs dropped, why Meta, TikTok or Google report different numbers than Adapty, or how to set up Adapty Attribution with Meta, TikTok, Google Ads, custom tracking links or a web funnel./adapty-docsUse when an Adapty question has no page already linked in the skill you are holding — how a product or dashboard feature behaves, what a setting does, a limit, store connections, Flow Builder, the Developer CLI, the server-side API, or an SDK method on any platform. Also use when you need a docs page and have no URL for it, or when a docs URL you tried returned 404. Not for making a change to an app's Adapty setup — connecting a store, or creating products, access levels or placements — which `adapty-integration` carries out through the Adapty CLI./adapty-integrationUse when a user wants to integrate Adapty SDK into a mobile app, set up in-app purchases with Adapty, add a paywall to their app, or move to Adapty from another purchase system. Triggers on "integrate Adapty", "add Adapty to my app", "set up subscriptions", "add a paywall", "migrate from RevenueCat", "replace RevenueCat with Adapty", "move off Superwall", or similar./adapty-mailUse when someone wants to work in Adapty Mail — email campaigns or sequences, email flows on triggers like never purchased, expired, refunded, billing issue or renewal cancelled, trial-conversion or win-back emails, translating emails, a sending domain and its DNS records, deliverability, bounces, unsubscribes or suppression, double opt-in, email A/B tests, open, click, conversion or email revenue numbers, or why someone did not get an email. Also use when someone wants to connect the Adapty Mail MCP server to their agent, or a Mail tool call fails with an authentication error./ads-managerUse when managing Apple Search Ads through the Adapty CLI — reading campaign, ad group, keyword or ad performance, changing bids or budgets, getting keyword recommendations for an app, adding or pausing keywords, launching or pausing a campaign, creating a whole campaign structure in bulk from JSON or an Apple Ads template, harvesting search terms, setting up rule-based ad automations, finding who changed a campaign, bid or keyword and when, or turning campaigns, ad groups or keywords into Adapty segments so users from one campaign see their own paywall or flow.npx claudepluginhub adaptyteam/adapty-skills --plugin adapty-skillsOther plugins' skills for the same job