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.
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitnpx agentmods add skills/morningstar202604/awesome-skillkit/tex-cleanerWrote 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.
[](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/tex-cleaner)<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/tex-cleaner"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/tex-cleaner/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.
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/tex-cleaner"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/tex-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00189 | $0.01926 |
| Opus 5.5 | $0.00076 | $0.00770 |
| Sonnet 5.5 | $0.00038 | $0.00385 |
| Haiku 4.5 | $0.00019 | $0.00193 |
Grade A, and why
tex-cleaner 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TeX Cleaner (SOTA)
The last mile before the submission zip: comment stripping + unused-package detection + asset inventory + arXiv-ready verdict.
Honest disclosure: read-only by default — without
--cleanit only prints a report and doesn't touch any file;--cleanmust come with--output(otherwise rc=1; never silently no-ops), and it writes a new file, leaving the original untouched.arxiv_readyis a static-scan conclusion, with no compile verification.
Input Checklist
| Input | Required | Notes |
|---|---|---|
| TeX source file | yes | --input draft.tex; rc=1 if missing |
| clean switch | no | --clean; errors out alone, must pair with --output |
| output path | no | --output draft_clean.tex; only takes effect when --clean is also given |
| base directory | no | --dir; checks whether \input/figures/bib exist (defaults to the directory containing --input) |
When missing, ask everything at once: "Please provide: ① input file --input ② check-only or also clean ③ if cleaning, the save path --output."
Pre-flight Checks
python3 --version # expect >= 3.8, else error and STOP
test -f scripts/tex_cleaner.py && echo OK # expect OK printed, else script missing STOP
test -f "$INPUT" && echo TEX_OK # expect TEX_OK; if missing the script rc=1, STOP first
Workflow
Step 1: Read-Only Check (dry-run)
python3 scripts/tex_cleaner.py --input draft.tex
python3 scripts/tex_cleaner.py --input draft.tex --dir paper/ # also checks asset existence
Expected: JSON output containing status ("clean"/"issues_found"), issues[], unused_packages[], assets{groups,missing}, removed_comments, full_line_comments_removed, n_lines_original, n_lines_cleaned, arxiv_ready (bool); no file written at this point.
If it fails: rc=1 with {"status":"error","error":"Not found: ..."} -> check the --input path.
Step 2: Handle Issues by Category
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.
- 2mo ago Changed · -20 tokens per session 9bafe1f6a76f
- 2mo ago Changed · +5 lines · +31 tokens per session b65fca0c773c
- 2mo ago First seen · 104 lines · 178 tokens per session scan A 329ed6ec1a87
tex-cleaner is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 189 tokens to every session and 1,926 once invoked, about $0.0008 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-09-19.
tex-cleaner compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tex-cleanerMorningstar202604/awesome-skillkit | Skill | 0 | 2mo ago | Apache-2.0 | A | 189 | Claude Code, Codex |
| extracting-lab-tablesmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 210 | Claude Code |
| ingesting-clinical-documentsmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| parsing-ccda-documentsmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 152 | Claude Code |
| structuring-radiology-reportsmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 195 | Claude Code |
| summarizing-clinical-notesmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 129 | Claude Code |
| figuressynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 99 | Claude Code |