/lathe:getting-startedfrom lathe
Set up and check the Lathe MCP bundle (images, PDF, audio and video, OCR, batch runs, metadata removal). Use when the user installs Lathe, asks what Lathe can do, gets a "lathe." error from a tool, sees a "missing" or "approval_unavailable" result, or wants to turn a module on or off.
Ships in lathe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Call lathe_modules first. It returns each module with enabled, available and missing. A missing piece comes with the install command for it. Report the missing pieces by name and run the install command the tool gives.
| Module | On by default | Python extra | System programs | Tools |
|---|---|---|---|---|
images | yes | none (Pillow is always installed) | none | image_info, image_resize, image_convert, image_optimize, image_crop, image_thumbnail |
pdf | yes | pdf (pypdf) | ghostscript, for pdf_to_images | pdf_info, pdf_extract_text, pdf_merge, pdf_to_images, pdf_split, pdf_compress |
media | yes | none | ffmpeg and ffprobe | audio_info, audio_convert, video_info, video_thumbnail, video_trim, video_to_gif |
ocr | yes | ocr (pytesseract) | tesseract | ocr_image |
batch | no | none | depends on the operation: ghostscript for pdf_to_images, ffmpeg for audio_convert | batch_process |
privacy | no | pdf (pypdf), for PDFs | none | scrub_metadata |
pdf_extract_text reads scanned pages with OCR when the ocr extra, tesseract and ghostscript are all installed.
Python extras go in the same command that starts the server. With uv, use uvx --from "lathe-mcp[pdf,ocr]" lathe. With pip, use pip install "lathe-mcp[pdf,ocr]".
System programs:
| Program | macOS | Debian or Ubuntu |
|---|---|---|
| ffmpeg (includes ffprobe) | brew install ffmpeg | sudo apt install ffmpeg |
| tesseract | brew install tesseract | sudo apt install tesseract-ocr |
| ghostscript | brew install ghostscript | sudo apt install ghostscript |
Run lathe --doctor in a terminal, using the same command the MCP app runs (uvx --from "lathe-mcp[pdf,ocr]" lathe --doctor). It prints ok or FIX for each piece, names the install command for each FIX, and exits with status 1 when something needs fixing. Run the fixes, then restart the MCP app so it starts the server again.
Set LATHE_<MODULE>_ENABLED to true or false in the MCP app's env block, for example LATHE_MEDIA_ENABLED=false. The same setting can go in ~/.config/lathe/config.toml as enabled = false under the module's table. Environment variables win over the file.
The batch and privacy modules are off after an update. Switch them on only when the user asks for batch runs or metadata removal.
Set LATHE_WORKING_DIR to the folder that holds the user's files. Every input and output path is relative to it and must stay inside it. Symlinks that point outside are refused. Without this setting, the working folder is the folder the MCP app starts in. Confirm with the user that it is the folder that holds their files.
Only batch_process asks the person to approve, and only for a run of two or more files. The MCP client shows the plan once. Claude Code and other clients that support approval prompts show the prompt. If a client cannot show one, the tool returns approval_unavailable and names the setting, LATHE_BATCH_PREAPPROVED=true. Explain that setting and its effect to the user. Do not set it yourself.
Every other writing tool creates one new file per call and never overwrites one unless the call passes overwrite=true. It does not ask.
Every batch request, approval and refusal goes to a local log at ~/.local/state/lathe/approvals.jsonl. File contents and file names are not logged. Set LATHE_APPROVAL_LOG to move the log.
health: returns the version and whether each external program is installed.image_info on one image in the working folder: returns width, height and format.pdf_info on one PDF, when the pdf module is available.Every error reads lathe.<module>.<code>: <message> Fix: <hint>. Pass the Fix: text to the user as written.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/pdfConvert a Markdown file to a PDF with Chrome or Chromium in headless mode. Use when the user asks to turn a Markdown note, report or spec into a PDF and Chrome or Chromium is installed. Lathe's own PDF tools do not render Markdown./pdf-formsMake a PDF with real fillable fields (text boxes and checkboxes that a reader can tick or type in) from a page layout, for planners, trackers, checklists and order forms. Use when the user needs a PDF that people fill in on screen, not a static printable. Lathe's pdf tools read and split fields but do not create them./web-image-prepPrepare a folder of photos or screenshots for a website or post: remove GPS and camera metadata, resize, and optimize each file in one batch run. Use when the user wants to shrink, convert or clean photos before uploading them, or asks to remove location data from a picture.Other plugins' skills for the same job
lathe@seayniclabs is listed by seayniclabs/plugins — review the source before installing
npx claudepluginhub seayniclabs/plugins --plugin lathe