space-util-fixer

space-util-fixer is a skill for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (3,351 once invoked), scanned A, original, MIT.

A LaTeX layout helper for improving how content fills pages and columns. It addresses issues such as isolated lines, large blank areas, incorrect page counts, and uneven columns in two-column papers.

In plain words
What is it for?
Use it to balance page and column space, meet a target page count, reduce isolated lines, and correct large gaps after compiling and reviewing the PDF.
Why use it?
It reduces awkward page breaks and wasted space that make a paper look unfinished or fail a required page limit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it to balance page and column space, meet a target page count, reduce isolated lines, and correct large gaps after compiling and reviewing the PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openraiser/paperfit/space-util-fixer
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.

Any agent
npx skills add OpenRaiser/PaperFit --skill space-util-fixer
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.

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 space-util-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/openraiser/paperfit/space-util-fixer.svg)](https://agentmods.dev/skills/openraiser/paperfit/space-util-fixer)
Your own site
<a href="https://agentmods.dev/skills/openraiser/paperfit/space-util-fixer"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/space-util-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00000 $0.03351
Opus 5 $0.00000 $0.01675
Sonnet 5 $0.00000 $0.00670
Haiku 4.5 $0.00000 $0.00335

Measured 8d ago against content hash 842866c1f0d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

space-util-fixer 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 8d 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.

skills/space-util-fixer/SKILL.md · 324 lines

How it starts

The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Space Utilization Fixer Skill

概述

本技能专门处理 Category A:空间利用缺陷,包括:

  • A1:孤行/寡行(Widow/Orphan Lines)
  • A2:末页大面积留白(Excessive Trailing Whitespace)
  • A3:页数预算违反(Page Budget Violation)
  • A4:双栏末页左右栏高度不齐(Unbalanced Column Heights)
  • A5:双栏页内列竖向空洞(栏内中段大块无图无表空白,常与 figure*/[H]/不当断页有关)

该技能由 code-surgeon-agentsemantic-polish-agent 调用,通过对段落级排版控制、浮动体调度和最小语义改写的组合运用,优化页面空间分配,使文档达到专业级的视觉均衡。

空间利用问题的修复常常需要多轮迭代,因为局部调整会影响全局分页。因此,每次修改后必须重新编译并审查页图。


适用场景

缺陷 ID 描述 优先级 是否允许语义修改
A1 孤行/寡行 High 是(最后手段)
A2 末页大面积留白 High 是(最后手段)
A3 页数预算违反 Critical 是(最后手段)
A4 双栏末页左右栏高度不齐 Medium
A5 双栏页内列竖向空洞(非末页、栏内大块无正文空白) High 视情况

输入规范

输入项 来源 说明
.tex 文件路径 项目上下文 需修改的源文件
排版侦探报告 layout-detective-agent 输出 包含 A 类缺陷的页码和描述
目标页数(若适用) 用户约束 A3 修复必须提供
模板类型 templates.yaml 或上下文 单栏/双栏

输出规范

{
  "skill": "space-util-fixer",
  "status": "success | partial | failed",
  "modified_files": ["main.tex"],
  "changes": [
    {
      "defect_id": "A1",
      "object": "第4页顶部孤行",
      "action": "在段落前添加 \\looseness=-1",
      "before_snippet": "The proposed method achieves...",
      "after_snippet": "{\\looseness=-1 The proposed method achieves...}"
    }
  ],
  "unresolved": []
}

修复策略

通用原则

  1. 先排版,后语义:优先使用 LaTeX 原生的排版控制命令,仅在无效时才考虑语义级改写。
  2. 局部修改,全局验证:改动一段可能影响后续多页分页,必须完整编译并检查全文档。
  3. 避免硬性分页:禁止滥用 \newpage\clearpage 来“凑页数”,这会破坏文档结构的自然性。

A1:孤行/寡行修复

问题特征

  • 段落最后一行单独出现在下一页顶部(孤行)。
  • 段落第一行单独留在上一页底部(寡行)。
  • 段落末尾仅含 1-3 个单词的短行(段尾小尾巴)。

修复策略(严格按优先级顺序尝试)

策略 1:段落级收紧 (\looseness=-1)

通过在段落前设置 \looseness=-1,指示 TeX 引擎尝试将段落收缩一行,从而消除孤行或小尾巴。

% 修改前
The proposed method achieves state-of-the-art performance on several
benchmarks, demonstrating the effectiveness of our approach.

% 修改后
{\looseness=-1 The proposed method achieves state-of-the-art performance on several
benchmarks, demonstrating the effectiveness of our approach.}

Read the full file on GitHub · 324 lines

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. 8d ago First seen · 324 lines · 0 tokens per session scan A 842866c1f0d0

Subscribe to this mod's changes

space-util-fixer is a skill published in the GitHub repository OpenRaiser/PaperFit (333 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,351 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.

Related

Other skills, from other repositories

academic-paper-to-chinese-insight-pdf

Turn an academic paper PDF into a high-quality Chinese insight report and export it as a polished Chinese PDF. Use when asked to read a paper, translate or summarize a paper into Chinese, extract the paper's core ideas, produce original insights/opinions, explain the paper in simpler language, or deliver a Chinese PDF…

davidtoby/agent-skills · 113 tokens

chinese-pdf-document-workflows

Class-level workflow for extracting, converting, editing, and producing polished Chinese PDFs and document reports from PDFs, papers, webpages, markdown, and video transcripts. Use when asked to create Chinese PDF reports, fix Chinese font/glyph rendering, summarize academic papers into Chinese insight reports…

davidtoby/agent-skills · 83 tokens

hive.pdf

Read, write, merge, split, rotate, watermark, encrypt, and OCR PDF files using Python (pypdf, pdfplumber, reportlab, pypdfium2) and command-line tools (poppler-utils, qpdf). Use when the user asks to extract text/tables/images from a PDF, create or modify a PDF, combine or split PDFs, OCR a scanned PDF…

aden-hive/hive · 98 tokens

paper-length-gate

Deterministic artifact-backed manuscript readiness gate for meta-paper-write. Validates the workspace LaTeX artifact before compilation while leaving final page-count enforcement to compilepdf.

opensquilla/opensquilla · 38 tokens

paper-plot-stub

Plot a results CSV (x, ybaseline, yours) as a two-line matplotlib chart and write a PDF. Demo-only.

opensquilla/opensquilla · 35 tokens

speech-to-text

Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio/video to text, generating subtitles, transcribing meetings, or processing spoken content.

calesthio/OpenMontage · 37 tokens