chapter-compilation

chapter-compilation is a skill for Claude Code, Codex from sillyDaibo/reasflow-dev. It costs 24 tokens per session (534 once invoked), scanned A, original, MIT.

A workflow for compiling one LaTeX chapter separately from the rest of a paper. LaTeX is a system commonly used to write and typeset research papers.

In plain words
What is it for?
Use it to compile a selected chapter, such as a methods chapter, and check for local LaTeX regressions before handoff.
Why use it?
It lets you catch chapter-specific compilation errors without waiting for unrelated chapters to be complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is if [ -d ./.codex/reasflow-skills ]; then.

Good fit Use it to compile a selected chapter, such as a methods chapter, and check for local LaTeX regressions before handoff.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sillyDaibo/reasflow-dev
agentmods
npx agentmods add skills/sillydaibo/reasflow-dev/chapter-compilation

Made for: Claude Code, Codex.

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 chapter-compilation

README.md
[![agentmods](https://agentmods.dev/badge/skills/sillydaibo/reasflow-dev/chapter-compilation/github.svg)](https://agentmods.dev/skills/sillydaibo/reasflow-dev/chapter-compilation)
Your own site
<a href="https://agentmods.dev/skills/sillydaibo/reasflow-dev/chapter-compilation"><img src="https://agentmods.dev/badge/skills/sillydaibo/reasflow-dev/chapter-compilation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chapter-compilation

Your own site · 80×15
<a href="https://agentmods.dev/skills/sillydaibo/reasflow-dev/chapter-compilation"><img src="https://agentmods.dev/badge/skills/sillydaibo/reasflow-dev/chapter-compilation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 534 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.
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.00024 $0.00534
Opus 5.5 $0.00010 $0.00214
Sonnet 5.5 $0.00005 $0.00107
Haiku 4.5 $0.00002 $0.00053

Measured 1mo ago against content hash 6da82362071c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chapter-compilation 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/compile_chapter.py, scripts/compile-chapter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/reasflow/paper/chapter-compilation/SKILL.md · 81 lines

What it actually says

Installed Root

Resolve the installed reasflow-dev private skills root before running packaged scripts:

REASFLOW_PRIVATE_SKILLS_ROOT="${REASFLOW_PRIVATE_SKILLS_ROOT:-}"
if [ -z "$REASFLOW_PRIVATE_SKILLS_ROOT" ]; then
  if [ -d ./.codex/reasflow-skills ]; then
    REASFLOW_PRIVATE_SKILLS_ROOT="$(pwd)/.codex/reasflow-skills"
  elif [ -d "$HOME/.codex/reasflow-skills" ]; then
    REASFLOW_PRIVATE_SKILLS_ROOT="$HOME/.codex/reasflow-skills"
  else
    echo "reasflow private skills not found in ./.codex/reasflow-skills or $HOME/.codex/reasflow-skills" >&2
    exit 1
  fi
fi

Chapter Compilation

Overview

This skill restores the original paper-agent behavior: compile one chapter independently without waiting for unrelated chapters to be finished.

Installed Paths

Set:

SKILL_ROOT="$REASFLOW_PRIVATE_SKILLS_ROOT/paper/chapter-compilation"

Helper Commands

Wrapper:

bash "$SKILL_ROOT/scripts/compile-chapter.sh" paper/main.tex paper/method.tex

Direct Python:

python3 "$SKILL_ROOT/scripts/compile_chapter.py" \
  --project-dir paper \
  --main-file main.tex \
  --chapter method.tex

Python env fallback:

uv run python "$SKILL_ROOT/scripts/compile_chapter.py" \
  --project-dir paper \
  --main-file main.tex \
  --chapter method.tex

Output

The helper returns structured JSON with:

  • success
  • pdf_path
  • total_pages
  • preview_images
  • errors
  • warnings

What The Helper Does

  1. Extract preamble from main.tex.
  2. Generate _chapter_<name>.tex with only the target \input{...}.
  3. Compile via latexmk or manual engine plus BibTeX passes.
  4. Parse compiler output into structured errors and warnings.
  5. Render a small set of preview PNGs when local PDF tools are available.

Deliverables

  • isolated chapter compile status
  • preview image paths for visual inspection when available
  • explicit list of chapter-local errors to fix before handoff
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 81 lines · 24 tokens per session scan A 6da82362071c

Subscribe to this mod's changes

chapter-compilation is a skill published in the GitHub repository sillyDaibo/reasflow-dev (2 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 534 once invoked, about $0.0001 per session on Opus 5.5. 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-31.

Related

Other skills, from other repositories

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

pptx-posters

Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

nature-paper-trans

A workflow for translating selected pages or a complete English research-paper PDF into a simplified-Chinese, image-based PDF. bioRxiv is not mentioned in the provided details; the workflow applies to research-paper PDFs generally.

Yuan1z0825/nature-skills · 68 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

figures

Makes publication-quality plots from data with matplotlib, learning curves, scaling laws, benchmark and ablation comparisons, Pareto trade-offs, heatmaps and confusion matrices, sized for the page, vector, with uncertainty shown. Use whenever results are plotted, charted or visualized for a paper, report or answer, or…

synthetic-sciences/openscience · 99 tokens

paper-compile

A build workflow that turns LaTeX source files into a PDF and checks whether the paper compiles correctly. LaTeX is a text-based system commonly used for academic papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 53 tokens