← ClaudeAtlas

convert-lakebooklisted

Convert Yuque .lakebook exports to Markdown files. Use when the user has a .lakebook file and wants to extract all documents as individual .md files. Supports batch conversion with an auto-generated index file.
anneheartrecord/charles-skill · ★ 2 · Data & Documents · score 76
Install: claude install-skill anneheartrecord/charles-skill
# convert-lakebook Convert Yuque `.lakebook` export files to clean Markdown documents. ## What This Skill Does 1. Extracts the `.lakebook` tar archive 2. Parses `$meta.json` for document metadata (titles, ordering, dates) 3. Converts each document's HTML body to clean Markdown using `html2text` 4. Outputs individual `.md` files named by document title 5. Generates an `_index.md` with a table of all documents ## Prerequisites ```bash pip install beautifulsoup4 html2text ``` ## Usage When the user provides a `.lakebook` file path, run the conversion script: ```bash python3 ~/Desktop/lakebook-converter/convert.py "<lakebook_file_path>" --output "<output_dir>" ``` ### Parameters - `<lakebook_file_path>`: Path to the `.lakebook` file (required) - `<output_dir>`: Output directory for Markdown files (optional, defaults to `~/Desktop/lakebook-converter/output/`) ### Default Behavior If the user just says `/convert-lakebook` with no arguments: 1. Ask the user for the `.lakebook` file path 2. Ask where they want the output (suggest `~/Desktop/lakebook-converter/output/`) 3. Run the conversion 4. Report results: how many docs converted, where they are, and show the index ### Example Invocations ``` /convert-lakebook ~/Desktop/export.lakebook /convert-lakebook ~/Downloads/my-notes.lakebook --output ~/Documents/notes/ ``` ## Output Format Each document becomes a Markdown file: ```markdown # Document Title [converted content...] ``` An `_index.md` file is generated with