Files
media-center/SKILL.md
T
sutong 750f981c7e feat: init media-center skill
资源中心——从多渠道获取资源链接,转存到夸克网盘并整理归档。
- sources/tencent-doc: 腾讯文档读取
- sources/search: 网盘搜索
- storage/quark: 夸克网盘操作
- ref/: 来源 skill 参考归档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-16 18:28:23 +08:00

107 lines
3.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: media-center
description: 资源中心——从多渠道获取资源链接,转存到夸克网盘并整理归档。每个模块独立自包含,不依赖外部 skill 即可运行。
---
# 资源中心
## 完整架构
```
media-center/
├── SKILL.md # 入口 + 场景路由
├── sources/ # 获取途径(独立模块)
│ ├── tencent-doc/ # 腾讯文档读取
│ │ └── v1/
│ │ ├── install.md # 安装配置
│ │ ├── usage.md # 使用方法
│ │ └── maintain.md # 维护&来源
│ └── search/ # 网盘搜索
│ └── v1/
│ ├── install.md
│ ├── usage.md
│ └── maintain.md
├── storage/ # 存储后端(独立模块)
│ └── quark/ # 夸克网盘
│ └── v1/
│ ├── install.md
│ ├── usage.md
│ └── maintain.md
└── ref/ # 参考项目归档(来源 skill 的完整副本)
├── tencent-docs/ # 腾讯文档官方 MCP skill
│ ├── SKILL.md
│ ├── references/ # 官方参考文档
│ └── setup.sh # 安装脚本
├── tx-doc-large-reader/ # 大文档读取方案
│ └── SKILL.md
├── netdisk-mcp-server/ # netdisk MCP 源码+文档
│ ├── SKILL.md
│ └── src/ # 源码(API 端点参考)
├── quark-netdisk-helper/ # 夸克 API 补全方案
│ └── SKILL.md
└── resource-pipeline/ # 旧版管线设计(思路参考)
└── SKILL.md
```
## 场景路由
| 需求 | 流程 |
|------|------|
| 从腾讯文档找链接→存夸克 | `sources/tencent-doc/v1/usage.md``storage/quark/v1/usage.md` |
| 搜索资源→存夸克 | `sources/search/v1/usage.md``storage/quark/v1/usage.md` |
| 整理夸克网盘文件 | `storage/quark/v1/usage.md`(整理章节) |
## 端到端示例
以下是一个完整流程的实例(从腾讯文档找"遮天"资源 → 存到夸克 → 整理归档):
```
Step 1: 读腾讯文档
sources/tencent-doc/v1/usage.md
→ doc.resolve_document_structure → 提取全文 → grep "遮天"
→ 找到分享链接 https://pan.quark.cn/s/xxx
Step 2: 存到夸克
storage/quark/v1/usage.md
→ netdisk.view() 确认内容(205文件/191GB1-162集)
→ netdisk.list() 发现已有目录 /动漫/国漫2024/遮.天(2023
→ Quark API 创建子目录 151-162
→ netdisk.transfer() 转存新集数
→ Quark API 删除混入的杂文件
Step 3: 整理归档
storage/quark/v1/usage.md(文件整理流程)
→ netdisk.list() 获取文件列表
→ Quark API 创建 101-120/121-140/141-150 子目录
→ Quark API move 分批移动文件
→ netdisk.list() 验证最终结构
```
## 版本策略
当某个模块的接口或流程发生变更时,创建新版本:
```
tencent-doc/
├── v1/ # ← 旧版,保留作为参考
└── v2/ # ← 新版,更新后的方案
├── install.md
├── usage.md
└── maintain.md
```
- 每个版本独立,新旧可共存
- `maintain.md` 中的"信息来源"表指向 `ref/` 下的具体文件,可追溯
- 默认使用最新版本
## 使用方式
每个模块独立可用。直接按需查阅对应版本文档即可。
## 维护索引
当某个来源 skill 更新后,同步更新 `ref/` 中对应副本,然后判断是否需要创建模块的新版本。