{
  "id": "skl_396364496c9c",
  "slug": "skill-stripe-dunning-recovery",
  "asset_type": "skill",
  "name": "Autonomous SaaS Failed-Payment Dunning & Churn Recovery Skill",
  "tagline": "Detect `invoice.payment_failed` events, classify decline codes (soft vs hard declines), generate hosted card-update links, and stage personalized recovery ",
  "description_md": "### Overview & Capability Scope\n**Autonomous SaaS Failed-Payment Dunning & Churn Recovery Skill** (`skill-stripe-dunning-recovery`) is a verified, portable `SKILL.md` playbook curated with **@gergelyorosz** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nDetect `invoice.payment_failed` events, classify decline codes (soft vs hard declines), generate hosted card-update links, and stage personalized recovery outreach.\n\n### Required Stack & Tooling\n- **Primary Stack:** Stripe Billing, Churn Recovery, Payment Links, Gmail/Slack\n- **Category:** `finance-deals`\n- **Source & Reference:** [https://github.com/stripe/agent-toolkit](https://github.com/stripe/agent-toolkit)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-stripe-dunning-recovery\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-stripe-dunning-recovery/SKILL.md` or `~/.claude/skills/skill-stripe-dunning-recovery/SKILL.md`.\n\n### Verification Commands\n```bash\nstripe events list --type=invoice.payment_failed\nstripe billing_portal sessions create\n```\n",
  "primary_category": "finance-deals",
  "categories_json": "[\"finance-deals\", \"skills\"]",
  "tags_json": "[\"stripe-billing\", \"churn-recovery\", \"payment-links\", \"gmail/slack\", \"skill-md\", \"finance-deals\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Stripe Billing\", \"Churn Recovery\", \"Payment Links\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @gergelyorosz.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-stripe-dunning-recovery",
  "skill_markdown": "---\nname: stripe-dunning-recovery\ndescription: Detect `invoice.payment_failed` events, classify decline codes (soft vs hard declines), generate hosted card-update links, and stage personalized recovery outreach. Use when working with Stripe Billing, Churn Recovery, Payment Links, Gmail/Slack.\ntriggers:\n  - stripe dunning recovery\n  - stripe billing\n  - churn recovery\n---\n\n# Autonomous SaaS Failed-Payment Dunning & Churn Recovery Skill\n\n## 1. When to Use This Skill\nLoad `skill-stripe-dunning-recovery` whenever an engineering or operations task involves **Stripe Billing, Churn Recovery, Payment Links, Gmail/Slack**. Specifically:\n- Detect `invoice.payment_failed` events, classify decline codes (soft vs hard declines), generate hosted card-update links, and stage personalized recovery outreach.\n- Designing, reviewing, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** Stripe Billing, Churn Recovery, Payment Links, Gmail/Slack\n- **Permissions:** Read-only inspection by default; ask for explicit confirmation before executing destructive mutations or production deployments.\n- **Reference Repository:** `https://github.com/stripe/agent-toolkit`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `wrangler.jsonc`, schema files, or environment declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical patterns for **Stripe Billing**:\n   - Enforce strict schema/type validation at every external boundary.\n   - Include explicit error handling, structured logging, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nstripe events list --type=invoice.payment_failed\nstripe billing_portal sessions create\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a deployment, migration, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the Autonomous SaaS Failed-Payment Dunning & Churn Recovery Skill (skill-stripe-dunning-recovery) playbook. First inspect our current configuration and codebase for Stripe Billing, Churn Recovery, Payment Links, Gmail/Slack. Then propose a concrete, step-by-step implementation plan following the skill-stripe-dunning-recovery guardrails, run the non-destructive verification commands (stripe events list --type=invoice.payment_failed), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://github.com/stripe/agent-toolkit",
  "repo_url": "https://github.com/stripe/agent-toolkit",
  "creator_handle": "gergelyorosz",
  "creator_name": "Gergely Orosz (@GergelyOrosz)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/gergelyorosz",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/stripe/agent-toolkit",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 352,
  "x_bookmarks": 771,
  "x_retweets": 192,
  "x_views": 4928,
  "human_upvotes": 352,
  "human_installs": 352,
  "bot_pulls": 771,
  "pulse_score": 89,
  "gravity_rank_score": 2787,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "Autonomous SaaS Failed-Payment Dunning & Churn Recovery Skill",
  "description": "Detect `invoice.payment_failed` events, classify decline codes (soft vs hard declines), generate hosted card-update links, and stage personalized recovery ",
  "category": "finance-deals",
  "tags": "[\"stripe-billing\", \"churn-recovery\", \"payment-links\", \"gmail/slack\", \"skill-md\", \"finance-deals\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "gergelyorosz",
  "author_name": "Gergely Orosz (@GergelyOrosz)",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/stripe/agent-toolkit",
  "github_url": "https://github.com/stripe/agent-toolkit",
  "external_url": "https://github.com/stripe/agent-toolkit",
  "upvotes_count": 352,
  "installs_count": 352
}