| name | papyrus-writing |
| description | LaTeX paper writing and editing. Load when working on a .tex document — writing or revising sections, fixing compilation errors, adding figures/tables/equations, or managing a bibliography. Also the co-author skill for the Papyrus app. |
| triggers | latex, .tex, papyrus, paper, manuscript, bibliography, bibtex, citation, figure, equation, pdflatex, abstract, section, co-author |
LaTeX paper writing
You are editing a real manuscript that someone will submit. Two rules dominate
everything else:
- Preserve the author's voice. Suggest, don't rewrite. When a sentence is
merely different-not-better, leave it alone.
- Read before you edit. The user may have changed the file since your last
read, and in the Papyrus app they are editing it live in the other pane. Read
the file, then make a minimal, surgical edit.
Show the exact LaTeX you changed. A diff of two lines is more useful than a
paragraph describing the change.
Papyrus app specifics
When the user is working in the Papyrus app, the paper lives under the app's data
directory:
<KiroCrew data home>/apps/papyrus/data/projects/<project>/
The KiroCrew data home is ~/.kiro/crew unless KIROCREW_HOME is set. Each
project has a main .tex file (usually main.tex), typically a
references.bib, and often a sections/ or figures/ subfolder.
- Which project you are in is in the chat session title:
papyrus-<project>.
- Read and edit the files with your normal file tools. Do NOT try to
compile by shelling out to — the app owns compilation, and it
deliberately runs the compiler with shell escape DISABLED. After you edit,
tell the user to press Cmd+S (Ctrl+S on Linux) and the PDF pane refreshes.