repair-table

repair-table is a command for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (364 once invoked), scanned A, original, MIT.

A PaperFit command for repairing a specified table or the main table problems in a LaTeX paper. It focuses on making tables readable and structurally sound rather than merely shrinking them.

In plain words
What is it for?
Use it to fix a named table or general table issues, adjust column formats and spacing, and choose a more suitable table layout when needed.
Why use it?
It addresses cramped tables, overflow, unbalanced columns, and related layout problems through a repair-and-check cycle. The result is recompiled and visually verified.

Command for Claude Code

Part of the paperfit plugin — 8 skills, 9 commands, 6 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openraiser/paperfit/repair-table
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/PaperFit

Made for: Claude Code.

Or install paperfit, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 6 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repair-table

README.md
[![agentmods](https://agentmods.dev/badge/commands/openraiser/paperfit/repair-table.svg)](https://agentmods.dev/commands/openraiser/paperfit/repair-table)
Your own site
<a href="https://agentmods.dev/commands/openraiser/paperfit/repair-table"><img src="https://agentmods.dev/badge/commands/openraiser/paperfit/repair-table.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00364
Opus 5 $0.00000 $0.00182
Sonnet 5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00036

Measured 5d ago against content hash f12a84e21210, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

repair-table scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/repair-table.md · 38 lines

What it actually says

/repair-table — 修复表格

作用: 针对指定表格或当前论文中的表格问题执行修复闭环。它是专家快捷入口;普通自然语言如“修 Table 2 太挤的问题”也应能触发同类任务。

用户入口说明:

  • 用户只需要描述哪张表有问题,或直接说明“修表格”。
  • 不要要求用户手动执行 paperfit rendercompile.sh 或其它内部命令。
  • 表格修复必须以视觉可读性和结构完整性为主,而不是靠暴力缩放过关。

工具调用约定

验证阶段在论文根目录使用 paperfit run scripts/compile.sh / paperfit render,勿假设项目内存在包级 scripts/

用法

/repair-table

也可以由自然语言触发,例如:

用 PaperFit 修复这篇论文的表格问题
修一下 Table 2,当前太挤而且列宽不平衡

执行流程

  1. 定位指定表格或自动识别主要表格问题
  2. 分析表格溢出、一致性、列宽和可读性问题
  3. 重构列格式、调整列间距、必要时改用更合适的表格布局策略
  4. 重新编译并回到视觉验证

调度

  • 代码外科医生:agents/code-surgeon-agent.md
  • 技能:skills/overflow-repair/skills/consistency-polisher/
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 38 lines · 0 tokens per session scan A f12a84e21210

Subscribe to this mod's changes

repair-table is a command published in the GitHub repository OpenRaiser/PaperFit (331 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 364 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.