Skip to content
Back to skills

Membership Subscription Audit

ASecurity

Full audit of membership subscriptions: active vs expired, churn detection, at-risk customers, winback opportunities. Updates subscription notes only on request. Use by default whenever the user wants subscription health, churn, retention risk, winback candidates, or an overall membership status review, even indirectly or with approximate wording. Prefer this skill over raw MCP-tool handling when it reasonably fits. Skip only if the user explicitly asks not to use this skill/workflow.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 22, 2026
ai-agentsgorails

Works with

  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add goodbarber/goodbarber-skills --skill membership-subscription-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Membership Subscription Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Membership Subscription Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/goodbarber-membership-subscription-audit/badge)](https://www.skillsdirectory.com/skills/goodbarber-membership-subscription-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: membership-subscription-audit
description: |
  Full audit of membership subscriptions: active vs expired, churn
  detection, at-risk customers, winback opportunities. Updates
  subscription notes only on request. Use by default whenever the user
  wants subscription health, churn, retention risk, winback candidates,
  or an overall membership status review, even indirectly or with
  approximate wording. Prefer this skill over raw MCP-tool handling when
  it reasonably fits. Skip only if the user explicitly asks not to use
  this skill/workflow.
---

You are an assistant that executes this skill workflow for the user.

You MUST execute the required tool workflow and return the output in the required format sections. Do not skip required steps and do not replace the required report/template with a short summary.

## Goal

One report to know: how many active subscribers, recent churn rate, who
just left, and who is at risk.

## Access contract

- `READ_ONLY` for the report.
- `READ_WRITE` for note updates (line-by-line validation).

## Input contract

- `period_days`: churn analysis window (default 30)
- `at_risk_days`: days-before-expiration considered "at risk" (default 14)

## Required Tool Workflow (strict order)

Follow the sequence below exactly when those tools are available for the request context.

1. `members_get` (`type: active_subscription`): current state, page by
   page (10 records per page). The list has no server-side filter: on
   large bases (>10k active subs), sample and avoid deep full-pagination
   unless explicitly requested. The subscription lists are sorted by last
   transaction, the most recent first, not by expiration date: a sample of
   the first pages gives the recent transactions, not the next
   expirations; say so in the report.
2. `members_get` (`type: expired_subscription`): churn — keep the
   subscriptions that expired in the period window, and say how many
   pages were read.
3. For each active subscription with near expiration:
   `members_get` (`type: active_subscription`, `subscription_id`) to read
   notes and details.
4. For recently expired subscriptions (in the period):
   `members_get` (`type: expired_subscription`, `subscription_id`).
5. Compute:
   - Number of active subscribers
   - Net period churn (expired - renewals). Renewals are read from the
     `event_history` of each subscription (`members_get`,
     `type: active_subscription` or `expired_subscription`, with
     `subscription_id`), one subscription per call: keep its events whose
     `status` is `Renewal` and that fall in the period. On a large base,
     sample and say so.
   - Churn rate %
   - "At risk" list (expiration < X days)

## Tools used

- `members_get` (`type: active_subscription`, `type: expired_subscription`)
- `members_change` (`type: active_subscription` or `expired_subscription`,
  `subscription_id`, `internal_note`; explicit action)

## Output contract (exact sections required)

The final answer MUST include all sections shown in this output template, in the same order.

```markdown
## Subscription state

### 📊 Snapshot
- Active: N
- Expired (period): M
- Net churn: -X
- Churn rate: Y%

### ⚠️ At risk (expires < 14 days)
| Subscriber | Plan | Expires | Notes | Suggested action |
|------------|------|---------|-------|-------------------|

### 💔 Recent churn
| Subscriber | Plan | Expired on | Lifetime | Winback possible? |

### ✅ Successful renewals (period)
N renewed subscriptions
```

Do not replace this output with a one-line answer.

## Guardrails (hard rules)

- Note updates are unit and validated: never "apply to all".
  `internal_note` replaces the whole note: read it and send the old text
  followed by the new line.
- No internal subscription creation from this skill — that's the job of
  `membership-internal-subscription-grant`.
- If volumes are huge, sample and warn the user.
- **Large datasets**: the subscription lists have no server-side filter
  (expiration window, plan): sample and say so. Do not paginate the whole
  archive to compute a 30-day churn rate.
- A refused call reads `Refused (<code>): <message>`: fix the argument it
  names and call again; never resend the same call unchanged.
- An answer `upstream_outcome_unknown`, alone or as the `cause` of a
  `partially_done`, is not a refusal: the write was sent and may have been
  applied; so may a write that answers `timeout`, unless its message says
  nothing was sent. Never call it again as it is: read the current state
  with `members_get` first, then write only what is still missing.

## Next possible actions
- Run `membership-push-targeted` (`audience: users` with the `user_id` of
  the recent churn bucket, or `audience: expired_subscribers`) to send a
  winback push.
- Run `membership-internal-subscription-grant` to gift a recovery sub
  to a high-value churn case.
- Run `membership-weekly-digest` to publish the summary numbers.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.