From hypo-research
Check the structural quality of a LaTeX paper project. Use this whenever the user wants to lint, review, normalize, or auto-fix LaTeX structure issues: labels, refs, floats, citations, table environments, spacing, BibTeX fields, title case, or abbreviation expansion. Run the stats extractor first, let the script collect objective facts, then apply Agent judgment for abbreviation and title-case recommendations, and optionally patch auto-fixable issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hypo-research:hypo-lintThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
脚本负责事实提取,Agent 负责判断。先运行统计提取器得到结构 JSON,再根据规则输出检查报告;如果用户要求修复,则只自动修改明确可修复项。
脚本负责事实提取,Agent 负责判断。先运行统计提取器得到结构 JSON,再根据规则输出检查报告;如果用户要求修复,则只自动修改明确可修复项。
如果项目根目录存在 .hypo-research.toml,可直接读取 project.main_file、project.bib_files、lint.disabled_rules、lint.fix_rules 等默认值。
$ARGUMENTS
.bib 文件路径(可选)L01,L04,L07)uv run hypo-research lint --stats <path>
如果用户显式给了 .bib 文件:
uv run hypo-research lint --stats --bib <bib> <path>
多文件项目可直接从主文件或子文件启动:
uv run hypo-research lint --stats main.tex
uv run hypo-research lint --stats sections/intro.tex
uv run hypo-research lint --stats --project-dir ./paper main.tex
读取 JSON 中的 issues 数组,逐项报告 L01-L08、L11-L13 的客观违规项。
对 Agent 判断类规则做人工判断:
abbreviations 中 has_expansion=false 的条目,结合 context_before / context_after 判断首次出现是否缺全称展开。sections 标题,按 AP Style Title Case 给出修正建议。如果 fix=true:
\cref{old_label} / \ref{old_label} / \autoref{old_label}。输出最终报告:
| ID | 规则 | 自动修复 |
|---|---|---|
| L01 | 禁用 \ref / \autoref,必须用 \cref | ✅ |
| L02 | \cref 前必须有 ~(除非在句首) | ✅ |
| L03 | \cite 前必须有 ~(除非在句首) | ✅ |
| L04 | 浮动体 figure/table 必须带 [htbp] | ✅ |
| L05 | \label 必须在 \caption 之后 | ✅ |
| L06 | label 必须有规范前缀 fig: / tab: / sec: / eq: | ✅ |
| L07 | 禁用 tabular / tabularx,优先 tblr | ❌ 报告 |
| L08 | 未引用的 label / 未定义的 ref | ❌ 报告 |
| L09 | 缩写首次引用必须有全称展开 | ⚠️ 建议 |
| L10 | 标题 Title Case(AP Style) | ⚠️ 建议 |
| L11 | Fig. / Tab. / Eq. / et al. 后正确间距 | ✅ |
| L12 | BibTeX 必填字段缺失 | ❌ 报告 |
| L13 | 连续多空格 / 行尾空格 | ✅ |
uv run hypo-research lint --stats ... 的 JSON 输出结论,不要先凭感觉读全文。error。The lint skill supports automatic fixing of common issues.
uv run hypo-research lint --fix paper.tex
uv run hypo-research lint --fix main.tex
uv run hypo-research lint --fix --no-dry-run paper.tex
uv run hypo-research lint --fix --no-dry-run --backup paper.tex
uv run hypo-research lint --fix --rules L01,L04 paper.tex
| Rule | Fix |
|---|---|
| L01 | \ref → \cref |
| L02 | Insert ~ before \cite |
| L03 | Remove redundant prefix before \cref |
| L04 | Add [htbp] to float environments |
| L05 | Title case for section/caption titles |
| L06 | Delete orphan \label |
| L11 | \toprule / \midrule / \bottomrule → \hline in tblr |
| L13 | Insert ~ before \cref |
如果项目根目录存在 .hypo-research.toml,优先读取:
project.main_fileproject.bib_fileslint.disabled_ruleslint.fix_rulesProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub hypoxanthineovo/hypo-research --plugin hypo-research