recur-skills 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "recur-skills",
3
+ "owner": {
4
+ "name": "Recur",
5
+ "email": "hi@recur.tw"
6
+ },
7
+ "metadata": {
8
+ "description": "Claude Code skills for integrating Recur - Taiwan's subscription payment platform",
9
+ "version": "0.0.3"
10
+ },
11
+ "plugins": [
12
+ {
13
+ "name": "recur-skills",
14
+ "description": "Skills for Recur SDK integration including quickstart, checkout, webhooks, and entitlements",
15
+ "source": "./",
16
+ "skills": [
17
+ "./skills/recur-help",
18
+ "./skills/recur-quickstart",
19
+ "./skills/recur-checkout",
20
+ "./skills/recur-webhooks",
21
+ "./skills/recur-entitlements"
22
+ ],
23
+ "commands": [
24
+ "./skills/recur-help/SKILL.md",
25
+ "./skills/recur-quickstart/SKILL.md",
26
+ "./skills/recur-checkout/SKILL.md",
27
+ "./skills/recur-webhooks/SKILL.md",
28
+ "./skills/recur-entitlements/SKILL.md"
29
+ ]
30
+ }
31
+ ]
32
+ }
package/README.md CHANGED
@@ -4,38 +4,28 @@ Claude Code skills to help developers integrate [Recur](https://recur.tw) - Taiw
4
4
 
5
5
  ## Installation
6
6
 
7
- ### Claude Code Plugin (Recommended)
8
-
9
7
  ```bash
10
- /plugin add recur-tw/skills
8
+ /plugin marketplace add recur-tw/skills
9
+ /plugin install recur-skills@recur-skills
11
10
  ```
12
11
 
13
- ### npm CLI
14
-
15
- ```bash
16
- # Install all skills globally
17
- npx recur-skills install --all --global
12
+ ## Getting Started
18
13
 
19
- # Install specific skills
20
- npx recur-skills install recur-quickstart recur-webhooks
14
+ Not sure where to begin? Ask Claude:
21
15
 
22
- # Install to current project
23
- npx recur-skills install --all --project
16
+ ```
17
+ Recur 有什麼功能?
24
18
  ```
25
19
 
26
- ### Manual Installation
20
+ Or type `/recur-help` to see all available skills.
27
21
 
28
- Copy skills to your Claude Code skills directory:
22
+ ## Available Skills
29
23
 
30
- ```bash
31
- # Global (all projects)
32
- cp -r skills/* ~/.claude/skills/
24
+ ### recur-help
33
25
 
34
- # Project-specific
35
- cp -r skills/* .claude/skills/
36
- ```
26
+ List all available Recur skills and how to use them.
37
27
 
38
- ## Available Skills
28
+ **Triggers:** "Recur 有什麼功能", "help with Recur", "what can Recur do"
39
29
 
40
30
  ### recur-quickstart
41
31
 
@@ -45,7 +35,7 @@ Quick setup guide for Recur payment integration.
45
35
 
46
36
  - SDK installation
47
37
  - API key configuration
48
- - Basic provider setup
38
+ - Provider setup
49
39
  - First checkout implementation
50
40
 
51
41
  ### recur-checkout
@@ -58,7 +48,6 @@ Implement Recur checkout flows.
58
48
  - useRecur and useSubscribe hooks
59
49
  - Product types (subscription, one-time, credits, donation)
60
50
  - Payment error handling
61
- - 3D verification
62
51
 
63
52
  ### recur-webhooks
64
53
 
@@ -69,7 +58,6 @@ Set up and handle Recur webhook events.
69
58
  - All webhook event types
70
59
  - Signature verification
71
60
  - Next.js and Express handlers
72
- - Testing webhooks locally
73
61
  - Idempotency handling
74
62
 
75
63
  ### recur-entitlements
@@ -82,51 +70,16 @@ Implement access control and permission checking.
82
70
  - Cached vs live checks
83
71
  - Paywall components
84
72
  - Server-side verification
85
- - Handling subscription statuses
86
73
 
87
74
  ## Usage
88
75
 
89
76
  Once installed, Claude will automatically use these skills when you're working on Recur integration tasks.
90
77
 
91
- You can also invoke them directly:
92
-
93
- ```
94
- /recur-quickstart
95
- /recur-checkout
96
- /recur-webhooks
97
- /recur-entitlements
98
- ```
99
-
100
- ## Utility Scripts
101
-
102
- ### Check Environment
103
-
104
- ```bash
105
- ./skills/recur-quickstart/scripts/check-env.sh
106
- ```
107
-
108
- ### Test Webhook Locally
109
-
110
- ```bash
111
- ./skills/recur-webhooks/scripts/test-webhook.sh http://localhost:3000/api/webhooks/recur checkout.completed
112
- ```
113
-
114
- ### Verify Webhook Signature
115
-
116
- ```bash
117
- npx tsx ./skills/recur-webhooks/scripts/verify-signature.ts '<payload>' '<signature>' '<secret>'
118
- ```
119
-
120
78
  ## Links
121
79
 
122
80
  - [Recur Website](https://recur.tw)
123
81
  - [Documentation](https://recur.tw/docs)
124
82
  - [SDK on npm](https://www.npmjs.com/package/recur-tw)
125
- - [API Reference](https://recur.tw/docs/api)
126
-
127
- ## Contributing
128
-
129
- Found an issue or want to improve a skill? Please open an issue or PR at [github.com/recur-tw/skills](https://github.com/recur-tw/skills).
130
83
 
131
84
  ## License
132
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recur-skills",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Claude Code skills for Recur - Taiwan's subscription payment platform",
5
5
  "keywords": [
6
6
  "recur",
@@ -40,6 +40,14 @@
40
40
  "skills",
41
41
  ".claude-plugin"
42
42
  ],
43
+ "scripts": {
44
+ "build": "tsup",
45
+ "dev": "tsup --watch",
46
+ "lint": "eslint src/",
47
+ "typecheck": "tsc --noEmit",
48
+ "prepublishOnly": "pnpm build",
49
+ "version": "node scripts/sync-version.js && git add .claude-plugin/marketplace.json"
50
+ },
43
51
  "dependencies": {
44
52
  "commander": "^12.1.0",
45
53
  "picocolors": "^1.1.1"
@@ -54,11 +62,5 @@
54
62
  },
55
63
  "publishConfig": {
56
64
  "access": "public"
57
- },
58
- "scripts": {
59
- "build": "tsup",
60
- "dev": "tsup --watch",
61
- "lint": "eslint src/",
62
- "typecheck": "tsc --noEmit"
63
65
  }
64
- }
66
+ }
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: recur-help
3
+ description: List all available Recur skills and how to use them. Use when user asks "what can Recur do", "Recur skills", "Recur 有什麼功能", "help with Recur", "如何使用 Recur skills".
4
+ ---
5
+
6
+ # Recur Skills 使用指南
7
+
8
+ 當用戶詢問 Recur skills 的功能時,向他們介紹以下可用的 skills:
9
+
10
+ ## 可用的 Skills
11
+
12
+ ### 1. recur-quickstart
13
+ **用途**:快速開始 Recur 整合
14
+ **觸發方式**:
15
+ - 說:「幫我整合 Recur」「setup Recur」「Recur 串接」「金流設定」
16
+ - 或輸入:`/recur-quickstart`
17
+
18
+ ### 2. recur-checkout
19
+ **用途**:實作結帳流程(embedded、modal、redirect)
20
+ **觸發方式**:
21
+ - 說:「加上結帳按鈕」「checkout」「付款按鈕」「embedded checkout」
22
+ - 或輸入:`/recur-checkout`
23
+
24
+ ### 3. recur-webhooks
25
+ **用途**:設定 webhook 接收付款通知
26
+ **觸發方式**:
27
+ - 說:「設定 webhook」「付款通知」「訂閱事件」
28
+ - 或輸入:`/recur-webhooks`
29
+
30
+ ### 4. recur-entitlements
31
+ **用途**:實作付費功能權限檢查和 Paywall
32
+ **觸發方式**:
33
+ - 說:「檢查付費權限」「paywall」「權限檢查」「entitlements」
34
+ - 或輸入:`/recur-entitlements`
35
+
36
+ ## 回覆格式
37
+
38
+ 用繁體中文回覆,格式如下:
39
+
40
+ ```
41
+ ## Recur Skills 使用指南
42
+
43
+ 我可以幫你完成以下 Recur 整合任務:
44
+
45
+ | Skill | 用途 | 怎麼觸發 |
46
+ |-------|------|---------|
47
+ | **quickstart** | 快速開始整合 | 說「幫我整合 Recur」 |
48
+ | **checkout** | 結帳流程 | 說「加上結帳按鈕」 |
49
+ | **webhooks** | 付款通知 | 說「設定 webhook」 |
50
+ | **entitlements** | 權限檢查 | 說「檢查付費權限」 |
51
+
52
+ 💡 **建議從 quickstart 開始**,它會引導你完成 SDK 安裝和基本設定。
53
+
54
+ 有什麼想做的嗎?
55
+ ```
@@ -1,25 +0,0 @@
1
- {
2
- "name": "recur-skills",
3
- "description": "Claude Code skills for integrating Recur - Taiwan's subscription payment platform. Includes checkout, webhooks, and entitlements.",
4
- "version": "0.0.1",
5
- "author": {
6
- "name": "Recur",
7
- "email": "hi@recur.tw",
8
- "url": "https://recur.tw"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/recur-tw/skills"
13
- },
14
- "homepage": "https://recur.tw/skills",
15
- "license": "MIT",
16
- "keywords": [
17
- "recur",
18
- "payments",
19
- "subscription",
20
- "taiwan",
21
- "checkout",
22
- "webhooks",
23
- "entitlements"
24
- ]
25
- }