iceage-batch

iceage-batch is a skill for Claude Code, Codex from pomagrenate/ice_age. It costs 55 tokens per session (422 once invoked), scanned A, original, Apache-2.0.

A command-line tool that compresses natural-language files in a directory, using an AI service to shorten them while keeping backups and reporting progress.

In plain words
What is it for?
Use it to compress documentation and other text files, including selected subdirectories, with options for previews, backups, and parallel workers.
Why use it?
It saves you from compressing files one by one and shows which files succeeded, were skipped, or failed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./iceage-batch/go <directory> [flags].

Good fit Use it to compress documentation and other text files, including selected subdirectories, with options for previews, backups, and parallel workers.

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/pomagrenate/ice_age
agentmods
npx agentmods add skills/pomagrenate/ice_age/iceage-batch

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 iceage-batch

README.md
[![agentmods](https://agentmods.dev/badge/skills/pomagrenate/ice_age/iceage-batch/github.svg)](https://agentmods.dev/skills/pomagrenate/ice_age/iceage-batch)
Your own site
<a href="https://agentmods.dev/skills/pomagrenate/ice_age/iceage-batch"><img src="https://agentmods.dev/badge/skills/pomagrenate/ice_age/iceage-batch/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 iceage-batch

Your own site · 80×15
<a href="https://agentmods.dev/skills/pomagrenate/ice_age/iceage-batch"><img src="https://agentmods.dev/badge/skills/pomagrenate/ice_age/iceage-batch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 422 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.00055 $0.00422
Opus 5 $0.00028 $0.00211
Sonnet 5 $0.00011 $0.00084
Haiku 4.5 $0.00006 $0.00042

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

Security

Grade A, and why

iceage-batch 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/iceage-batch/SKILL.md · 54 lines

What it actually says

Compress all compressible files in a directory. Uses Claude API per file.

Usage

go run ./iceage-batch/go <directory> [flags]

Flags:

  • --dry-run — list files that would be compressed, no API calls
  • --no-backup — skip creating .original.md backups (good for version-controlled dirs)
  • --workers N — parallel compression (default 1, increase carefully — API rate limits apply)
  • --recursive=false — top-level only, no subdirectories

Examples

go run ./iceage-batch/go docs/
go run ./iceage-batch/go docs/ --dry-run
go run ./iceage-batch/go docs/ --no-backup
go run ./iceage-batch/go docs/ --workers 3
go run ./iceage-batch/go . --recursive=false

Requirements

ANTHROPIC_API_KEY in environment or .env.local. Falls back to claude CLI if no key.

Output

Found 8 compressible file(s) in docs/

[1/8] docs/guide.md ... OK (1.2s)
[2/8] docs/api.md ... OK (0.9s)
[3/8] docs/old.md ... Skipped (backup exists)
[4/8] docs/broken.md ... FAILED (validation failed after retries)

Done
  Compressed: 6
  Skipped:    1
  Failed:     1

Exit codes: 0 = all OK, 1 = fatal error, 2 = one or more files failed.

Files

What ships with it

7 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. 8d ago First seen · 54 lines · 55 tokens per session scan A 2842e47f8b67

Subscribe to this mod's changes

iceage-batch is a skill published in the GitHub repository pomagrenate/ice_age (2 stars, last pushed 19d ago), licensed Apache-2.0. It adds 55 tokens to every session and 422 once invoked, about $0.0003 per session on Opus 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.