beamer-check
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "beamer-check":https://skillpi.com/zh/skills/deepskill-3e08246195760be374db188e87ec9f5447b3586afdc88f8de0df473cd9d54242。安装前核对上游来源和版本:https://github.com/aspi6246/Claude-Code-Skills-for-Academics。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
检查并修复 Beamer 幻灯片中的编译错误、布局问题和视觉问题。当用户说“检查我的幻灯片”、“修复我的幻灯片”、“幻灯片无法编译”、“文字超出页面”或“幻灯片显示异常”,或在生成 Beamer 幻灯片后进行交付前验证时使用;也在提到溢出框、内容重叠、图片损坏或任何 Beamer 格式问题时触发。
介绍来源: third_party · aspi6246 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: beamer-check
description: >
Audit and fix Beamer slide decks for compilation errors, layout problems,
and visual issues. Use this skill whenever the user says "check my slides",
"fix my slides", "the slides don't compile", "text is running off the page",
"slides look wrong", or after generating a Beamer deck to verify it before
delivering. Also use when the user mentions overfull boxes, overlapping
content, broken images, or any Beamer formatting issue.Beamer Slide Deck Audit and Fix
Overview
This skill implements a compile → inspect → fix → verify loop for Beamer slide decks. The goal is to catch and fix all issues before the user has to open the PDF themselves.
Run the full audit protocol below. Do not skip the visual inspection phase — compilation warnings alone do not catch all layout problems.
Phase 1: Automated Compilation Check
Run the diagnostic script:
python {baseDir}/scripts/beamer_check.py <path-to-tex-file> --output-dir <work-dir>/beamer-check-output
This will:
- Compile the
.texfile twice with pdfLaTeX - Parse the log for errors, warnings, overfull/underfull boxes, and missing files
- Render every slide to a PNG image for visual inspection
- Write a
diagnostics.jsonsummary
Read the script output and the diagnostics.json file. Categorise every
issue found:
- Compilation errors — the PDF was not produced or is incomplete
- Missing files — images, packages, or fonts that could not be found
- Overfull hbox — content wider than the text area (text running off the right edge)
- Overfull vbox — content taller than the slide area (text running off the bottom)
- Warnings — package conflicts, deprecated commands, missing references
Phase 2: Visual Inspection
This is the most important phase. Many layout problems produce no warnings at all.
Open and examine EVERY rendered slide image in
beamer-check-output/slides/. For each slide, check for:
Text issues
- Text running off the right edge of the slide
- Text running off the bottom of the slide
- Text overlapping with other elements (headers, footers, images)
- Font size too small to read (below
\footnotesizeon a 16:9 slide) - Orphaned words or lines that look awkward
- Verbatim/code blocks that exceed the text width
Layout issues
- Itemize/enumerate lists that overflow the frame
- Tables wider than the slide
- Columns that are misaligned or overlapping
- Excessive white space on one side, crowded on the other
- Content obscured by the Beamer theme elements (navigation bar, footer)
Image issues
- Missing images (blank spaces or error markers)
- Images that are distorted (wrong aspect ratio)
- Images that are too small to be useful
- Images that overflow the frame boundary
Structure issues
- Empty slides (no content rendered)
- Duplicate slide titles
- Table of contents that doesn't match actual section structure
- Frame titles that are cut off
Phase 3: Fix
For every issue identified in Phases 1 and 2, apply the appropriate fix. Ask the user before editing their file.
Common fixes reference
Text running off the right edge (overfull hbox):
% Option 1: Allow slightly loose spacing
\begin{frame}[fragile]{Title}
\sloppy
Content here...
\end{frame}
% Option 2: Reduce font size for that frame
\begin{frame}{Title}
\small % or \footnotesize for more reduction
Content here...
\end{frame}
% Option 3: Break long lines manually
Very long text that needs to be broken\\
across multiple lines.
% Option 4: For URLs
\url{https://very-long-url.com/that/overflows}
% Replace with:
{\small\url{https://very-long-url.com/that/overflows}}
Content overflowing the bottom (overfull vbox):
% Option 1: Reduce font size
\begin{frame}{Title}
\small
Too much content...
\end{frame}
% Option 2: Use allowframebreaks to auto-split
\begin{frame}[allowframebreaks]{Title}
Lots of content that will auto-split across slides...
\end{frame}
% Option 3: Shrink the whole frame (use sparingly)
\begin{frame}[shrink=10]{Title}
Content...
\end{frame}
% Option 4 (best): Split into two slides manually
% This is usually the right answer for teaching slides
Verbatim/code blocks overflowing:
% Use fragile option on the frame
\begin{frame}[fragile]{Title}
\begin{verbatim}
code here
\end{verbatim}
\end{frame}
% For long code, reduce font size
\begin{frame}[fragile]{Title}
\begin{verbatim}
\small
code here
\end{verbatim}
\end{frame}
Tables too wide:
% Option 1: Use \resizebox
\resizebox{\textwidth}{!}{%
\begin{tabular}{lccccc}
...
\end{tabular}
}
% Option 2: Use \small or \footnotesize
{\footnotesize
\begin{tabular}{lccccc}
...
\end{tabular}
}
% Option 3: Use tabularx for automatic column width
\usepackage{tabularx}
\begin{tabularx}{\textwidth}{lXXX}
...
\end{tabularx}
Missing images:
% Add a fallback so compilation doesn't fail
\IfFileExists{image.png}{%
\includegraphics[width=0.8\textwidth]{image.png}
}{%
\textit{[Image not found: image.png]}
}
Column alignment issues:
% Make sure column widths sum to \textwidth
\begin{columns}[T] % T = top-aligned
\begin{column}{0.48\textwidth}
Left content
\end{column}
\begin{column}{0.48\textwidth}
Right content
\end{column}
\end{columns}
% Leave ~0.04\textwidth for the gap between columns
Phase 4: Verify
After applying fixes:
-
Run the diagnostic script again on the modified file:
python {baseDir}/scripts/beamer_check.py <path-to-tex-file> --output-dir <work-dir>/beamer-check-verify -
Confirm that:
- All previous compilation errors are resolved
- No new errors or warnings were introduced
- Overfull box count has decreased (ideally to zero)
-
Visually inspect the re-rendered slides again, focusing on the slides that were modified. Confirm the fixes worked and didn't introduce new layout problems.
-
If new issues are found, repeat Phases 3-4 until clean.
Phase 5: Report
Present a summary to the user:
Beamer Audit Complete
=====================
Slides checked: [N]
Issues found: [N]
Issues fixed: [N]
Remaining issues: [N] (with explanation if any)
Changes made:
- Slide 3: Reduced font size to \small (text overflow)
- Slide 7: Split into two slides (content exceeded frame)
- Slide 12: Added [fragile] option (verbatim block)
- ...
Important notes
- Always ask the user before editing their .tex file
- Prefer splitting content across slides over shrinking text — readability matters more than slide count
- The
[shrink]option is a last resort — it makes everything smaller, which is usually worse than splitting [allowframebreaks]is acceptable for reference/bibliography slides but looks bad for regular content — prefer manual splits- When in doubt, err on the side of more slides with less content
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对 LaTeX Beamer 用户的刚需场景,解决编译错误和布局溢出的实际问题
- 提供完整的审计-修复-验证闭环流程,显著提升幻灯片交付质量
亮点
- 触发词覆盖全面,包括多种口语化表达和具体问题描述
- 边界清晰,不易与其他文档处理技能混淆
亮点
- 五阶段流程设计合理,步骤清晰且有明确出口条件
- 包含丰富的代码示例和最佳实践建议
待提升项
-
外部脚本依赖未验证 原报告严重程度:重大
执行依赖 {baseDir}/scripts/beamer_check.py 脚本,但未说明该脚本是否存在或如何处理其缺失情况
改进建议:增加脚本存在性检查逻辑,若缺失则提示用户提供或 fallback 到基础 pdflatex 编译
-
缺少显式 When to Use 章节 原报告严重程度:轻微
虽然 frontmatter description 已涵盖使用场景,但正文缺少独立的 When to Use 章节
改进建议:在 Overview 后添加显式 When to Use 小节以提升可读性
亮点
- 对不可逆操作(编辑 .tex 文件)有用户确认机制
- 覆盖了常见异常场景的修复策略
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- very-long-url.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。