leadsradar-agent 0.0.0-stage → 1.0.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/README.md +117 -2
- package/README_en.md +97 -0
- package/leadsradar-agent.mjs +5025 -0
- package/package.json +25 -4
- package/skills/leadsradar-assets/SKILL.md +80 -0
- package/skills/leadsradar-insights/SKILL.md +60 -0
- package/skills/leadsradar-patrol/SKILL.md +79 -0
- package/skills/leadsradar-research/SKILL.md +139 -0
package/README.md
CHANGED
|
@@ -1,3 +1,118 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 探栗 Agent(LeadsRadar Agent)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[English](README_en.md) | 中文
|
|
4
|
+
|
|
5
|
+
  
|
|
6
|
+
|
|
7
|
+
> 把你的 AI 助手变成获客雷达的远程驾驶员——**手机上发一句话,电脑上的探栗插件替你跑腿**。
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
你的手机(豆包 / WorkBuddy App)
|
|
11
|
+
│ ① 随口一句「这条作品里有什么线索?」
|
|
12
|
+
▼
|
|
13
|
+
电脑上的 AI 助手(宿主,本仓库接入包)
|
|
14
|
+
│ ② STDIO MCP 调用探栗工具
|
|
15
|
+
▼
|
|
16
|
+
Chrome 探栗插件(数据全部在本机浏览器内采集)
|
|
17
|
+
│ ③ 结果原路返回 → AI 整理成人话
|
|
18
|
+
▼
|
|
19
|
+
你的手机(收到线索速报 / 巡逻摘要 / 选题卡)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> **它不能单独使用**:需要先安装[探栗浏览器插件](https://leadsradar.cn)并在插件里批准你的 AI 设备。全程本机运行,采集数据不离开浏览器。
|
|
23
|
+
|
|
24
|
+
## 例如,你可以这样说
|
|
25
|
+
|
|
26
|
+
装好后,在手机上对你的 AI 助手说:
|
|
27
|
+
|
|
28
|
+
> **「帮我看看这条笔记评论区里有没有客户」**——甩一个小红书链接,收回一份四色线索速报:🟢 准备买的、🟠 有意向的、🟡 有需求的,连「先跟谁、怎么开口」都给你。
|
|
29
|
+
|
|
30
|
+
> **「扫一遍我的对标账号,谁出爆款了?」**——收回巡逻摘要:谁更新了、谁爆了(爆在哪)、节奏有没有变。
|
|
31
|
+
|
|
32
|
+
> **「这篇的文案提出来,顺便存个选题」**——收回标题钩子 3 变体 + 口播全文 + 选题卡。
|
|
33
|
+
|
|
34
|
+
> **「家装获客这个词还有机会吗?」**——收回赛道速览:竞争度、头部套路、3 个空档选题。
|
|
35
|
+
|
|
36
|
+
## 官方技能(Skills)
|
|
37
|
+
|
|
38
|
+
每个技能是一个 `SKILL.md`,装进宿主的技能/指令库即生效:
|
|
39
|
+
|
|
40
|
+
| 技能 | 一句话 | 状态 |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| **[随手调研](skills/leadsradar-research/)** | 发作品/账号/关键词/截图,立刻得到客户线索与赛道洞察 | ✅ 可用 |
|
|
43
|
+
| **[素材管家](skills/leadsradar-assets/)** | 发作品说一句话——存选题、下无水印素材、提文案 | ✅ 可用 |
|
|
44
|
+
| **[对标巡逻](skills/leadsradar-patrol/)** | 扫一遍对标和自己的号——谁更新了、谁爆了 | ✅ 可用 |
|
|
45
|
+
| **[数据问答](skills/leadsradar-insights/)** | 张口就问:选题仓库、作品、账号、评论、研究报告 | ✅ 可用 |
|
|
46
|
+
|
|
47
|
+
状态说明:四技能全量可用——数据问答已支持查本地缓存的四类 AI 研究报告(作品拆解/账号研究/赛道研究/账号复盘,附 web 直达链接);监控/档案/日报类查询通道开发中,上线后技能自动点亮。
|
|
48
|
+
|
|
49
|
+
**唤醒词**:对装好技能的 AI 说 **「栗子」**(称呼,如「栗子,存一下这个选题」)或 **「探一下」**(动作,如「探一下:家装获客这个词还有机会吗」)即可调用——「探栗」「线索雷达」也认;没有唤醒词但意图明确时同样会触发。
|
|
50
|
+
|
|
51
|
+
## 3 分钟接入
|
|
52
|
+
|
|
53
|
+
### 第 1 步:安装探栗插件
|
|
54
|
+
|
|
55
|
+
[Chrome 应用商店](https://leadsradar.cn) / [官网 leadsradar.cn](https://leadsradar.cn) 安装并登录。
|
|
56
|
+
|
|
57
|
+
### 第 2 步:把接入包装进你的 AI 助手
|
|
58
|
+
|
|
59
|
+
**方式一 · WorkBuddy / 豆包工作(推荐,全自动)**
|
|
60
|
+
|
|
61
|
+
1. 打开插件**设置页 → 智能体接管**,选择你的宿主
|
|
62
|
+
2. 点**「一键复制 XX 提示词」**(接入包自动下载到本机)
|
|
63
|
+
3. 粘贴给你的 AI,照它提示操作——你唯一要动手的是在插件里**核对指纹码后点「批准」**
|
|
64
|
+
|
|
65
|
+
<details>
|
|
66
|
+
<summary>豆包工作实际接入过程实录(2026-10 实测)</summary>
|
|
67
|
+
|
|
68
|
+
1. AI 先跑 `where node` 取 node 绝对路径——若返回多条,**选不含 `.workbuddy` 的系统 node**(宿主受管运行时路径带版本哈希,宿主升级后失效)
|
|
69
|
+
2. 进入豆包工作「**技能 → 连接器・伙伴 → 连接器 → 新建(本地电脑 / 自定义连接器)**」:服务器名称 `leadsradar`;传输类型下拉选**「STDIO / 本地命令」**(默认显示的「服务器 URL」是 HTTP 形态,选 STDIO 后表单切换为命令/参数/环境变量);命令填 node 绝对路径;参数填 `leadsradar-agent.mjs` 绝对路径;环境变量 `LEADSRADAR_AGENT_HOST=doubao-work`;**保存并启用**
|
|
70
|
+
3. **完全退出豆包工作再重新打开**(托盘图标也要退出)——豆包**没有「信任」步骤**,「保存并启用」后即生效
|
|
71
|
+
4. 对它说「**检查探栗连接**」:若插件侧显示 step=1(浏览器没开/插件开关没开),按 AI 提示打开浏览器与插件开关;step=2 到插件设置页**核对指纹码后点「批准」**;step=3 即连接成功
|
|
72
|
+
|
|
73
|
+
</details>
|
|
74
|
+
|
|
75
|
+
**方式二 · Codex / Claude Desktop 等 STDIO MCP 宿主(手动)**
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
codex plugin marketplace add https://github.com/Kaochicken/leadsradar-skills
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
或手动配置:命令 `node`,参数为 `leadsradar-agent.mjs` 绝对路径,环境变量 `LEADSRADAR_AGENT_HOST` 填宿主标识。接入包零依赖单文件,无需 npm install。
|
|
82
|
+
|
|
83
|
+
### 第 3 步:装官方技能
|
|
84
|
+
|
|
85
|
+
把 `skills/` 下需要的 `SKILL.md` 内容加入宿主技能库(WorkBuddy 技能页 / 豆包智能体指令 / Codex 插件配置)。**建议从「随手调研」开始——装完当天就能用。**
|
|
86
|
+
|
|
87
|
+
## 安全与隐私
|
|
88
|
+
|
|
89
|
+
- **全程本机**:数据链路只有 `127.0.0.1`,不经任何云端中转
|
|
90
|
+
- **配对批准制**:每台 AI 设备接入需在插件里核对设备指纹后人工批准,防来路不明的接管
|
|
91
|
+
- **安全限额**:列表单批 300 / 30 分钟 600、评论 500、详情 20/100——超限自动拒绝,保护你的平台账号(AI 会在布置大批量任务前主动告知并建议拆批)
|
|
92
|
+
- **不含插件源码**:本仓库只发布接入适配器(协议转发层),探栗插件核心全部闭源
|
|
93
|
+
- 请勿在对话、Issue 或日志中提交 Cookie、Token、设备私钥
|
|
94
|
+
|
|
95
|
+
## 使用边界
|
|
96
|
+
|
|
97
|
+
- 探栗 Agent 必须配合探栗浏览器插件使用,不能替代插件
|
|
98
|
+
- AI 只能使用你在插件中已批准的能力;涉及积分的深度报告以插件内确认为准
|
|
99
|
+
- 遇到登录失效、平台风控提示时任务会暂停,请回浏览器处理
|
|
100
|
+
|
|
101
|
+
## 目录结构
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
├── leadsradar-agent.mjs # 接入包(零依赖单文件,esbuild 自包含)
|
|
105
|
+
├── skills/ # 四个官方技能
|
|
106
|
+
├── package.json
|
|
107
|
+
└── README.md
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## 社区技能
|
|
111
|
+
|
|
112
|
+
官方技能之外,欢迎把你的玩法包(飞书同步、私域 SOP、日报推送…)写成 SKILL.md 提 PR——审核通过后挂进本表,署名归你。
|
|
113
|
+
|
|
114
|
+
## 支持与反馈
|
|
115
|
+
|
|
116
|
+
- 官网:[leadsradar.cn](https://leadsradar.cn)
|
|
117
|
+
- 使用问题:插件设置页「执行明细」可查采集日志
|
|
118
|
+
- 欢迎提 Issue 报错与技能改进建议
|
package/README_en.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# LeadsRadar Agent
|
|
2
|
+
|
|
3
|
+
English | [中文](README.md)
|
|
4
|
+
|
|
5
|
+
  
|
|
6
|
+
|
|
7
|
+
> Turn your AI assistant into a remote pilot for the LeadsRadar lead-gen extension — **one sentence from your phone, the browser extension on your PC does the legwork.**
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Your phone (Doubao / WorkBuddy app)
|
|
11
|
+
│ ① "Any customer leads in this post's comments?"
|
|
12
|
+
▼
|
|
13
|
+
AI assistant on your PC (host, adapter from this repo)
|
|
14
|
+
│ ② STDIO MCP calls LeadsRadar tools
|
|
15
|
+
▼
|
|
16
|
+
LeadsRadar Chrome extension (all data collected inside your own browser)
|
|
17
|
+
│ ③ Results flow back → AI turns them into plain language
|
|
18
|
+
▼
|
|
19
|
+
Your phone (lead report / patrol digest / topic card)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> **Not standalone**: requires the [LeadsRadar browser extension](https://leadsradar.cn), plus a one-time pairing approval in the extension. Everything runs on your machine — collected data never leaves your browser.
|
|
23
|
+
|
|
24
|
+
## Try saying
|
|
25
|
+
|
|
26
|
+
- **"Check this post's comments for customer leads"** — paste a Xiaohongshu/Douyin link, get a four-tier lead report: 🟢 ready-to-buy, 🟠 interested, 🟡 in-need, ⚪ noise — including who to follow up first.
|
|
27
|
+
- **"Patrol my benchmark accounts — anyone gone viral?"** — get a digest: who updated, who blew up (and why), whose posting rhythm shifted.
|
|
28
|
+
- **"Extract the copy from this post and save it as a topic"** — get 3 title-hook variants + full script + a topic card.
|
|
29
|
+
- **"Is there still room in the 'home-renovation leads' niche?"** — get a niche brief: competition level, top-player patterns, 3 gap topics.
|
|
30
|
+
|
|
31
|
+
## Official Skills
|
|
32
|
+
|
|
33
|
+
Each skill is a `SKILL.md` you drop into your host's skill/instruction library:
|
|
34
|
+
|
|
35
|
+
| Skill | One-liner | Status |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| **[Quick Research](skills/leadsradar-research/)** | Send a link / keyword / screenshot, get customer leads & niche insights instantly | ✅ |
|
|
38
|
+
| **[Asset Butler](skills/leadsradar-assets/)** | Send a post link + one sentence — save topic, download media, extract copy | ✅ |
|
|
39
|
+
| **[Benchmark Patrol](skills/leadsradar-patrol/)** | Scan benchmark accounts — who updated, who went viral | ✅ |
|
|
40
|
+
| **[Data Q&A](skills/leadsradar-insights/)** | Just ask: topic library, posts, accounts, comments, research reports | ✅ |
|
|
41
|
+
|
|
42
|
+
**Wake words**: address your AI with **"Lizi"(栗子)** (e.g. "栗子,存一下这个选题 / Lizi, save this topic") or start with **"探一下 / tan yi xia"** (e.g. "探一下:家装获客这个词还有机会吗") to invoke the skills — "探栗 / LeadsRadar" also works; clear intent triggers them even without a wake word.
|
|
43
|
+
|
|
44
|
+
## 3-minute setup
|
|
45
|
+
|
|
46
|
+
1. **Install the LeadsRadar extension** from [leadsradar.cn](https://leadsradar.cn) and sign in.
|
|
47
|
+
2. **Feed the adapter to your AI assistant**
|
|
48
|
+
- **WorkBuddy / Doubao Work (recommended, fully automated)**: open the extension's *Settings → Agent takeover*, pick your host, click "one-click copy prompt", paste it to your AI. The only manual step: verify the device fingerprint in the extension and click *Approve*.
|
|
49
|
+
- **Coding agents (Claude Code / Codex CLI / Cursor / Gemini CLI — any STDIO MCP host, manual)**:
|
|
50
|
+
Get `leadsradar-agent.mjs` first (clone this repo, or click "one-click copy" for any host in the extension's *Settings → Agent takeover* — it auto-downloads to your Downloads folder), then configure:
|
|
51
|
+
|
|
52
|
+
Claude Code (one command):
|
|
53
|
+
```bash
|
|
54
|
+
claude mcp add leadsradar -e LEADSRADAR_AGENT_HOST=claude -- node /absolute/path/to/leadsradar-agent.mjs
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Cursor / generic (`mcp.json`):
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"mcpServers": {
|
|
61
|
+
"leadsradar": {
|
|
62
|
+
"command": "node",
|
|
63
|
+
"args": ["/absolute/path/to/leadsradar-agent.mjs"],
|
|
64
|
+
"env": { "LEADSRADAR_AGENT_HOST": "claude" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Codex CLI (`~/.codex/config.toml`):
|
|
71
|
+
```toml
|
|
72
|
+
[mcp_servers.leadsradar]
|
|
73
|
+
command = "node"
|
|
74
|
+
args = ["/absolute/path/to/leadsradar-agent.mjs"]
|
|
75
|
+
env = { LEADSRADAR_AGENT_HOST = "claude" }
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Then say "check LeadsRadar connection" to your AI, and **verify the fingerprint + click Approve** in the extension's settings. Zero-dependency single file, no `npm install`.
|
|
79
|
+
3. **Install the skills** — add the `SKILL.md` files under `skills/` to your host's skill library. **Start with Quick Research** — usable the day you install it.
|
|
80
|
+
|
|
81
|
+
## Security & privacy
|
|
82
|
+
|
|
83
|
+
- **Fully local**: the only network hop is `127.0.0.1`; no cloud relay.
|
|
84
|
+
- **Pair-and-approve**: every AI device must be manually approved after fingerprint verification inside the extension.
|
|
85
|
+
- **Rate limits**: lists 300/batch & 600/30min, comments 500/post, details 20/batch & 100/30min — enforced automatically to protect your platform accounts.
|
|
86
|
+
- **No extension source**: this repo ships only the protocol adapter; the LeadsRadar extension core stays closed-source.
|
|
87
|
+
- Never paste cookies, tokens, or device private keys into issues or logs.
|
|
88
|
+
|
|
89
|
+
## Community skills
|
|
90
|
+
|
|
91
|
+
Beyond the official four, PR your own playbooks (Feishu sync, private-domain SOP, daily digest push…) as `SKILL.md` — merged ones get listed here with your name on them.
|
|
92
|
+
|
|
93
|
+
## Support
|
|
94
|
+
|
|
95
|
+
- Website: [leadsradar.cn](https://leadsradar.cn)
|
|
96
|
+
- Usage logs: extension Settings → *Execution details*
|
|
97
|
+
- Issues welcome for bugs & skill improvements
|