vettedgaps-skill 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +80 -0
- package/cli.js +56 -0
- package/package.json +43 -0
- package/skill/SKILL.md +157 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OlegPhenomenon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# vettedgaps-skill
|
|
2
|
+
|
|
3
|
+
Claude Code skill for [Pain Radar](https://vettedgaps.com) — search validated user pain points, save favorites, and post comments without leaving your IDE.
|
|
4
|
+
|
|
5
|
+
## Install (one command)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx vettedgaps-skill
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This copies the skill to `~/.claude/skills/vettedgaps/` (user-level, available in all projects).
|
|
12
|
+
|
|
13
|
+
Add `--project` to install into the current project's `.claude/skills/vettedgaps/` instead.
|
|
14
|
+
|
|
15
|
+
If the target directory already exists you'll be prompted: `overwrite / skip / cancel` (default `cancel`). Use `--force` or `-y` to skip the prompt and overwrite (useful in CI / scripts).
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
1. Generate an API token at [vettedgaps.com/api_tokens](https://vettedgaps.com/api_tokens) (requires Pro subscription).
|
|
20
|
+
2. Export it in your shell:
|
|
21
|
+
```bash
|
|
22
|
+
export VETTED_GAPS_TOKEN=<your-token>
|
|
23
|
+
```
|
|
24
|
+
Add this line to `~/.zshrc` (or `~/.bashrc`) to make it permanent.
|
|
25
|
+
3. Restart Claude Code or open a new session — the skill will be auto-loaded.
|
|
26
|
+
|
|
27
|
+
## Try it
|
|
28
|
+
|
|
29
|
+
In Claude Code, ask:
|
|
30
|
+
|
|
31
|
+
- *"Find me 5 addon-opportunity ideas for Shopify with score above 0.5."*
|
|
32
|
+
- *"Show me the details of pain card #310."*
|
|
33
|
+
- *"Save card #310 to favorites with note 'building a chrome extension for this'."*
|
|
34
|
+
- *"Comment on #310: 'starting to prototype this'."*
|
|
35
|
+
|
|
36
|
+
The skill knows how to call the [Pain Radar API](https://vettedgaps.com/api/v1) — search, get details, favorite, comment.
|
|
37
|
+
|
|
38
|
+
## Manual install (without npx)
|
|
39
|
+
|
|
40
|
+
If you prefer to inspect or vendor the skill files yourself:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
git clone git@github.com:OlegPhenomenon/vettedgaps-skill.git
|
|
44
|
+
cp -r vettedgaps-skill/skill ~/.claude/skills/vettedgaps
|
|
45
|
+
export VETTED_GAPS_TOKEN=<your-token>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
That's it — same result as `npx vettedgaps-skill`.
|
|
49
|
+
|
|
50
|
+
## What's inside
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
~/.claude/skills/vettedgaps/
|
|
54
|
+
└── SKILL.md ← instructions for Claude (API endpoints, auth, error handling, examples)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
That's the entire skill — one markdown file. Claude reads it on session start and knows how to use the Pain Radar API.
|
|
58
|
+
|
|
59
|
+
## API reference
|
|
60
|
+
|
|
61
|
+
See [`skill/SKILL.md`](./skill/SKILL.md) for the full operation list and request/response shapes. Or browse the live endpoints (requires token):
|
|
62
|
+
|
|
63
|
+
- `GET https://vettedgaps.com/api/v1/pains` — search
|
|
64
|
+
- `GET https://vettedgaps.com/api/v1/pains/:id` — get card with evidence
|
|
65
|
+
- `POST https://vettedgaps.com/api/v1/favorites` — save
|
|
66
|
+
- `POST https://vettedgaps.com/api/v1/pains/:id/comments` — comment
|
|
67
|
+
|
|
68
|
+
Rate limit: 60 requests per minute per token. Error envelope: `{"error": {"code": "...", "message": "..."}}`.
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
MIT — see [LICENSE](./LICENSE).
|
|
73
|
+
|
|
74
|
+
## Links
|
|
75
|
+
|
|
76
|
+
- Pain Radar website: https://vettedgaps.com
|
|
77
|
+
- Generate API token: https://vettedgaps.com/api_tokens
|
|
78
|
+
- Pricing: https://vettedgaps.com/pricing
|
|
79
|
+
- Skill repo: https://github.com/OlegPhenomenon/vettedgaps-skill
|
|
80
|
+
- Pain Radar source: https://github.com/OlegPhenomenon/pain-radar
|
package/cli.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync, readdirSync, cpSync, mkdirSync, readFileSync } from "node:fs"
|
|
3
|
+
import { join, dirname } from "node:path"
|
|
4
|
+
import { fileURLToPath } from "node:url"
|
|
5
|
+
import { homedir } from "node:os"
|
|
6
|
+
import { intro, outro, select, isCancel, cancel } from "@clack/prompts"
|
|
7
|
+
|
|
8
|
+
const args = new Set(process.argv.slice(2))
|
|
9
|
+
const force = args.has("--force") || args.has("--yes") || args.has("-y") || args.has("-f")
|
|
10
|
+
const projectLocal = args.has("--project")
|
|
11
|
+
|
|
12
|
+
const pkgRoot = dirname(fileURLToPath(import.meta.url))
|
|
13
|
+
const pkgVersion = JSON.parse(readFileSync(join(pkgRoot, "package.json"), "utf8")).version
|
|
14
|
+
const srcDir = join(pkgRoot, "skill")
|
|
15
|
+
|
|
16
|
+
const targetDir = projectLocal
|
|
17
|
+
? join(process.cwd(), ".claude/skills/vettedgaps")
|
|
18
|
+
: join(homedir(), ".claude/skills/vettedgaps")
|
|
19
|
+
|
|
20
|
+
intro(`vettedgaps-skill@${pkgVersion}`)
|
|
21
|
+
|
|
22
|
+
const isExisting = existsSync(targetDir) && readdirSync(targetDir).length > 0
|
|
23
|
+
|
|
24
|
+
if (isExisting && !force) {
|
|
25
|
+
if (!process.stdin.isTTY) {
|
|
26
|
+
console.error(`refusing to overwrite ${targetDir} non-interactively, pass --force`)
|
|
27
|
+
process.exit(1)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const choice = await select({
|
|
31
|
+
message: `${targetDir} already exists. What to do?`,
|
|
32
|
+
options: [
|
|
33
|
+
{ value: "overwrite", label: "Overwrite contents" },
|
|
34
|
+
{ value: "skip", label: "Skip — keep existing files, no changes" },
|
|
35
|
+
{ value: "cancel", label: "Cancel" }
|
|
36
|
+
],
|
|
37
|
+
initialValue: "cancel"
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
if (isCancel(choice) || choice === "cancel" || choice === "skip") {
|
|
41
|
+
cancel("nothing changed")
|
|
42
|
+
process.exit(0)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
mkdirSync(targetDir, { recursive: true })
|
|
47
|
+
cpSync(srcDir, targetDir, { recursive: true, force: true })
|
|
48
|
+
|
|
49
|
+
outro(`installed to ${targetDir}
|
|
50
|
+
|
|
51
|
+
Next steps:
|
|
52
|
+
1. Generate API token: https://vettedgaps.com/api_tokens (requires Pro subscription)
|
|
53
|
+
2. export VETTED_GAPS_TOKEN=<your-token>
|
|
54
|
+
3. Restart Claude Code or open a new session
|
|
55
|
+
4. Try: "find me addon opportunities for Shopify with score above 0.5"
|
|
56
|
+
`)
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vettedgaps-skill",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Claude Code skill for Pain Radar (vettedgaps.com) — search validated user pain points, save favorites, post comments without leaving your IDE.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": "./cli.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"cli.js",
|
|
9
|
+
"skill/",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@clack/prompts": "^0.7.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"claude",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"claude-skill",
|
|
23
|
+
"ai",
|
|
24
|
+
"saas",
|
|
25
|
+
"product-discovery",
|
|
26
|
+
"pain-points",
|
|
27
|
+
"vettedgaps",
|
|
28
|
+
"pain-radar"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/OlegPhenomenon/vettedgaps-skill.git"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://vettedgaps.com",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/OlegPhenomenon/vettedgaps-skill/issues"
|
|
37
|
+
},
|
|
38
|
+
"author": "OlegPhenomenon",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"scripts": {
|
|
41
|
+
"test:cli": "node cli.js"
|
|
42
|
+
}
|
|
43
|
+
}
|
package/skill/SKILL.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Search and manage validated user pain points from Pain Radar (vettedgaps.com). Use when the user wants to discover real problems on SaaS marketplaces (Shopify, Notion, Atlassian, etc.), look up details for a specific pain card, save promising ideas to favorites, or post comments on discovered pains. Requires VETTED_GAPS_TOKEN env var (Pro-tier API token from https://vettedgaps.com/api_tokens).
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Vetted Gaps — Pain Radar API skill
|
|
6
|
+
|
|
7
|
+
You can search the Pain Radar index, retrieve full pain card details with evidence, save favorites for later, and post comments on cards. All operations go through the public API at `https://vettedgaps.com/api/v1/*`.
|
|
8
|
+
|
|
9
|
+
## Authentication
|
|
10
|
+
|
|
11
|
+
Every request MUST include these headers:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Authorization: Bearer ${VETTED_GAPS_TOKEN}
|
|
15
|
+
User-Agent: vettedgaps-skill/0.1.0
|
|
16
|
+
Accept: application/json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
If `VETTED_GAPS_TOKEN` is not set or invalid:
|
|
20
|
+
- Tell the user: "I need a Pain Radar API token. Generate one at https://vettedgaps.com/api_tokens (requires Pro subscription), then `export VETTED_GAPS_TOKEN=<token>` and restart Claude Code."
|
|
21
|
+
- Do not retry without the token.
|
|
22
|
+
|
|
23
|
+
## Operations
|
|
24
|
+
|
|
25
|
+
### 1. Search pains
|
|
26
|
+
|
|
27
|
+
`GET https://vettedgaps.com/api/v1/pains`
|
|
28
|
+
|
|
29
|
+
Query parameters (all optional):
|
|
30
|
+
|
|
31
|
+
| Param | Type | Description |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| `niche` | string | Marketplace slug (e.g. `shopify`, `notion`, `atlassian`). |
|
|
34
|
+
| `min_score` | float | Cards with `score >= min_score` (range 0..1). |
|
|
35
|
+
| `opportunity_type` | string | One of `vendor_only`, `addon_opportunity`, `workflow_tool`, `competitor_opportunity`. |
|
|
36
|
+
| `actionable` | `true` | Shortcut to exclude `vendor_only` cards (recommended when user wants ideas for mini-apps / extensions). |
|
|
37
|
+
| `after` | ISO 8601 | Only cards `last_aggregated_at >= after`. |
|
|
38
|
+
| `per_page` | int | Default 20, max 50. |
|
|
39
|
+
| `cursor` | opaque | Pagination cursor from previous `meta.next_cursor`. |
|
|
40
|
+
|
|
41
|
+
Response:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"data": [
|
|
46
|
+
{
|
|
47
|
+
"id": 310,
|
|
48
|
+
"title": "...",
|
|
49
|
+
"description": "...",
|
|
50
|
+
"status": "published",
|
|
51
|
+
"score": 0.6779,
|
|
52
|
+
"severity_hint": "high",
|
|
53
|
+
"monetization_signal": "explicit",
|
|
54
|
+
"opportunity_type": "addon_opportunity",
|
|
55
|
+
"marketplace_slug": "shopify",
|
|
56
|
+
"last_aggregated_at": "2026-05-20T12:34:56Z"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"meta": { "has_more": true, "next_cursor": "eyJpZCI6..." }
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Use this when** the user wants to discover pains in a marketplace, find idea candidates, or filter by score/type.
|
|
64
|
+
|
|
65
|
+
### 2. Get card details
|
|
66
|
+
|
|
67
|
+
`GET https://vettedgaps.com/api/v1/pains/:id`
|
|
68
|
+
|
|
69
|
+
Returns full card with `score_components` and `evidence` array (quotes from real Reddit posts with source URLs). Use after search to dig into a specific card.
|
|
70
|
+
|
|
71
|
+
Response adds:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"score_components": {"reach": 0.8, "monetization": 1.0, ...},
|
|
76
|
+
"evidence": [
|
|
77
|
+
{
|
|
78
|
+
"quote_text": "...",
|
|
79
|
+
"source_url": "https://reddit.com/r/shopify/...",
|
|
80
|
+
"source_created_at": "2026-05-15T08:12:00Z"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 3. Save to favorites
|
|
87
|
+
|
|
88
|
+
`POST https://vettedgaps.com/api/v1/favorites`
|
|
89
|
+
|
|
90
|
+
Body:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"pain_card_id": 310,
|
|
95
|
+
"note": "Optional note, max 1000 chars"
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Returns `201 Created` for a new favorite, `200 OK` if the user already favorited this card (idempotent — note is NOT updated on repeat).
|
|
100
|
+
|
|
101
|
+
### 4. Post a comment
|
|
102
|
+
|
|
103
|
+
`POST https://vettedgaps.com/api/v1/pains/:id/comments`
|
|
104
|
+
|
|
105
|
+
Body:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"body": "Comment text, 1..10000 chars (markdown supported)",
|
|
110
|
+
"parent_comment_id": null
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
`parent_comment_id` (optional) — for a reply, must reference an existing top-level (not-reply) comment on the same card. Returns `201 Created` with `{data: {id, body, body_html, created_at, parent_comment_id}}`.
|
|
115
|
+
|
|
116
|
+
## Error envelope
|
|
117
|
+
|
|
118
|
+
All errors return JSON of shape:
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{ "error": { "code": "<code>", "message": "<human readable>" } }
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
| Status | Code | Meaning | What to do |
|
|
125
|
+
|---|---|---|---|
|
|
126
|
+
| 400 | `bad_request` | Invalid parameter (e.g. unknown `opportunity_type`). | Show the message; ask user to clarify. |
|
|
127
|
+
| 401 | `unauthorized` | Missing or invalid token. | Tell user to regenerate token. |
|
|
128
|
+
| 403 | `forbidden` | User is not Pro. | Tell user to subscribe at https://vettedgaps.com/pricing. |
|
|
129
|
+
| 404 | `not_found` | Pain card does not exist. | Tell user the card was not found. |
|
|
130
|
+
| 422 | `validation_failed` | Body validation (note too long, body empty, invalid parent). `details` field has per-field errors. | Show user the specific issue. |
|
|
131
|
+
| 429 | `rate_limited` | Over 60 req/min on this token. | Wait, then retry. Header `Retry-After` shows seconds. |
|
|
132
|
+
|
|
133
|
+
## Rate limit
|
|
134
|
+
|
|
135
|
+
60 requests per minute per API token. Headers `X-RateLimit-Limit` and `X-RateLimit-Remaining` are present on successful responses.
|
|
136
|
+
|
|
137
|
+
If you hit rate limit while iterating (e.g. fetching details for many cards), pause and tell the user — do not silently retry.
|
|
138
|
+
|
|
139
|
+
## Examples
|
|
140
|
+
|
|
141
|
+
**User**: "find me 5 addon-opportunity ideas for Shopify with score above 0.5"
|
|
142
|
+
|
|
143
|
+
You should:
|
|
144
|
+
1. `GET /api/v1/pains?niche=shopify&min_score=0.5&opportunity_type=addon_opportunity&per_page=5`
|
|
145
|
+
2. Summarize the 5 results (id, title, score, one-line description) and ask which to dig into.
|
|
146
|
+
|
|
147
|
+
**User**: "save #310 to favorites"
|
|
148
|
+
|
|
149
|
+
You should:
|
|
150
|
+
1. `POST /api/v1/favorites` with `{"pain_card_id": 310}`.
|
|
151
|
+
2. Confirm based on status (201 = saved, 200 = already in favorites).
|
|
152
|
+
|
|
153
|
+
**User**: "comment on #310: 'investigating this for a chrome extension'"
|
|
154
|
+
|
|
155
|
+
You should:
|
|
156
|
+
1. `POST /api/v1/pains/310/comments` with `{"body": "investigating this for a chrome extension"}`.
|
|
157
|
+
2. Show the created comment ID.
|