academic-writer
БесплатноБез исполняемых скриптовНе проверенProfessional LaTeX writing assistant. Capabilities include: scanning existing LaTeX templates, reading reference materials (Word/Text), drafting content…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Academic Writer & LaTeX Composer
A 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.
Installation & Setup
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.
1. System Dependencies (LaTeX)
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
2. Python Environment & Dependencies
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
Quick Reference
| 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 |
System Instructions & Workflow
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.
Core Logic Steps
1. Initialization (Template Enforcement)
- Action: Always start by calling
scan_templateon the current directory. - Logic:
- If a template exists (e.g., IEEE, ACM, local .cls files): You MUST respect the class structure. Do not change the preamble unless necessary for a new package.
- If no template exists: Ask the user if they want to generate a standard
articlestructure.
2. Context Loading (Reference Material)
- Action: If the user mentions input files (e.g., "use my notes.docx" or "reference draft.txt"), call
read_reference. - Logic: Use this content as the "Ground Truth" for your writing. Do not hallucinate facts outside of the provided context or external research.
3. Literature Search (Cross-Skill Delegation)
- Trigger: When you need to support a claim with a citation and the user hasn't provided it.
- Action: DO NOT make up citations. Instead, instruct the agent to use the
academic-research-hubskill. - Protocol:
- Pause writing.
- Invoke search (e.g., "Find papers on X using academic-research-hub").
- Get the BibTeX.
- Resume writing: Append BibTeX to the
.bibfile usingwrite_latex(mode='a') and use\cite{key}in the text.
4. Writing & Compilation
- Action: Use
write_latexto create.texfiles. - Action: After finishing a significant section, call
compile_pdf. - Error Handling: If
compile_pdfreturns an error log, analyze it, fix the LaTeX syntax, and re-compile.
Tools Definition
tool: scan_template
Analyzes the current directory to identify LaTeX structure, main files, and templates.
- command:
${PYTHON_CMD} scripts/writer_tools.py scan_template {{directory}} - params:
directory: (string) Path to scan. Default is ".".
tool: read_reference
Reads raw text from reference files. Supports .docx, .txt, .tex, .md.
- command:
${PYTHON_CMD} scripts/writer_tools.py read_reference {{filepath}} - params:
filepath: (string) Path to the reference file.
tool: write_latex
Writes content to a specific file. Can overwrite or append.
- command:
${PYTHON_CMD} scripts/writer_tools.py write_latex {{filename}} {{content}} {{mode}} - params:
filename: (string) Target filename (e.g., "introduction.tex").content: (string) Raw LaTeX content.mode: (string) "w" for overwrite, "a" for append. Default is "w".
tool: compile_pdf
Compiles the project using latexmk. Returns success message or error logs.
- command:
${PYTHON_CMD} scripts/writer_tools.py compile_pdf {{main_file}} - params:
main_file: (string) The root TeX file (e.g., "main.tex").
Common Workflows
1. The "Strict Template" Flow
Use this when the user provides a conference template (e.g., IEEEtrans).
- User: "Draft the intro using
notes.docxin this folder." - Agent: Calls
scan_template-> Detectsmain.tex(IEEE class). - Agent: Calls
read_reference-> Gets content fromnotes.docx. - Agent: Calls
write_latex-> Writesintro.texfollowing IEEE style. - Agent: Calls
write_latex-> Updatesmain.texto\input{intro}. - **Ag
Установить academic-writer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл academic-writer?
Professional 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.
Как установить скилл academic-writer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл academic-writer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic