Paper writing

From diillson/chatcli · View interactive version

Paper writing is an AI agent skill from the GitHub repository diillson/chatcli. Write and typeset formal documents — academic papers, reports, articles — using Markdown + Pandoc and LaTeX. Convert between formats (md↔pdf↔docx↔tex), manage citations with BibTeX/CSL. Keyless, local. Use when asked to "write a paper", "format this as LaTeX", "convert to PDF/Word", "add citations".

How to use this skill

Skill file

Paper / Document Writing

Local, keyless typesetting with Pandoc (+ LaTeX for PDF). Detect:

command -v pandoc pdflatex xelatex 2>/dev/null. Install: brew install pandoc basictex /

apt install pandoc texlive-xetex / choco install pandoc miktex.

Author in Markdown

Write the document as markdown with a YAML metadata block:

---
title: A Study of X
author: Jane Doe
date: 2026-06-03
bibliography: refs.bib
---
# Introduction
As shown by prior work [@smith2024] ...

Convert

pandoc paper.md -o paper.pdf --pdf-engine=xelatex     # PDF (needs LaTeX)
pandoc paper.md -o paper.docx                          # Word
pandoc paper.md -o paper.tex                           # LaTeX source
pandoc report.docx -o report.md                        # reverse: docx → markdown

Citations

Accept: application/x-bibtex), then append to refs.bib.

Workflow

  1. Draft structure (sections), then prose.
  2. Insert citations as you go; collect them in refs.bib.
  3. Render to the requested format; if LaTeX errors, read the log and fix the offending markup.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.