[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJWA0098N4ASA4E70HX96F":3,"skill-same:01M6FJWA0098N4ASA4E70HX96F":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FJWA0098N4ASA4E70HX96F","paper-compile",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-compile\u002FSKILL.md",[],[18,19,20],"compile","paper","paper compile","2026-11-10 10:12:30",false,"# Paper Compile: LaTeX to Submission-Ready PDF\n\nCompile the LaTeX paper and fix any issues: **$ARGUMENTS**\n\n## Constants\n\n- **COMPILER = `latexmk`** — LaTeX build tool. Handles multi-pass compilation automatically.\n- **ENGINE = `pdflatex`** — LaTeX engine. Options: `pdflatex` (default), `xelatex` (for CJK\u002Fcustom fonts), `lualatex`.\n- **MAX_COMPILE_ATTEMPTS = 3** — Maximum attempts to fix errors and recompile.\n- **PAPER_DIR = `paper\u002F`** — Directory containing LaTeX source files.\n- **MAX_PAGES** — Main body page limit (to end of Conclusion, excluding references & appendix). ICLR=9, NeurIPS=9, ICML=8.\n\n## Workflow\n\n### Step 1: Verify Prerequisites\n\nCheck that the compilation environment is ready:\n\n```bash\n# Check LaTeX installation\nwhich pdflatex && which latexmk && which bibtex\n\n# If not installed, provide instructions:\n# macOS: brew install --cask mactex-no-gui\n# Ubuntu: sudo apt-get install texlive-full\n# Server: conda install -c conda-forge texlive-core\n```\n\nVerify all required files exist:\n\n```bash\n# Must exist\nls $PAPER_DIR\u002Fmain.tex\n\n# Should exist\nls $PAPER_DIR\u002Freferences.bib\nls $PAPER_DIR\u002Fsections\u002F*.tex\nls $PAPER_DIR\u002Ffigures\u002F*.pdf 2>\u002Fdev\u002Fnull || ls $PAPER_DIR\u002Ffigures\u002F*.png 2>\u002Fdev\u002Fnull\n```\n\n### Step 2: First Compilation Attempt\n\n```bash\ncd $PAPER_DIR\n\n# Clean previous build artifacts\nlatexmk -C\n\n# Full compilation (pdflatex + bibtex + pdflatex × 2)\nlatexmk -pdf -interaction=nonstopmode -halt-on-error main.tex 2>&1 | tee compile.log\n```\n\n### Step 3: Error Diagnosis and Auto-Fix\n\nIf compilation fails, read `compile.log` and fix common errors:\n\n**Missing packages:**\n```\n! LaTeX Error: File `somepackage.sty' not found.\n```\n→ Install via `tlmgr install somepackage` or remove the `\\usepackage` if unused.\n\n**Undefined references:**\n```\nLaTeX Warning: Reference `fig:xyz' on page 3 undefined\n```\n→ Check `\\label{fig:xyz}` exists in the correct figure environment.\n\n**Missing figures:**\n```\n! LaTeX Error: File `figures\u002Ffig1.pdf' not found.\n```\n→ Check if the file exists with a different extension (.png vs .pdf). Update the `\\includegraphics` path.\n\n**Citation undefined:**\n```\nLaTeX Warning: Citation `smith2024' undefined\n```\n→ Add the missing entry to `references.bib` or fix the citation key.\n\n**`[VERIFY]` markers in text:**\n→ Search for `[VERIFY]` markers left by `\u002Fpaper-write`. These indicate unverified citations or facts. Search for the correct information or flag to the user.\n\n**Overfull hbox:**\n```\nOverfull \\hbox (12.5pt too wide) in paragraph at lines 42--45\n```\n→ Minor: usually ignorable. If severe (>20pt), rephrase the text or adjust figure width.\n\n**BibTeX errors:**\n```\nI was expecting a `,' or a `}'---line 15 of references.bib\n```\n→ Fix BibTeX syntax (missing comma, unmatched braces, special characters in title).\n\n**`\\crefname` undefined for custom theorem types:**\n→ Ensure `\\crefname{assumption}{Assumption}{Assumptions}` and similar are in the preamble after `\\newtheorem{assumption}`.\n\n### Step 4: Iterative Fix Loop\n\n```\nfor attempt in 1..MAX_COMPILE_ATTEMPTS:\n    compile()\n    if success:\n        break\n    parse_errors()\n    auto_fix()\n```\n\nFor each error:\n1. Read the error message from `compile.log`\n2. Locate the source file and line number\n3. Apply the fix\n4. Recompile\n\n### Step 5: Post-Compilation Checks\n\nAfter successful compilation, verify the output:\n\n```bash\n# Check PDF exists and has content\nls -la main.pdf\n# Check page count\npdfinfo main.pdf | grep Pages\n\n# macOS: open for visual inspection\n# open main.pdf\n```\n\n**Automated checks:**\n\n- [ ] PDF file exists and is > 100KB (not empty\u002Fcorrupt)\n- [ ] Total page count is reasonable (MAX_PAGES + appendix + references)\n- [ ] No \"??\" in the PDF (undefined references — grep the log)\n- [ ] No \"[?]\" in the PDF (undefined citations — grep the log)\n- [ ] Figures are rendered (not missing image placeholders)\n\n```bash\n# Check for undefined references\ngrep -c \"LaTeX Warning.*undefined\" compile.log\n\n# Check for missing citations\ngrep -c \"Citation.*undefined\" compile.log\n```\n\n### Step 6: Page Count Verification\n\n**CRITICAL**: Verify main body fits within MAX_PAGES.\n\nMain body = first page through end of Conclusion section (not necessarily §5 — could be §6, §7, or §8 depending on structure).\nReferences and appendix are NOT counted.\n\n**Precise check using `pdftotext`:**\n```bash\n# Extract text and find where Conclusion ends vs References begin\npdftotext main.pdf - | python3 -c \"\nimport sys\ntext = sys.stdin.read()\npages = text.split('\\f')\nfor i, page in enumerate(pages):\n    if 'Ethics Statement' in page or 'Reproducibility' in page:\n        print(f'Conclusion ends on page {i+1}')\n    if any(w in page for w in ['References', 'Bibliography']):\n        lines = [l for l in page.split('\\n') if l.strip()]\n        for l in lines[:3]:\n            if 'References' in l or 'Bibliography' in l:\n                print(f'References start on page {i+1}')\n                break\n\"\n```\n\nIf Conclusion ends mid-page and References start on the same page, the main body is that page number (e.g., if both are on page 9, main body = ~8.5 pages, which is fine for a 9-page limit since it leaves room for the References header).\n\nIf over limit:\n- Identify which sections are longest\n- Suggest specific cuts (move proofs to appendix, compress tables, tighten writing)\n- Report: \"Main body is X pages (limit: MAX_PAGES). Suggestion: move [specific content] to appendix.\"\n\n### Step 6.5: Stale File Detection\n\nCheck for orphaned section files not referenced by `main.tex`:\n\n```bash\n# Find all .tex files in sections\u002F and check which are \\input'ed by main.tex\nfor f in paper\u002Fsections\u002F*.tex; do\n    base=$(basename \"$f\")\n    if ! grep -q \"$base\" paper\u002Fmain.tex; then\n        echo \"WARNING: $f is not referenced by main.tex — consider removing\"\n    fi\ndone\n```\n\nThis prevents confusion from leftover files when section structure changes (e.g., old `5_conclusion.tex` left behind after restructuring to 7 sections).\n\n### Step 7: Submission Readiness\n\nFor conference submission, additional checks:\n\n- [ ] **Anonymous**: no author names, affiliations, or self-citations that reveal identity\n- [ ] **Page limit**: main body within MAX_PAGES (to end of Conclusion)\n- [ ] **Font embedding**: all fonts embedded in PDF\n  ```bash\n  pdffonts main.pdf | grep -v \"yes\"  # should return nothing (or only header)\n  ```\n- [ ] **No supplementary mixed in**: appendix clearly after `\\newpage\\appendix`\n- [ ] **File size**: reasonable (\u003C 50MB for most venues, \u003C 10MB preferred)\n- [ ] **No `[VERIFY]` markers**: search the PDF text for leftover markers\n\n### Step 8: Output Summary\n\n```markdown\n## Compilation Report\n\n- **Status**: SUCCESS \u002F FAILED\n- **PDF**: paper\u002Fmain.pdf\n- **Pages**: X (main body to Conclusion) + Y (references) + Z (appendix)\n- **Within page limit**: YES\u002FNO (MAX_PAGES = N)\n- **Errors fixed**: [list of auto-fixed issues]\n- **Warnings remaining**: [list of non-critical warnings]\n- **Undefined references**: 0\n- **Undefined citations**: 0\n\n### Next Steps\n- [ ] Visual inspection of PDF\n- [ ] Run `\u002Fpaper-write` to fix any content issues\n- [ ] Submit to [venue] via OpenReview \u002F CMT \u002F HotCRP\n```\n\n## Key Rules\n\n- **Never delete the user's source files** — only modify to fix errors\n- **Keep compile.log** — useful for debugging\n- **Don't suppress warnings** — report them, let the user decide\n- **If LaTeX is not installed**, provide clear installation instructions rather than failing silently\n- **Font embedding is critical** — some venues reject PDFs with non-embedded fonts\n- **Page count = main body to Conclusion** — this is the metric that matters for submission\n\n## Common Venue Requirements\n\n| Venue | Style File | Citation | Page Limit (main body) | Submission |\n|-------|-----------|----------|------------------------|------------|\n| ICLR 2026 | `iclr2026_conference.sty` | `natbib` (`\\citep`\u002F`\\citet`) | 9 pages (to Conclusion end) | OpenReview |\n| NeurIPS 2025 | `neurips_2025.sty` | `natbib` (`\\citep`\u002F`\\citet`) | 9 pages (to Conclusion end) | OpenReview |\n| ICML 2025 | `icml2025.sty` | `natbib` (`\\citep`\u002F`\\citet`) | 8 pages (to Conclusion end) | OpenReview |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-compile",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill paper-compile",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill paper-compile",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill paper-compile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-compile\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]