| name | overleaf-section-workflow |
| description | Bilingual section-by-section workflow for Overleaf physics-paper drafts: Korean draft, user iteration, Opus-direct English LaTeX translation, out-of-tree build, and sync hygiene. Use when starting, iterating, translating, or finalizing an Overleaf paper section; merging Korean drafts into main.tex; verifying citations; enforcing no em/en dashes, no unsupported novelty claims, and no forward references in background sections; or building JCAP/PRD-style sections with figures and BibTeX.
|
Overleaf section workflow
A disciplined, section-by-section workflow for drafting a physics paper that lives on Overleaf, with a Korean intermediate draft and Opus-direct English translation. Designed to enforce paper-quality discipline learned from real JCAP-style drafting sessions.
When to use
Use this skill whenever the user:
- Starts a new section of a paper drafted on Overleaf
- Iterates a Korean draft toward an English LaTeX section
- Translates a confirmed Korean draft directly into a
.tex file
- Sets up out-of-tree builds in a
*_build directory
- Asks for "section-by-section paper writing", "ํ๊ธ ์ด์ ์์ด๋ก ๋ณํฉ", "Overleaf ์น์
์์ฑ", or similar
Do not use this skill for one-shot full-paper writes; this workflow is per-section.
Three-directory contract
The workflow assumes the user maintains three sibling directories under ~/zbin/OverLeaf/ (or wherever the project lives):
| Directory | Role |
|---|
~/zbin/OverLeaf/<PROJECT>/ | Sync folder mirrored to Overleaf via the overleap skill. .tex, ref.bib, figs/ live here. Never build here โ build artefacts would sync back to Overleaf. |
~/zbin/OverLeaf/<PROJECT>_draft/ | Korean drafts as section<N>_ko.md (one file per section). Plots embedded as markdown images. Iterated with the user before translation. |
~/zbin/OverLeaf/<PROJECT>_build/ | Out-of-tree build. Contains build_<jobname>.sh and all build artefacts (.aux, .log, .pdf, .bbl). Style files (.bst, .sty) and ref.bib are copied here at build time. |
If any of these directories does not exist, surface the gap before proceeding.
Workflow loop (per section)
- Sync the Overleaf project via
overleap if not already mirrored.
- Draft the section in Korean at
<PROJECT>_draft/section<N>_ko.md:
- Use markdown headings (
## ยงX.Y), markdown bold paragraph leads (**X.**).
- Math inline as
$...$, display as $$...$$ with explicit \tag{X.Y} for cross-reference.
- Embed plots as markdown images:
.
- Use
\cite{key} exactly as it will appear in LaTeX (preserves verbatim).
- Build up narrative as: motivation โ introduce families โ unify โ identify limitation โ contribution (see
references/06_section_narrative.md).
- Iterate with the user. Specifically watch for:
- Em-dashes (
โ, U+2014) or en-dashes (โ, U+2013) โ both are AI-style markers; replace with periods, commas, parens.
- Forward references (
ยง\ref{...}, "๋ณธ ์ฐ๊ตฌ์ ยง5 ์์ ๋ค๋ฃฌ๋ค") in background sections.
- Absolute language ("ํ์ค์ด๋ค", "ํ์คํ๋ค") that should be softened.
- Novelty claims without hedging.
- Citations whose attribution doesn't match the cited paper's actual content.
- Plot layout issues (legend on top of curves, xlim/ylim wasting empty space).
- User confirms the Korean draft is paper-grade.
- Translate Opus-direct into English LaTeX at
<PROJECT>/<jobname>.tex. NEVER use a Sonnet subagent for translation in this skill โ the user has explicitly required Opus-only. Conversion rules in references/05_translation_rules.md.
- Copy figure PDFs from
~/Documents/Project/Research/.../outputs/<topic>/plots/ to <PROJECT>/figs/.
- Verify the build via
bash <PROJECT>_build/build_<jobname>.sh. Build must produce zero undefined warnings.
- Commit-triage the working tree at session boundaries (use the
commit-triage skill).
Core rules (non-negotiable)
These come from real session pain points. Do not skip.
- Build hygiene: Never run
pdflatex, bibtex, or any TeX command inside the Overleaf sync folder. Always build in <PROJECT>_build/ via the supplied build_<jobname>.sh. If the user sees *.aux, *.log, *.pdf inside the sync folder, treat that as an emergency and clean it up.
- No em-dashes or en-dashes in any draft or final LaTeX. They are AI-style markers; verify after every edit with
grep -cP "[\x{2013}\x{2014}]" <file> (must return 0).
- No forward references in background sections (ยงBackground / ยงSetup). Subsequent sections may forward-reference earlier ones; earlier sections must stand alone.
- No "๋ณธ ์ฐ๊ตฌ" preview outside design statements. "๋ณธ ์ฐ๊ตฌ๋ GBP ๋ฅผ ์ฑํํ๋ค" is fine. "๋ณธ ์ฐ๊ตฌ์ ยง5 ์์ ๋ค๋ฃจ๋ DeCLA" is not.
- Citation must support the actual claim, not just be metadata-correct. After bibtex generation, verify that the cited paper says what the body claims it says.
- Translation is Opus-only. Do not delegate to Sonnet subagents in this skill, even when normal lab convention says to delegate translation. The user explicitly forbids this because translation goes directly into the paper.
- Plots use scienceplots
["science", "nature"] with dpi=300, no title, no font override, no no-latex flag. Save both PNG and PDF: PNG into the Korean draft, PDF into <PROJECT>/figs/. Legend placement uses bbox_to_anchor=(1.02, 0.5) with loc="center left" whenever data would overlap the legend.
Resources
references/00_workflow_overview.md โ sequential workflow steps with checkpoints.
references/01_writing_style.md โ Korean / English style rules (em-dash ban, forward-ref ban, hedged claims, paper-grade tone).
references/02_citation_verification.md โ three-source verification (InspireHEP / CrossRef / Scholar) and content-vs-metadata distinction.
references/03_plotting_conventions.md โ scienceplots conventions, legend placement, xlim/ylim tuning, plot-script directory layout.
references/04_build_hygiene.md โ out-of-tree build pattern, build.sh template, what to do when sync folder is contaminated.
references/05_translation_rules.md โ Korean markdown โ English LaTeX conversion rules (with worked examples).
references/06_section_narrative.md โ narrative structure (motivation โ introduce โ unify โ limitation โ contribution) and how to slot a contribution claim safely.
references/07_lessons_log.md โ incidents and lessons from prior sessions, grouped by category.
templates/build_template.sh โ copy-and-rename build script (set JOBNAME).
Companion skills
The workflow orchestrates several existing skills. Invoke them in turn:
| Stage | Skill |
|---|
| Sync | overleap |
| Plot generation | scienceplot-py (or write inline if scope is small) |
| Plot regeneration / legend fix | direct Bash + uv run |
| Reference search | reference-search (broad lit) |
| Novelty verification | deep-research in lit-review / fact-check mode |
| BibTeX generation | bibtex-gen |
| Commit | commit-triage |
Do not invoke these companions silently โ surface what you are doing so the user can intervene.