본문으로 건너뛰기
cccskills
무료GitHub에 공개

latex-rescue

Diagnose and repair LaTeX build failures in local projects or supplied logs. Make minimal source fixes, preserve scientific content and reference keys, and report actual build evidence and unresolved errors.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Purpose

Repair the requested project with the smallest change that addresses the actual failure. Compilation success does not establish mathematical correctness.

Establish the failing build

  • For a pasted error, give a diagnosis using the supplied context. Request source or logs only when they are needed to distinguish plausible fixes; a project directory is not required for a useful diagnosis.
  • For a local project, identify its root document from the build command, configuration, magic comments, and \documentclass. A file named main.tex is a candidate, not proof that it is the root. Resolve ambiguous roots before editing.
  • Respect the engine, auxiliary/output directories, bibliography backend, and any custom build steps. fontspec requires XeLaTeX or LuaLaTeX. Check biblatex's backend option rather than assuming Biber in every project.
  • Reproduce the failure with the existing build command where available. Retain exit codes and the final engine/backend logs. A stale PDF is not build evidence. Missing tools or project files mean compilation remains unverified.

For manual builds, use the actual root and engine, for example:

pdflatex -no-shell-escape -interaction=nonstopmode -file-line-error main.tex

Use the shell's own exit-status handling when capturing output. Bash pipelines need set -o pipefail; do not assume Bash syntax works in PowerShell. Do not enable shell escape merely to silence an error; follow the project's actual requirements and the user's execution permissions.

Diagnose and repair

Read the first causal error, its source context, and subsequent diagnostics. File-line diagnostics may appear as file.tex:line: rather than starting with !. Undefined references and overfull boxes are generally warnings, not syntax failures.

Consult only the relevant resources:

  • Error catalog: known typos, missing packages, encoding, references, and environment errors.
  • Package conflicts: option clashes or competing definitions; preserve the official template's package choices.
  • Debug workflow: cascading errors and failures that remain after an initial contextual fix.

Check whether an apparently misspelled command or environment is user-defined before replacing it. Inspect balanced argument structure rather than counting all braces or dollar signs across comments, escaped characters, and verbatim. Prefer the causal fix over patching every downstream diagnostic.

Preserve equation meaning, table cells, citation and label keys, bibliography records, file paths, metadata, comments, and literal/code environments. Syntax repairs inside an equation are possible when their meaning is unambiguous; flag alternative mathematical interpretations instead of choosing one to compile. Never delete or disable content, invent a missing reference, or edit an official .sty, .cls, or .bst file to make the build pass.

Use a temporary copy for diagnostic isolation. Keep a reviewable source diff so an unsuccessful edit can be reverted without discarding the author's other work.

Verify and report

Rebuild after a meaningful repair batch. Prefer the configured latexmk mode when available; otherwise run the selected engine, required BibTeX/Biber step after auxiliary files exist, and further engine passes to settle references. Do not invoke a bibliography backend on projects that do not use one.

For a conventional root document without custom build steps, the bundled build checker records fresh-output evidence across engine/backend passes. Run scripts/check_build.py with the actual root, selected engine/backend, and a new --output directory. Preserve configured build systems for projects beyond that helper's scope. Its default job name follows the root file. Use --until-stable for bounded auxiliary settling and --require-resolved when unresolved references must fail the check; these flags do not decide missing reference targets for the author. The report retains recorder-based local input fingerprints and identifies the failed engine/backend step. These observations do not freeze project inputs or cover every bibliography/system resource; inspect the guide's provenance limits. When local backend resources need consistency checks, select them explicitly with repeated --watch-input options as described in that guide; selection does not establish which resources the backend actually read.

Read the final logs and inspect the resulting PDF when rendering tools are available. Report build failure separately from unresolved references, duplicate labels, and layout warnings. If a change introduces regressions, revert that change; if the same failure repeats, change the diagnosis. After three repair attempts without progress, report the blocker and the evidence needed to proceed.

Deliver the changed files and concise reasons, engine/backend/build command, observed exit result, log/PDF locations, visual-check status, remaining warnings, and unresolved author decisions. For Overleaf-only material, distinguish a proposed repair from one verified through a fresh Overleaf or local build.

Use latex-polish or latex-fmt only if the user also needs prose editing or a format conversion and the corresponding skill is available.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

<What it does, one line>. Trigger phrases: <phrases>.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

Use this skill whenever the user wants to create or improve a presentation for an academic context — conference papers, seminar talks, thesis defenses, grant briefings, lab meetings, invited lectures, or any presentation where the audience will evaluate reasoning and evidence. Triggers include: 'conference talk', 'seminar slides', 'thesis defense', 'research presentation', 'academic deck', 'academic presentation'. Also triggers when the user asks to 'make slides' in combination with academic content (e.g., 'make slides for my paper on X', 'create a presentation for my dissertation defense', 'build a deck for my grant proposal'). This skill governs CONTENT and STRUCTURE decisions. For the technical work of creating or editing the .pptx file itself, also read the pptx SKILL.md.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

adapt

무료

Shortest English alias for web-adapt / universal-web-adaptation. Use this when adapting an unfamiliar public website generically before creating any site-specific rules.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

Use this skill to audit CLI adapter projects (like opencli) for missing output fields, then batch-generate fixes and submit PRs. Turns AI agents into adapter quality reviewers.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

ads

무료

Operate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

Audit Amazon Ads profiles, regions, Sponsored Products, Sponsored Brands, Sponsored Display, DSP, portfolios, targeting, search terms, retail readiness, creative, budgets, ACOS, TACOS, reporting, and policy. Use for Amazon Ads, sponsored ads, Amazon PPC, ACOS, TACOS, ASIN advertising, Amazon DSP, or retail-media optimization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabrielmoreira/agent-skills-mirror192026년 10월 23일 업데이트

gabrielmoreira의 스킬 모두 보기

이 스킬의 문제 신고