skillfree 0.1.62 → 0.1.64

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.
Files changed (3) hide show
  1. package/SKILL.md +161 -100
  2. package/bin/skillfree.js +17 -9
  3. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -10,161 +10,222 @@ metadata: {"openclaw": {"primaryEnv": "SKILLFREE_API_KEY", "emoji": "🦞", "hom
10
10
 
11
11
  ---
12
12
 
13
- ## 🧭 任务 → 严选工具 一览
14
-
15
- | 任务类型 | 严选工具 | 计费方式 |
16
- |---------|---------|---------|
17
- | ✍️ 写代码 / 重构 / 技术文档 | Claude Sonnet 4.6 | 按 token |
18
- | 📄 文档分析 / 报告生成 | GPT-5.4 | 按 token |
19
- | 🖼️ 图文多模态理解 | Gemini 3.1 Pro | 按 token |
20
- | 🎨 图像生成 | nano banana 2 / pro | 按次 |
21
- | 🎬 视频生成 | Veo 3.1 Fast / Veo 3.1 | 按秒 |
22
- | 📑 扫描文档 OCR | 合合 图文混排 | 按量 |
23
- | 🌐 实时网页搜索 | Tavily | 按次 |
24
- | 📊 演示文稿 / PPT 生成 | **AI 演示文稿生成** ✨ | **按实际页数** |
13
+ ## 🚀 核心命令总览
25
14
 
26
- ---
15
+ 所有功能通过 `skillfree pilot` 子命令调用,`--type` 参数指定任务类型:
27
16
 
28
- ## 💬 模型严选(chat / image / video / ocr)
17
+ ```
18
+ skillfree pilot --type <类型> [参数...]
19
+ ```
29
20
 
30
- ### ✍️ 写代码 Claude
21
+ 支持的类型:`chat` | `image` | `video` | `ocr` | `presentation` | `pharma`
31
22
 
32
- | 模型ID | 名称 | 输入 | 输出 |
33
- |--------|------|------|------|
34
- | `claude-sonnet-4-6` | Claude Sonnet 4.6 ⭐ | ¥30/1M | ¥150/1M |
35
- | `claude-sonnet-4-6-cc` | Claude Sonnet 4.6 CC | ¥30/1M | ¥150/1M |
36
- | `claude-opus-4-6` | Claude Opus 4.6 | ¥150/1M | ¥750/1M |
23
+ ---
37
24
 
38
- **适合:** 代码生成、bug 定位、重构、架构设计、技术文档
25
+ ## 💬 对话(chat)
26
+
27
+ ```bash
28
+ # 快捷方式(默认 claude-sonnet-4-6)
29
+ skillfree chat "帮我写一个 Python 爬虫"
30
+
31
+ # 指定模型
32
+ skillfree pilot --type chat --prompt "分析这段代码的性能问题" --model gpt-5.4
33
+
34
+ # 支持的模型ID
35
+ # claude-sonnet-4-6 写代码/技术文档 ⭐ 推荐
36
+ # claude-opus-4-6 复杂推理/长文档
37
+ # gpt-5.4 文档分析/报告生成 ⭐ 推荐
38
+ # gpt-5.4-mini 简单任务/低成本
39
+ # gemini-3.1-pro-preview 图文多模态 ⭐ 推荐
40
+ # gemini-3.1-flash-lite-preview 超长文档/低成本
41
+ ```
39
42
 
40
43
  ---
41
44
 
42
- ### 📄 文档分析 — GPT
45
+ ## 🎨 图像生成(image)
46
+
47
+ ```bash
48
+ # 生成图片(默认模型 gemini-3.1-flash-image-preview,即 nano banana 2)
49
+ skillfree pilot --type image --prompt "一只赛博朋克风格的龙虾"
50
+
51
+ # 指定尺寸(默认 1024x1024)
52
+ skillfree pilot --type image --prompt "极简主义海报" --size 1024x1792
53
+
54
+ # 保存到本地文件
55
+ skillfree pilot --type image --prompt "科技感 logo" --output ./logo.png
43
56
 
44
- | 模型ID | 名称 | 输入 | 输出 |
45
- |--------|------|------|------|
46
- | `gpt-5.4` | GPT-5.4 ⭐ | ¥33/1M | ¥200/1M |
47
- | `gpt-5.4-mini` | GPT-5.4 Mini | ¥10/1M | ¥60/1M |
57
+ # 使用高质量版本(nano banana pro,画质更好,价格更高)
58
+ skillfree pilot --type image --prompt "写实风格产品渲染图" --model gemini-3-pro-image-preview
59
+ ```
48
60
 
49
- **适合:** 商业文档、合同分析、结构化摘要、数据提炼、报告生成
61
+ **可用模型:**
62
+ - `gemini-3.1-flash-image-preview` — nano banana 2,¥0.40/次 ⭐
63
+ - `gemini-3-pro-image-preview` — nano banana pro,¥1.40/次
50
64
 
51
65
  ---
52
66
 
53
- ### 🖼️ 多模态理解 — Gemini
67
+ ## 🎬 视频生成(video)
54
68
 
55
- | 模型ID | 名称 | 输入 | 输出 |
56
- |--------|------|------|------|
57
- | `gemini-3.1-pro-preview` | Gemini 3.1 Pro ⭐ | ¥33/1M | ¥134/1M |
58
- | `gemini-3.1-flash-lite-preview` | Gemini 3.1 Flash Lite | ¥1.1/1M | ¥4.3/1M |
69
+ ```bash
70
+ # 生成视频(异步任务,提交后等待完成)
71
+ skillfree pilot --type video --prompt "无人机俯拍城市夜景,流光溢彩"
59
72
 
60
- **适合:** 图文混合分析、多模态推理、超长文档
73
+ # 指定时长(4 | 6 | 8 秒,默认 8 秒)
74
+ skillfree pilot --type video --prompt "海浪拍打礁石" --seconds 6
61
75
 
62
- ---
76
+ # 指定分辨率(默认 1920x1080)
77
+ skillfree pilot --type video --prompt "宇宙星云" --size 3840x2160
63
78
 
64
- ### 🎨 图像生成 — nano banana
79
+ # 保存视频到本地
80
+ skillfree pilot --type video --prompt "春天樱花飘落" --output ./sakura.mp4
81
+ ```
82
+
83
+ **注意:** 视频生成为异步任务,命令会自动等待并轮询结果,完成后自动下载。
65
84
 
66
- | 模型ID | 展示名 | 价格 |
67
- |--------|--------|------|
68
- | `gemini-3.1-flash-image-preview` | **nano banana 2** ⭐ | ¥0.40/次 |
69
- | `gemini-3-pro-image-preview` | **nano banana pro** | ¥1.40/次 |
85
+ **可用模型:**
86
+ - `veo-3.1-fast-generate-preview` — Veo 3.1 Fast,¥1.5/秒 ⭐
87
+ - `veo-3.1-generate-preview` Veo 3.1 高质量,¥3.5/秒
70
88
 
71
89
  ---
72
90
 
73
- ### 🎬 视频生成 — Google Veo
91
+ ## 📑 OCR 文档识别(ocr)
74
92
 
75
- | 模型ID | 名称 | 720p | 1080p | 4K |
76
- |--------|------|------|-------|-----|
77
- | `veo-3.1-fast-generate-preview` | **Veo 3.1 Fast** ⭐ | ¥1.5/s | ¥1.5/s | ¥3.5/s |
78
- | `veo-3.1-generate-preview` | **Veo 3.1** | ¥3.5/s | ¥3.5/s | ¥5.5/s |
93
+ ```bash
94
+ # 识别本地 PDF 文件(输出到终端)
95
+ skillfree pilot --type ocr --file /path/to/document.pdf
79
96
 
80
- 异步生成,成功后才扣费,支持 4~8 秒时长。
97
+ # 识别结果保存为 Markdown 文件
98
+ skillfree pilot --type ocr --file /path/to/scanned_report.pdf --output result.md
99
+
100
+ # 识别图片文件
101
+ skillfree pilot --type ocr --file /path/to/invoice.jpg --output invoice.md
102
+ ```
103
+
104
+ **适合场景:** 扫描版合同、学术论文、含表格财务文档、图文混排材料
105
+
106
+ **注意:** OCR 使用合合信息图文混排解析引擎(模型ID:`hehe-tywd`),输出格式为 Markdown,表格以 HTML 形式保留。
81
107
 
82
108
  ---
83
109
 
84
- ### 📑 OCR 解析 — 合合信息
110
+ ## 📊 演示文稿生成(presentation)
85
111
 
86
- | 模型ID | 名称 | 计费 |
87
- |--------|------|------|
88
- | `hehe-tywd` | **合合 图文混排解析** | 按量计费 |
112
+ ```bash
113
+ # 快捷方式(最简单)
114
+ skillfree ppt "百图生科融资路演BP,AI驱动蛋白质大模型药物发现平台"
89
115
 
90
- **适合:** 扫描版合同、学术论文、含表格财务文档
116
+ # 完整命令
117
+ skillfree pilot --type presentation --prompt "2025年中国新能源汽车市场分析报告"
91
118
 
92
- ---
119
+ # 指定语言(默认 zh-cn)
120
+ skillfree pilot --type presentation --prompt "Product Launch Deck for SaaS CRM tool" --language en
121
+
122
+ # 异步任务,自动等待完成并输出预览链接
123
+ ```
93
124
 
94
- ### 🌐 实时搜索 Tavily
125
+ **返回内容:** 在线预览链接 + PDF 导出地址,约 30~60 秒生成完成。
95
126
 
96
- 作为独立技能安装,可与对话模型组合构建搜索增强工作流。
127
+ **支持语言:** `zh-cn`(简体)· `zh-tw`(繁体)· `en`(英文)· `ja`(日文)· `ko`(韩文)等 50+ 语言
128
+
129
+ **计费方式:** 按实际生成页数,约 ¥0.30~0.40/页,生成失败自动退款。
97
130
 
98
131
  ---
99
132
 
100
- ## 技能严选
133
+ ## 💊 医药数据查询(pharma)
101
134
 
102
- > 技能 = 多步骤自动化工作流,比单一模型调用更强大。按任务结果计费,不按 token。
135
+ 查询全球药物研发管线、中国临床试验、中国药品申报等数据,数据来源:摩熵数科(PharmCube)。
103
136
 
104
- ---
137
+ ```bash
138
+ # 按靶点查询研发管线(最常用)
139
+ skillfree pilot --type pharma --target "STAT6"
140
+ skillfree pilot --type pharma --target "PD-1"
105
141
 
106
- ### 📊 AI 演示文稿生成
142
+ # 按药品名称查询
143
+ skillfree pilot --type pharma --drug "信迪利单抗"
144
+ skillfree pilot --type pharma --drug "度普利尤单抗"
107
145
 
108
- 输入主题或大纲,自动生成 **8-12 页专业演示文稿**,返回在线预览 + PDF 导出,无需任何设计功底。
146
+ # 按适应症查询
147
+ skillfree pilot --type pharma --indication "特应性皮炎"
148
+ skillfree pilot --type pharma --indication "非小细胞肺癌"
109
149
 
110
- **✅ 适合场景**
111
- - 投资路演 BP、融资材料
112
- - 产品发布 / 项目汇报 / 周会材料
113
- - 提案文档、课件、培训材料
150
+ # 按公司查询
151
+ skillfree pilot --type pharma --company "信达生物"
114
152
 
115
- **💰 定价策略**
153
+ # 按研发阶段筛选
154
+ skillfree pilot --type pharma --target "IL-4" --status "III期临床"
116
155
 
117
- | 页数规模 | 预估费用 | 说明 |
118
- |---------|---------|------|
119
- | 标准(8-10页)| **约 ¥2.6~3.5** | 普通主题描述 |
120
- | 丰富(10-12页)| **约 ¥3.5~4.5** | 详细大纲输入 |
156
+ # 翻页(默认第1页)
157
+ skillfree pilot --type pharma --target "STAT6" --page 2
158
+
159
+ # 查询药物详情(需要先查管线获取 keyid)
160
+ skillfree pilot --type pharma --model bcpm-drug-detail --keyid <keyid>
161
+
162
+ # 查询中国临床试验
163
+ skillfree pilot --type pharma --model bcpm-cn-clinical --drug "度普利尤单抗"
164
+ skillfree pilot --type pharma --model bcpm-cn-clinical --sponsor "信达生物"
165
+
166
+ # 查询中国药品申报/评审
167
+ skillfree pilot --type pharma --model bcpm-cn-evaluation --drug "PD-1"
168
+
169
+ # 保存结果为 JSON 文件
170
+ skillfree pilot --type pharma --target "STAT6" --output result.json
171
+ ```
121
172
 
122
- > **按实际生成量计费**,不是固定价格。生成页数越多、内容越丰富,费用越高。
123
- > 生成失败自动退款,不收任何费用。
173
+ **可用数据表(model):**
124
174
 
125
- **⏱ 生成时长:** 30~60 秒(异步任务,提交后轮询结果)
175
+ | model | 说明 | 主要参数 |
176
+ |-------|------|---------|
177
+ | `bcpm-drug-dev`(默认)| 全球药物研发管线 | --target / --drug / --indication / --company / --status |
178
+ | `bcpm-drug-detail` | 药物详细信息(含销售额、适应症进展)| --keyid(必填)|
179
+ | `bcpm-cn-clinical` | 中国临床试验注册 | --drug / --sponsor / --indication |
180
+ | `bcpm-cn-evaluation` | 中国药品申报/评审 | --drug / --company |
126
181
 
127
- **🔌 API 调用**
182
+ **典型两步工作流:**
128
183
 
129
184
  ```bash
130
- # 第一步:提交任务(立即返回,< 2 秒)
131
- curl -X POST https://skillfree.tech/v1/presentations \
132
- -H "Authorization: Bearer YOUR_API_KEY" \
133
- -H "Content-Type: application/json" \
134
- -d '{
135
- "model": "ai-presentation",
136
- "inputs": {
137
- "text": "百图生科融资路演BP,AI驱动蛋白质大模型药物发现平台,xTrimoPGLM千亿参数,已融资2亿美元",
138
- "language": "zh-cn"
139
- }
140
- }'
141
- # 返回:{ "task_id": "xxx", "status": "processing", "estimated_credits": 300 }
142
-
143
- # 第二步:轮询结果(每隔 8~10 秒查一次)
144
- curl https://skillfree.tech/v1/tasks/{task_id} \
145
- -H "Authorization: Bearer YOUR_API_KEY"
146
- # 完成:{ "status": "completed", "result_url": "https://...", "credits_used": 273 }
147
- # 失败:{ "status": "failed", "error": "...", "credits_used": 0 }
185
+ # 第一步:查管线,找到目标药物的 keyid
186
+ skillfree pilot --type pharma --target "STAT6"
187
+ # 输出中会显示每个药物的 keyid
188
+
189
+ # 第二步:用 keyid 查详情(含全球销售额、各适应症研发现状)
190
+ skillfree pilot --type pharma --model bcpm-drug-detail --keyid 0b0566619e92554c97b384c0e4c9ddfd
148
191
  ```
149
192
 
150
- **📋 参数说明**
193
+ ---
151
194
 
152
- | 参数 | 必填 | 说明 |
153
- |------|------|------|
154
- | `inputs.text` | ✅ | 主题描述或大纲,越详细生成质量越高 |
155
- | `inputs.language` | 否 | 语言代码,默认 `zh-cn`;英文用 `en` |
156
- | `inputs.format` | 否 | 固定为 `presentation`(演示文稿)|
195
+ ## 🌐 实时搜索(Tavily)
157
196
 
158
- **🌍 支持语言:** `zh-cn`(简体中文)· `zh-tw`(繁体)· `en`(英文)· `ja`(日文)· `ko`(韩文)及 50+ 语言
197
+ ```bash
198
+ skillfree pilot --type chat --prompt "搜索最新的 STAT6 抑制剂临床进展" --model tavily-search
199
+ ```
159
200
 
160
201
  ---
161
202
 
162
- ## 快速上手
203
+ ## 🔧 其他常用命令
163
204
 
164
205
  ```bash
165
- skillfree models # 查看所有在线模型和定价
166
- skillfree balance # 查看账户余额
167
- skillfree auth login # 登录账号
206
+ skillfree models # 查看所有可用模型和定价
207
+ skillfree models --type chat # 只看对话模型
208
+ skillfree balance # 查看账户余额和 credits
209
+ skillfree auth login # 登录账号
210
+ skillfree auth status # 查看当前登录状态
211
+ skillfree update # 更新到最新版本
168
212
  ```
169
213
 
214
+ ---
215
+
216
+ ## 🧭 任务类型 → 推荐命令速查
217
+
218
+ | 用户说的 | 应该调用的命令 |
219
+ |---------|-------------|
220
+ | 写代码/技术问题 | `skillfree chat "..."` |
221
+ | 分析文档/报告 | `skillfree pilot --type chat --model gpt-5.4 --prompt "..."` |
222
+ | 画一张图/生成图片 | `skillfree pilot --type image --prompt "..."` |
223
+ | 生成视频/做视频 | `skillfree pilot --type video --prompt "..."` |
224
+ | 识别PDF/OCR扫描件 | `skillfree pilot --type ocr --file <路径>` |
225
+ | 做PPT/演示文稿 | `skillfree ppt "..."` |
226
+ | 查药物/查靶点/查临床 | `skillfree pilot --type pharma --target "..."` |
227
+ | 查账户余额 | `skillfree balance` |
228
+
229
+ ---
230
+
170
231
  充值地址:https://skillfree.tech/app/billing
package/bin/skillfree.js CHANGED
@@ -36,15 +36,23 @@ auth
36
36
  // ── pilot ─────────────────────────────────────────────────────────────────────
37
37
  program
38
38
  .command('pilot')
39
- .description('AI 智能调度:chat | image | video | ocr | presentation')
40
- .option('--type <type>', '调用类型: chat | image | video | ocr | presentation', 'chat')
41
- .option('--prompt <text>', '输入提示词')
42
- .option('--file <path>', '输入文件路径(ocr 用)')
43
- .option('--output <path>', '输出文件路径')
44
- .option('--model <model>', '指定模型(可选,不填自动选最优)')
45
- .option('--size <size>', '图像尺寸 或 视频分辨率(默认 1024x1024 / 1920x1080)')
46
- .option('--seconds <sec>', '视频时长:4 | 6 | 8(默认 8)', '8')
47
- .option('--language <lang>', '演示文稿语言(默认 zh-cn)', 'zh-cn')
39
+ .description('AI 智能调度:chat | image | video | ocr | presentation | pharma')
40
+ .option('--type <type>', '调用类型: chat | image | video | ocr | presentation | pharma', 'chat')
41
+ .option('--prompt <text>', '输入提示词')
42
+ .option('--file <path>', '输入文件路径(ocr 用)')
43
+ .option('--output <path>', '输出文件路径')
44
+ .option('--model <model>', '指定模型(可选,不填自动选最优)')
45
+ .option('--size <size>', '图像尺寸 或 视频分辨率(默认 1024x1024 / 1920x1080)')
46
+ .option('--seconds <sec>', '视频时长:4 | 6 | 8(默认 8)', '8')
47
+ .option('--language <lang>', '演示文稿语言(默认 zh-cn)', 'zh-cn')
48
+ .option('--target <target>', '医药查询:靶点(如 STAT6、PD-1)')
49
+ .option('--drug <name>', '医药查询:药品名称')
50
+ .option('--indication <ind>', '医药查询:适应症(如 哮喘、特应性皮炎)')
51
+ .option('--company <company>', '医药查询:研发企业')
52
+ .option('--status <status>', '医药查询:研发阶段(如 Ⅱ期临床、批准上市)')
53
+ .option('--sponsor <sponsor>', '医药查询:申办单位(临床试验用)')
54
+ .option('--keyid <keyid>', '医药查询:药物 keyid(drug-detail 用)')
55
+ .option('--page <page>', '医药查询:页码', '1')
48
56
  .action(async (flags) => {
49
57
  const { pilot } = require('../scripts/commands/pilot')
50
58
  await pilot(flags).catch(e => { console.error('❌', e.message); process.exit(1) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillfree",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "description": "🦞 一个 API,满足所有龙虾技能需求",
5
5
  "main": "bin/skillfree.js",
6
6
  "bin": {