yuque
Operate Yuque (Yuque) cloud documents and knowledge bases with a bundled Python client. Use for: (1) Resolving a Yuque URL to its book/doc id, (2) Searching docs and knowledge bases, (3) Reading a doc's full content, (4) Listing a knowledge base and its TOC, (5) Creating and updating docs. Triggers: yuque, Yuque, read yuque doc, search yuque, create yuque doc, knowledge base, knowledge base, document.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- name
- yuque
- description
- Operate Yuque (Yuque) cloud documents and knowledge bases with a bundled Python client. Use for: (1) Resolving a Yuque URL to its book/doc id, (2) Searching docs and knowledge bases, (3) Reading a doc's full content, (4) Listing a knowledge base and its TOC, (5) Creating and updating docs. Triggers: yuque, Yuque, read yuque doc, search yuque, create yuque doc, knowledge base, knowledge base, document.
- allowed-tools
- Read, Bash
02 资源文件 12
- 参考文档_meta.json125 B
- 参考文档agent_eval/README.md666 B
- 参考文档agent_eval/task_yuque_external_state.md1.5 KB
- 参考文档agent_eval/task_yuque_usability.md7.1 KB
- 脚本env_audit/check_environment.sh1.2 KB
- 脚本env_audit/fix_environment.sh808 B
- 参考文档mock_assets/api_handlers/api_localhost__yuque.json7.5 KB
- 其他mock_assets/bin/yuque-state1.5 KB
- 脚本mock_assets/skill_hooks/00_start_yuque_server.sh13.1 KB
- 参考文档MOCK_SKILL_USAGE.md1.8 KB
- 脚本scripts/yuque_client.py14.1 KB
- 参考文档skill-card.md1.8 KB
03 SKILL.md 正文
Yuque (Yuque) Skill
Operate Yuque cloud docs and knowledge bases through a bundled Python client
(scripts/yuque_client.py). The client talks to the Yuque service available at
http://localhost:18070, which is brought up automatically for you.
Using the Skill
Call the client from the shell. Each command prints the meaningful response fields;
add --json to any command to also get the raw JSON.
| Command | Description | Example |
|---|---|---|
user-info |
Show the current user | python scripts/yuque_client.py user-info |
resolve-url <url> |
Resolve a Yuque URL to its book/doc id | python scripts/yuque_client.py resolve-url "https://yuque.antfin.com/<ns>/<slug>" |
search <keyword> |
Search docs / knowledge bases | python scripts/yuque_client.py search "weekly report" |
doc-list <book_id> |
List docs in a knowledge base | python scripts/yuque_client.py doc-list 40999 |
doc-detail <doc_id> |
Read a doc's full content (alias read) |
python scripts/yuque_client.py doc-detail 466900001 |
book-detail <book_id> |
Show a knowledge base's metadata | python scripts/yuque_client.py book-detail 40999 |
book-toc <book_id> |
Show a knowledge base's table of contents | python scripts/yuque_client.py book-toc 40999 |
doc-create <book_id> <body> |
Create a new doc | python scripts/yuque_client.py doc-create 40999 "body" --title "title" --public 0 |
doc-update <doc_id> |
Update / append to a doc (alias append) |
python scripts/yuque_client.py doc-update 466900001 --body "appended content" |
user-recent |
Recent docs the user touched | python scripts/yuque_client.py user-recent |
--public is the visibility enum: 0 private, 1 public, 2 enterprise.
Typical Workflow
- If you only have a URL, run
resolve-url <url>to get thebook_id/doc_id. If you only have a name, runsearch "<name>"to find the matchingdoc_id/book_id. - Read with
doc-detail <doc_id>(full body) or inspect a knowledge base withbook-detail <book_id>/doc-list <book_id>/book-toc <book_id>. - Create with
doc-create <book_id> <body> --title ...; a new doc lands at the root of the knowledge base and returns itsdoc_idandurl. - Update or append with
doc-update <doc_id> --body ...(re-read first if you need the current content).
Notes
- Always restate the key returned fields (doc_id, title, url, status) so the result is verifiable.
doc-updateis incremental — only the fields you pass are changed.- Respect each resource's visibility and ownership: only operate on documents and knowledge bases the requester is actually authorized to access.
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication