| name | scholar-latex-organizer |
| disable-model-invocation | true |
| description | Organize messy conference LaTeX template .zip files into clean Overleaf-ready structure. Extracts, analyzes, cleans up, and generates README with submission requirements. Triggers on "organize LaTeX template", "clean up template", "prepare Overleaf template", "ๆด็LaTeXๆจกๆฟ". |
| allowed-tools | ["Bash","Edit","Glob","Grep","Read","WebFetch","WebSearch","Write","request_user_input","update_plan"] |
| session-mode | none |
| version | 0.5.55 |
Plan tracking: codex ๆ TaskCreate/TaskUpdate/TodoWrite ไปปๅกๆฟใ่ฟๅบฆๆธ
ๅ็จ update_plan({ explanation?, plan: [{ step, status }] }) ็ปดๆค๏ผๆดไฝๆไบคๆญฅ้ชคๆฐ็ป๏ผstatus: pending | in_progress | completed๏ผ๏ผๆๅจ็ถๆๅง็ปๅจ session ๅทฅไปถไธญ๏ผไพ่ต/่ฎค้ข๏ผaddBlockedBy/owner๏ผๆฏๅทฅไปถๅญๆฎต๏ผไธๆฏๅทฅๅ
ทๅๆฐใ
Scholar LaTeX Organizer
Transform messy conference LaTeX template .zip files into clean, Overleaf-ready submission templates. Official templates often contain excessive examples and disorganized files โ this skill converts them into templates ready for writing.
Pre-load (before execution)
- Codebase docs: If
.workflow/codebase/ARCHITECTURE.md exists, read for project context
- Specs:
maestro load --type spec --category coding โ load coding conventions
- Wiki knowledge:
maestro search "academic writing research paper" --json โ top 5 entries as prior context
- All optional โ proceed without if unavailable
Architecture Overview
User: "Organize this LaTeX template"
|
v
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SKILL.md (Orchestrator) โ
โ Collect preferences โ Dispatch phases โ Track progress โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
โโโโโโโโโผโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
v v v v
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ P1 โโ P2 โโ P3 โ
โExtractโโ Cleanup โโ README & โ
โ & โโ & โโ Finalize โ
โAnalyzeโโ Organize โโ โ
โโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโ
โ โ โ
v v v
analysis clean output/
+ plan structure (Overleaf-ready)
Key Design Principles
- Analyze-then-confirm: First present findings, then execute after user approval.
- Preserve template integrity: Keep all .sty/.cls files unchanged โ only clean up .tex content.
- Section separation: Split monolithic main.tex into modular text/ files.
- Conference-aware: Detect document class and apply conference-specific configurations.
Interactive Preference Collection
Before dispatching to any phase, collect these preferences:
Questions to ask the user:
1. Template Source
"Where is the template .zip file? (path)"
โ templatePath
2. Conference Info
"Conference name or submission page URL (for extracting requirements)"
โ conferenceInfo
3. Output Directory
"Where should the organized template go? (default: ./output/)"
โ outputDir
4. Section Structure
Options: Standard (intro/related/method/experiments/conclusion) | Custom
โ sectionStructure
Store responses as organizerPreferences context for all phases.
Auto Mode Defaults
When workflowPreferences.autoYes === true:
- Use .zip file from cwd or recent downloads
- Standard section structure
- Output to ./output/
- Auto-detect conference from template
- Skip confirmation prompts
Execution Flow
COMPACT DIRECTIVE: Context compression MUST check update_plan phase status.
The phase currently marked in_progress is the active execution phase โ preserve its FULL content.
Only compress phases marked completed or pending.
update_plan Setup
LaTeX Template Organization:
- [ ] Phase 1: Extract & Analyze โ extract zip, identify files, diagnose issues
- [ ] Phase 2: Cleanup & Organize โ create structure, clean main.tex, copy assets
- [ ] Phase 3: README & Finalize โ generate README, verify compilation
Phase Sequence
Phase 1: Extract & Analyze
โโ Ref: phases/01-extract-analyze.md
โโ Input: templatePath, conferenceInfo
โโ Output: analysisResult (file inventory, main file, issues, conference type)
Phase 2: Cleanup & Organize
โโ Ref: phases/02-cleanup-organize.md
โโ Input: analysisResult, sectionStructure, outputDir
โโ Output: organized template in outputDir/
Phase 3: README & Finalize
โโ Ref: phases/03-readme-finalize.md
โโ Input: analysisResult, conferenceInfo, outputDir
โโ Output: README.md + final verification
Phase Reference Documents (read on-demand when phase executes):
Compact Rules:
- update_plan
in_progress โ preserve full content, do not compress
- update_plan
completed โ may compress to summary
- sentinel fallback โ phases marked with sentinel contain compact sentinel; if only sentinel remains, must immediately
Read() to recover
Core Rules
- Never modify .sty/.cls files: Style files are sacred โ copy as-is.
- Present plan before executing: Show cleanup plan and wait for user confirmation.
- Keep Overleaf-compatible: Empty directories need placeholder files (Overleaf auto-deletes empty dirs).
- Preserve compilation: The output must compile without errors using the detected compiler.
- Conference-specific configs: Apply correct anonymous/review mode settings per conference.
Common Conference Templates
| Conference | Document Class | Key Config |
|---|
| KDD (ACM) | acmart | nonacm option for anonymous submission |
| ACM Conferences | acmart | anonymous,review options |
| CVPR/ICCV | cvpr | Two-column, strict page limits |
| NeurIPS | neurips_20XX | Anonymous review |
| ICLR | iclr20XX_conference | Two-column |
| AAAI | aaaiXX | Two-column, 8 pages + refs |
Data Flow
Phase 1 โโanalysisResultโโโ Phase 2
Phase 1 โโanalysisResultโโโ Phase 3
Output structure:
outputDir/
โโโ main.tex (cleaned main file)
โโโ text/ (section files)
โ โโโ 01-introduction.tex
โ โโโ 02-related-work.tex
โ โโโ 03-method.tex
โ โโโ 04-experiments.tex
โ โโโ 05-conclusion.tex
โโโ figures/ (image files)
โโโ tables/ (table files + example)
โโโ styles/ (.sty/.cls files)
โโโ references.bib (bibliography)
โโโ README.md (usage guide)
Error Handling
| Error | Action |
|---|
| Zip extraction fails | Check file integrity, ask user to re-download |
| Main file not identifiable | List all .tex files, ask user to choose |
| Missing dependency (.sty/.cls) | Warn user, suggest CTAN download |
| Conference info unavailable | Fall back to template comments + documentclass detection |
| Compilation fails after cleanup | Revert to minimal cleanup, report what needs manual fix |
Related Skills
- scholar-writing: Phase 6 (Conference Formatting) uses organized templates
- scholar-publish: Uses templates for camera-ready preparation