npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

iceberg-optimizer-skill

v0.1.0

Published

npx installer for the iceberg-optimizer Claude/Codex skill.

Downloads

28

Readme

iceberg-optimizer-skill

A Claude Code Agent Skill that diagnoses an Apache Iceberg table and produces a ranked, cost-aware Markdown report across three domains — table layout (compaction, partition evolution, format upgrade), ingestion pipeline (write distribution, file sizing, sort-at-write), and maintenance (snapshot expiry, orphan cleanup, manifest rewrite) — plus a run schedule.

It is built on one rule: observe before you ask, ask before you decide, simulate before you recommend. Rather than reaching for the standard "compact + sort + expire" runbook, it profiles the table's real metadata, reconstructs the workload, and simulates trade-offs so the recommendation fits the table you actually have.

Engines: Spark · Trino · AWS Glue/EMR · Snowflake · Flink / Kafka Connect.

Repository layout

skills/iceberg-optimizer/      the skill (this is what you install)
├── SKILL.md                   orchestrator: the 5-phase flow
├── README.md                  skill overview, install, and script usage
├── references/                decision framework, procedures, reporting, interview, scheduling
├── engines/                   per-engine syntax (spark, trino, glue, snowflake, …)
├── scripts/                   engine input helpers · profile_table ·
│                              parse_query_log · simulate (stdlib-only)
├── tests/                     unit tests + skill_benchmark fixtures
└── docker/                    local Spark + Trino + Iceberg sandbox

Install

# user-level via npx (available in every project)
npx github:itamarwe/iceberg-optimizer-skill install

# after npm publication, the same install can be shortened to:
npx iceberg-optimizer-skill install

# project-level (scoped to one repo)
cp -r skills/iceberg-optimizer <your-repo>/.claude/skills/

# or project-level via npx
npx github:itamarwe/iceberg-optimizer-skill install --target <your-repo>/.claude/skills

# Codex user-level install
npx github:itamarwe/iceberg-optimizer-skill install --codex

# manual user-level fallback from a local clone
cp -r skills/iceberg-optimizer ~/.claude/skills/

Then ask Claude Code to "optimize my Iceberg table" — or to profile it, design a maintenance schedule, or decide whether it's even worth compacting.

See skills/iceberg-optimizer/README.md for the full walkthrough and standalone script usage.

How this compares to other Iceberg skills

Several good Iceberg skills exist; they solve different problems. This one is an optimization decision engine — it reads a specific table's real metadata and query workload and produces a cost-ranked, table-specific plan (up to and including do nothing), backed by runnable scripts and a scenario benchmark.

| | This skill | Advisory / best-practice skills | Platform-native skills (e.g. Databricks) | |---|---|---|---| | Goal | Decide whether & how to optimize this table | Answer Iceberg questions correctly | Operate Iceberg inside one platform | | Profiles the real table + workload | ✅ | ❌ | ❌ | | Cost simulation across axes | ✅ | ❌ | ❌ (platform auto-manages) | | Runnable scripts, not just prose | ✅ | ❌ | ❌ | | Scenario benchmark validating advice | ✅ | ❌ | ❌ | | Breadth of catalogs / format-spec depth | focused | often wider | platform-scoped |

In short: advisory skills encode broad correctness, and platform skills encode correct in-platform operations; this skill is the one that looks at your table's numbers and tells you what it specifically needs — and proves the recommendation against a benchmark suite. The two kinds are complementary: pair this with a platform skill when you live inside one warehouse.

Development

cd skills/iceberg-optimizer
pip install pytest                              # only dependency, for the unit tests
python -m pytest tests/                         # unit tests
tests/integration/smoke_input_helpers_docker.sh  # Docker Spark+Trino/Iceberg helper smoke test
python tests/skill_benchmark/run_benchmark.py --all --judge   # scenario benchmark (needs the `claude` CLI)

The scripts themselves are standard-library only (sqlglot optional) and never open a connection — they operate on exported Iceberg metadata and logs. The skill can connect when you let it: in Direct mode it runs the diagnostic queries against your catalog itself (trino / spark-sql / beeline, or TRINO_URL / SPARK_HOME / DATABRICKS_HOST / SNOWFLAKE_ACCOUNT); in Exported mode it reads files you provide; otherwise it hands you queries to paste back. Either way it stays read-only until you approve a plan — it never runs a destructive operation on its own.

Contributing

Issues and PRs welcome — see CONTRIBUTING.md for setup, test, and benchmark instructions. This skill was authored with substantial help from an AI coding assistant and reviewed by a human maintainer; treat its output as directional advice and validate against your own tables before running anything destructive.

License

Apache License 2.0 — see LICENSE and NOTICE.