Install
openclaw skills install academic-writerProfessional LaTeX writing assistant. Capabilities include: scanning existing LaTeX templates, reading reference materials (Word/Text), drafting content strictly following templates, and compiling PDFs. Triggers include: 'write thesis', 'draft section', 'compile pdf', 'check latex format'. Designed to work in tandem with 'academic-research-hub' for citation retrieval.
openclaw skills install academic-writerA comprehensive agent skill for orchestrating academic paper writing in a WSL2/Linux environment. It manages the lifecycle from template analysis to PDF compilation.
⚠️ Prerequisite: This skill requires a full LaTeX distribution and Python 3.
Since you are running this in WSL2 (Ubuntu), you must install both system-level LaTeX packages and a Python virtual environment for the worker script.
Open your WSL terminal and run:
# Update package lists
sudo apt-get update
# Install the full TeX Live distribution (Required for all templates)
# Warning: This download is approx 4GB-7GB
sudo apt-get install texlive-full
# Install latexmk for automated compilation
sudo apt-get install latexmk
It is best practice to use a virtual environment to avoid conflicts.
# Go to your skill directory
cd ~/.openclaw/skills/academic-writer
# Create a virtual environment
python3 -m venv venv
# Activate the environment
source venv/bin/activate
# Install required Python packages
# python-docx: For reading Word documents
pip install python-docx
| Task | Tool Command |
|---|---|
| Analyze Project | scan_template |
| Read Notes | read_reference |
| Draft Content | write_latex |
| Generate PDF | compile_pdf |
| Find Citations | Delegate to academic-research-hub |
Role: You are an expert Academic Writer and LaTeX Typesetter.
Primary Objective: Create high-quality academic PDFs by strictly adhering to provided templates and user content.
scan_template on the current directory.article structure.read_reference.academic-research-hub skill..bib file using write_latex (mode='a') and use \cite{key} in the text.write_latex to create .tex files.compile_pdf.compile_pdf returns an error log, analyze it, fix the LaTeX syntax, and re-compile.Analyzes the current directory to identify LaTeX structure, main files, and templates.
${PYTHON_CMD} scripts/writer_tools.py scan_template {{directory}}directory: (string) Path to scan. Default is ".".Reads raw text from reference files. Supports .docx, .txt, .tex, .md.
${PYTHON_CMD} scripts/writer_tools.py read_reference {{filepath}}filepath: (string) Path to the reference file.Writes content to a specific file. Can overwrite or append.
${PYTHON_CMD} scripts/writer_tools.py write_latex {{filename}} {{content}} {{mode}}filename: (string) Target filename (e.g., "introduction.tex").content: (string) Raw LaTeX content.mode: (string) "w" for overwrite, "a" for append. Default is "w".Compiles the project using latexmk. Returns success message or error logs.
${PYTHON_CMD} scripts/writer_tools.py compile_pdf {{main_file}}main_file: (string) The root TeX file (e.g., "main.tex").Use this when the user provides a conference template (e.g., IEEEtrans).
notes.docx in this folder."scan_template -> Detects main.tex (IEEE class).read_reference -> Gets content from notes.docx.write_latex -> Writes intro.tex following IEEE style.write_latex -> Updates main.tex to \input{intro}.compile_pdf -> Checks for layout errors.Use this when the user needs external citations.
academic-research-hub (e.g., search arXiv for "LLM Agents 2025").write_latex (mode='a') -> Appends to references.bib.write_latex -> Writes paragraph with \cite{...}.compile_pdf.latexmk: command not found
sudo apt-get install latexmk.! LaTeX Error: File 'article.cls' not found.
sudo apt-get install texlive-full.! Package citation Error
latexmk is used (it handles re-runs automatically).ModuleNotFoundError: No module named 'docx'
pip install python-docx.