a6590072

Yuque

知识管理v1.0.0
作者:a6590072更新于 2026-05-11yuque@clawhub_a6590072/yuque
知识库问答资料整理文档问答#Knowledge Base#Document#Personal

据 AlphaMoat 统计,截至 2026-09,Yuque 累计下载 1,094 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,984 位,在「知识管理」分类(442 个)中排名第 435 位。

累计安装
134
累计下载
1,094
星标
-
全站排名
#4,984
全站前 99% · 「知识管理」前 99%
平台累计安装累计下载星标评论
ClawHub ↗271,019--
SkillHub ↗1341,094-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能支持列出仓库、搜索和读取文档,以及创建或更新内容;需要 Yuque 令牌,并可能访问个人或团队知识库。

资料发布于 2026-10-29

可以用来做什么

  • 适合需要在代理工作流中检索或管理语雀文档与知识库的用户。

什么时候用

  • 通过受保护的环境变量或密钥管理器保存令牌;创建、更新或删除文档前,确认具体操作和目标仓库。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

请查找与项目规划相关的语雀文档并汇总,只阅读,不要创建、修改或删除文档。

月度数据趋势

累计下载1,094
2196891,1592026-03 · 累计下载 2842026-05 · 累计下载 6242026-06 · 累计下载 7272026-07 · 累计下载 9072026-08 · 累计下载 9702026-09 · 累计下载 1,09426-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-091,094—-
2026-08970+6.9%-
2026-07907+24.8%-
2026-06727+16.5%-
2026-05624—-
2026-03284—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.0 KB · ClawHub v1.0.0
---
name: yuque
description: Manage Yuque (语雀) knowledge base documents and repositories. Use when users need to interact with Yuque for document operations including reading documents, listing repositories, searching content, creating documents, and managing knowledge bases. Supports both personal and team spaces.
---

# Yuque Skill

Interact with Yuque (语雀) knowledge base platform via the Yuque Open API.

## Prerequisites
展开全部(共 120 行)

- Yuque API Token (stored in environment variable `YUQUE_TOKEN`)
- Base URL: `https://www.yuque.com/api/v2`

## Authentication

All API requests require an `X-Auth-Token` header with your Yuque token.

## Core Workflows

### 1. Get User Info

```bash
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/user
```

### 2. List User Repositories

```bash
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/users/<login>/repos
```

### 3. List Repository Documents

```bash
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/repos/<namespace>/docs
```

### 4. Get Document Detail

```bash
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/repos/<namespace>/docs/<slug>
```

### 5. Get Document Content (HTML/Markdown)

```bash
# Get HTML content
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/repos/<namespace>/docs/<slug>?raw=1

# Get Markdown content
curl -s -H "X-Auth-Token: $YUQUE_TOKEN" https://www.yuque.com/api/v2/repos/<namespace>/docs/<slug>?raw=1 | python scripts/parse_yuque.py --format md
```

### 6. Create Document

```bash
curl -s -X POST \
  -H "X-Auth-Token: $YUQUE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "Document Title", "body": "Document content in Markdown"}' \
  https://www.yuque.com/api/v2/repos/<namespace>/docs
```

### 7. Update Document

```bash
curl -s -X PUT \
  -H "X-Auth-Token: $YUQUE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "New Title", "body": "Updated content"}' \
  https://www.yuque.com/api/v2/repos/<namespace>/docs/<id>
```

### 8. Search Documents

Yuque API doesn't have a direct search endpoint. Use list + filter approach:

```bash
# List all docs in a repo and filter by title
python scripts/search_yuque.py --namespace <namespace> --query "keyword"
```

## Common Namespace Formats

- Personal repo: `username/repo-slug`
- Team repo: `teamname/repo-slug`

## Response Format

All API responses are JSON with this structure:

```json
{
  "data": { ... },
  "meta": { ... }
}
```

## Error Handling

Common HTTP status codes:
- `401`: Unauthorized (check token)
- `403`: Forbidden (no permission)
- `404`: Resource not found
- `429`: Rate limited (wait and retry)

## Helper Scripts

Use the provided Python scripts for common operations:

- `scripts/yuque_cli.py` - Full CLI for Yuque operations
- `scripts/parse_yuque.py` - Parse Yuque HTML to Markdown
- `scripts/search_yuque.py` - Search documents in repositories

## References

- API Documentation: See [references/api.md](references/api.md)
- Common Operations: See [references/examples.md](references/examples.md)

「知识管理」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。