Overview
Export Yuque knowledge bases, Yuque documents, or .lakebook files and convert them into a local Markdown directory, prioritizing compatibility with Obsidian. The workflow supports single or batch export and handles common migration issues such as missing images, cropped image mismatches, broken internal links, incorrect directory hierarchy, and abnormal Markdown table rendering.
When to Use
Use this skill when the user needs the following capabilities:
- Export one or more Yuque
.lakebook - Convert Yuque knowledge bases to Markdown
- Migrate Yuque content to Obsidian
- Fix image, cropped image, internal link, directory hierarchy, and table rendering issues after Yuque export
Do Not Use
Do not use this skill for:
- Ordinary Markdown editing unrelated to Yuque or
.lakebookUnrelated ordinary Markdown editing - Web scraping tasks
- Export conversion tasks from non-Yuque sources
Usage Instructions
- Prefer non-interactive mode for stable Agent execution.
- Before executing any non-interactive export, the Agent must first confirm the output root directory with the user and must not decide the output directory on its own.
- If the user has not yet clearly provided an output directory, first ask with a brief question and wait for the user's reply before executing the export.
- Uniformly prioritize using
uv, and do not temporarily create.venv、.yuque-export-venvenvironments in the task directory. - Before executing any
uvcommand, first check whether the current environment can useuv。 - If
uvis not installed, or is not inPATH, the Agent must first ask the user to confirm whether to installuv, and must not silently install it directly. - Before executing
uv syncoruv run python scripts/cli.py ..., you must first switch to the tool directory of the currently installed skill, that is, the one containing thisSKILL.md、pyproject.toml、uv.lockandscripts/. Do not execute these commands directly in the directory containing.lakebook, the target output directory, or the root directory of the user's current workspace. - When executing, the Agent uses the following entry point:
uv run python scripts/cli.py
- Sync dependencies before first use:
uv sync
- Recommended execution order:
cd /path/to/installed-skill-root
uv sync
uv run python scripts/cli.py ...
- Single-file execution:
uv run python scripts/cli.py -l "/path/to/your_file.lakebook" -o "/target/root"
- Batch execution:
uv run python scripts/cli.py -l "/path/to/your_file_1.lakebook" "/path/to/your_file_2.lakebook" -o "/target/root"
- Although
scripts/cli.pystill retains interactive selection capability for manual use in human terminals, the Agent should not rely on interactive mode because terminal interaction state cannot be reliably obtained. Always explicitly pass-land-oparameters during execution. - Do not manually create temporary virtual environments in the current working directory, the user's download directory, or any task directory; dependencies should be uniformly managed by the
uvenvironment in the skill tool directory. - It is known that some document bodies exported from Yuque contain
<!doctype lake>, and older implementations may export them aslake## 标题; the current built-in implementation of this skill already handles this issue. - After export completes, check:
.mdWhether the file is generated- Whether a same-named
.assetsdirectory is generated - Whether internal links are converted to relative Markdown paths
- Whether images can display normally in Obsidian
- Whether the first line of the document has an abnormal
lake##prefix
- If the export fails, first check the batch log generated in the same directory as the input
.lakebook.
For detailed behavior, output rules, and troubleshooting instructions, see references/usage.md。