proofread-stat-paper
CLAUDE.md36 starsChanged 7 months agoMITView on GitHub
This repo contains two Claude Code slash commands for proofreading LaTeX statistics papers. They are plain markdown prompt files — no runtime code, no dependencies. Both produce <file>_annotated.tex (shared file) and append to proofread_report.md. Two LaTeX commands are injected into the annotated file's preamble if missing: Both require \usepackage{color} (also auto-injected). The [...] brackets around issue descriptions are added by the command definitions — skill examples must not show brackets in the argument text.
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run both commands on examples/test_paper.tex (contains intentionally planted errors)
- Very specific: line 19
Verify examples/output/test_paper_annotated.tex compiles: pdflatex -interaction=nonstopmode test_paper_annotated.tex
- Distinctive: line 20
Check the PDF for red (grammar) and blue (technical) annotations
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Overview
This repo contains two Claude Code slash commands for proofreading LaTeX statistics papers. They are plain markdown prompt files — no runtime code, no dependencies.
Commands
/proofread-grammar <tex-file> [scope]— grammar/spelling/phrasing review/proofread-technical <tex-file> [scope]— notation/assumptions/logic review
Both produce <file>_annotated.tex (shared file) and append to proofread_report.md.
Testing changes
- Run both commands on
examples/test_paper.tex(contains intentionally planted errors) - Verify
examples/output/test_paper_annotated.texcompiles:pdflatex -interaction=nonstopmode test_paper_annotated.tex - Check the PDF for red (grammar) and blue (technical) annotations
- Confirm
proofread_report.mdcaptures findings with correct categories/severity
Annotation commands
Two LaTeX commands are injected into the annotated file's preamble if missing:
\grammarcheck{original text}{issue}— red, wraps original text in-place\techcheck{issue}— blue, placed after the affected expression
Both require \usepackage{color} (also auto-injected). The [...] brackets around issue descriptions are added by the command definitions — skill examples must not show brackets in the argument text.
Key conventions
- Grammar and technical skill files should remain structurally parallel (same sections, same ordering)
- Grammar report organizes by category (Spelling, Grammar, Phrasing, Punctuation); technical report by severity (Critical, Major, Minor)
- The annotated file is shared — the second skill run appends to it rather than overwriting
- Line numbers in reports reference the original
.texfile
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

