@kg-ai/kugou-skill 0.0.7 → 0.0.9
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/SKILL.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kugou-skill
|
|
3
3
|
description: |
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
酷狗音乐助手,提供歌曲搜索、每日推荐、相似推荐、收藏管理、听歌统计、酷狗榜单等功能。
|
|
5
|
+
|
|
6
|
+
**触发场景**(满足任一即使用本技能):
|
|
7
|
+
- 用户要求推荐歌曲、听歌建议
|
|
8
|
+
- 用户要求搜索歌曲、查找歌手作品
|
|
9
|
+
- 用户要求查看音乐榜单(飙升榜、TOP500、抖音热歌等)
|
|
10
|
+
- 用户要求查看收藏、最近播放、听歌统计
|
|
11
|
+
- 用户提到"酷狗"、"kugou"、"每日推荐"、"相似歌曲"
|
|
12
|
+
|
|
13
|
+
**与其他音乐技能的区别**:酷狗音乐以推荐算法见长,榜单数据实时更新,适合获取热门歌曲和个性化推荐。
|
|
14
|
+
|
|
6
15
|
安装方式:npm install -g @kg-ai/kugou-skill
|
|
7
16
|
---
|
|
8
17
|
|
|
@@ -144,7 +153,7 @@ kugou-cli auth login --output base64 # 输出 base64 编码的图片数据(
|
|
|
144
153
|
- `{"status": "waiting", ...}` — 等待扫码
|
|
145
154
|
- `{"status": "scanned", "nickname": "...", ...}` — 已扫码,等待用户在手机上确认
|
|
146
155
|
- `{"status": "success", "nickname": "...", "secret": "..."}` — 登录成功,token 已持久化
|
|
147
|
-
- `{"status": "failed", "message": "QR code expired or login failed"}` — 登录失败(二维码过期),需重新执行
|
|
156
|
+
- `{"status": "failed", "message": "QR code expired or login failed"}` — 登录失败(二维码过期),需重新执行
|
|
148
157
|
|
|
149
158
|
---
|
|
150
159
|
|
|
@@ -255,8 +264,18 @@ kugou-cli music recent --page 1 --size 20
|
|
|
255
264
|
|
|
256
265
|
```bash
|
|
257
266
|
kugou-cli music stats
|
|
267
|
+
kugou-cli music stats --date-type 1 --date 20260501
|
|
258
268
|
```
|
|
259
269
|
|
|
270
|
+
**AI 引导**:如果用户不指定查询范围,默认按月查询(`--date-type 2`),日期设为当月第一天。例如当前日期是 2025-06-15,默认查询 2025年6月1日 的数据。
|
|
271
|
+
|
|
272
|
+
**参数**:
|
|
273
|
+
- `--date-type`: 日期类型,0=日、1=周、2=月,默认 0
|
|
274
|
+
- `--date`: 查询日期,YYYYMMDD 格式,如 "20260501"
|
|
275
|
+
- 日类型:每天日期,如 "20260501"
|
|
276
|
+
- 周类型:必须是周一日期,如 "20260505"(周一)
|
|
277
|
+
- 月类型:必须是月份第一天,如 "20260501"(5月1日)
|
|
278
|
+
|
|
260
279
|
**输出示例**:
|
|
261
280
|
```json
|
|
262
281
|
{
|
|
@@ -274,18 +293,18 @@ kugou-cli music stats
|
|
|
274
293
|
"last_listen_total": 387,
|
|
275
294
|
"rank_song": [
|
|
276
295
|
{
|
|
277
|
-
"song_info": {"
|
|
296
|
+
"song_info": {"name": "晴天", "mix_song_id": "8888", "cover": "https://xxx.jpg", "singer_name": "周杰伦", "hash": "abcdef123456"},
|
|
278
297
|
"count": 50
|
|
279
298
|
}
|
|
280
299
|
],
|
|
281
300
|
"rank_singer": [
|
|
282
|
-
{"singer_id": 123, "name": "周杰伦", "avatar": "https
|
|
301
|
+
{"singer_id": 123, "name": "周杰伦", "avatar": "https://xxx.jpg", "total": 120}
|
|
283
302
|
],
|
|
284
303
|
"rank_style": [
|
|
285
304
|
{"style": "流行", "total": 200, "count": 80}
|
|
286
305
|
],
|
|
287
306
|
"rank_language": [
|
|
288
|
-
{"language": "
|
|
307
|
+
{"language": "华语", "total": 400, "count": 150}
|
|
289
308
|
]
|
|
290
309
|
},
|
|
291
310
|
"status": 1
|
|
@@ -293,9 +312,12 @@ kugou-cli music stats
|
|
|
293
312
|
```
|
|
294
313
|
|
|
295
314
|
**关键字段**:
|
|
296
|
-
- `listen_duration`:
|
|
297
|
-
- `
|
|
298
|
-
- `
|
|
315
|
+
- `listen_duration`: 今日/周/月听歌时长(秒)
|
|
316
|
+
- `clocks`: 时段打卡统计(`clock`: 时段标识,`listen_duration`: 秒)
|
|
317
|
+
- `accumulate_listen_days`: 累计听歌天数
|
|
318
|
+
- `continue_listen_days`: 连续听歌天数
|
|
319
|
+
- `listen_total`: 累计听歌次数
|
|
320
|
+
- `last_listen_total`: 昨日听歌次数
|
|
299
321
|
- `rank_song`: 播放最多的歌曲排行(`count` 为播放次数)
|
|
300
322
|
- `rank_singer`: 播放最多的歌手排行
|
|
301
323
|
- `rank_style`: 曲风分布统计
|
|
Binary file
|
package/bin/darwin-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/linux-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|