[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DRJJT7ZF2CXPD8H12WME3J":3,"skill-same:01M6DRJJT7ZF2CXPD8H12WME3J":51},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M6DRJJT7ZF2CXPD8H12WME3J","stripe-debug",null,"AntifragileTech\u002Fantifragile-claude-code","AntifragileTech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F174357194?v=4","01M6DQCYMK4CDSQQAN0ZC72NTV","01M6DQCYS9YPW1WKMQ5TJMPQ43",9,"MIT","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fstripe-debug\u002FSKILL.md",[],[17,18,19],"debug","stripe","stripe debug","2026-11-10 10:12:30",false,"# \u002Fstripe-debug — Stripe Integration Debugging Skill\n\n## Trigger\nUser says: \"stripe-debug\", \"payment issue\", \"webhook failing\", \"subscription problem\", \"billing debug\", \"stripe error\"\n\n## Purpose\nDebug Stripe billing, webhooks, and subscription issues in the codebase.\n\n## Steps\n\n### 1. Configuration Check\n```bash\n# Verify environment variables are set\nenv | grep STRIPE\n# Check for test vs live mode\necho $STRIPE_SECRET_KEY | head -c 7  # Should show sk_test_ or sk_live_\n```\n- Verify `tax_id_collection` is configured (known requirement in this codebase)\n- Verify `customer_update[address]` is set (known requirement)\n\n### 2. Webhook Debugging\n```bash\n# List recent webhook events (requires Stripe CLI)\nstripe events list --limit 10\n# Listen to webhooks locally\nstripe listen --forward-to localhost:PORT\u002Fapi\u002Fwebhooks\u002Fstripe\n# Trigger a test event\nstripe trigger checkout.session.completed\n```\n- Check webhook endpoint URL is correct in Stripe Dashboard\n- Verify webhook signing secret matches `STRIPE_WEBHOOK_SECRET`\n- Check for 2xx response from webhook handler\n\n### 3. Subscription Issues\n```bash\n# Check customer details\nstripe customers retrieve CUSTOMER_ID\n# List subscriptions\nstripe subscriptions list --customer CUSTOMER_ID --limit 5\n# Check specific subscription\nstripe subscriptions retrieve SUB_ID\n```\n- Verify price IDs match between code and Stripe Dashboard\n- Check subscription status: active, past_due, canceled, trialing\n- Look for failed payment intents on the subscription\n\n### 4. Common Error Patterns\n- `resource_missing`: Check if using test-mode IDs against live-mode key (or vice versa)\n- `authentication_error`: Wrong API key or key not set\n- `card_declined`: Expected in test mode with specific test card numbers\n- `webhook_signature_verification_failed`: Signing secret mismatch or raw body not preserved\n\n### 5. Code-level Debug\n- Search for Stripe initialization: `grep -rn \"new Stripe\\|stripe(\" --include=\"*.ts\" --include=\"*.tsx\"`\n- Find webhook handler: `grep -rn \"webhooks\u002Fstripe\\|webhook.*stripe\" --include=\"*.ts\"`\n- Check middleware preserves raw body for webhook signature verification\n\n## Rules\n- NEVER log or echo full Stripe secret keys\n- NEVER run charges against live mode without user confirmation\n- Always verify test\u002Flive mode before any Stripe CLI commands\n- Watch for `tax_id_collection` and `customer_update[address]` config requirements\n",{},"master","c73386b305dec167db7654e0e6feacb462d4f9dc","assets\u002Fskills\u002Fdev\u002Fstripe-debug",1,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code","https:\u002F\u002Fgithub.com\u002FAntifragileTech","2026-10-02 14:22:14",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add AntifragileTech\u002Fantifragile-claude-code --skill stripe-debug",{"tool":37,"command":38},"bunx","bunx skills add AntifragileTech\u002Fantifragile-claude-code --skill stripe-debug",{"tool":40,"command":41},"pnpm","pnpm dlx skills add AntifragileTech\u002Fantifragile-claude-code --skill stripe-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fstripe-debug\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",114,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fretro\u002Fagents\u002Fopenai.yaml",[52,65,78,91,104,117],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":20},"01M6DT9Q6VYA615SCXR757TZZ7","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-skills\u002FSKILL.md",[],[59,60,61,62,63,64],"writing skills","writing","use","editing","work","deployment",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6DT9GFHDNY90P41WGAE1TV0","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-plans\u002FSKILL.md",[],[72,73,60,74,75,61,76,77],"plans","writing plans","requirements","task","code","spec",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":20},"01M6DT9C6PFGD86WS3HY7YE3XG","docs:write-concisely","Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwrite-concisely\u002FSKILL.md",[],[85,86,87,88,89,90,60],"docs:write concisely","write","docs","read","Rules","documentation",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M6DT98AWQ27P0N1CG97WAG66","kaizen:why","Iterative Five Whys root cause analysis drilling from symptoms to fundamentals","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwhy\u002FSKILL.md",[],[93,98,99,100,101,102,103],"why","kaizen","issue","five whys","analysis","root cause analysis",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M6DT93EH25NAX19R3WGE1P53","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-loop\u002FSKILL.md",[],[111,112,113,114,76,115,116],"verification loop","verification","loop","sessions","claude code sessions","system",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M6DT90GW7Z7VCN98P9DVYSNC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-before-completion\u002FSKILL.md",[],[124,112,125,63,61,126,127,128],"verification before completion","commands","evidence","claim","complete"]