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.
npx skills add ualberta-rcg/drac-agent-skills --skill polarsgit clone --depth 1 https://github.com/ualberta-rcg/drac-agent-skillsWrote 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/ualberta-rcg/drac-agent-skills/polars)<a href="https://agentmods.dev/skills/ualberta-rcg/drac-agent-skills/polars"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-agent-skills/polars/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/ualberta-rcg/drac-agent-skills/polars"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-agent-skills/polars.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.00053 | $0.01252 |
| Opus 5.5 | $0.00021 | $0.00501 |
| Sonnet 5.5 | $0.00011 | $0.00250 |
| Haiku 4.5 | $0.00005 | $0.00125 |
Grade A, and why
polars 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 6d 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 — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Polars: Fast Columnar DataFrames & Streaming ETL
Polars executes columnar Arrow queries in parallel Rust threads with lazy predicate/projection pushdown and out-of-core streaming. On shared Slurm nodes, Polars respects POLARS_MAX_THREADS=$SLURM_CPUS_PER_TASK so jobs stay cleanly within allocated cores.
Core Idioms (LazyFrame First)
Prefer pl.scan_parquet / pl.scan_csv (LazyFrame) over read_* on nontrivial datasets so Polars pushes filters and column selection down to file scan time:
import polars as pl
lf = (
pl.scan_parquet("/scratch/$USER/cohort/*.parquet")
.filter(
pl.col("qc_pass"),
pl.col("age") >= 18,
)
.with_columns(
z_score=(pl.col("biomarker") - pl.col("biomarker").mean().over("batch"))
/ pl.col("biomarker").std(ddof=1).over("batch")
)
.group_by("condition", "sex")
.agg(
n_rows=pl.len(),
n_nonnull=pl.col("biomarker").count(),
mean_val=pl.col("biomarker").mean(),
sd_val=pl.col("biomarker").std(ddof=1),
)
)
# Inspect optimized query plan before running
print(lf.explain())
# Execute in-memory or stream directly to Parquet for larger-than-RAM pipelines
result = lf.collect()
# Or sink directly to disk: lf.sink_parquet("/scratch/$USER/results/out.parquet")
Key Pandas -> Polars Differences
| Task | Pandas | Polars |
|---|---|---|
| Column selection | df[["a", "b"]] |
df.select("a", "b") |
| Row filtering | df[(df["a"] > 0) & (df["b"] == "x")] |
df.filter(pl.col("a") > 0, pl.col("b") == "x") |
| Derived columns | df.assign(c=df["a"] * 2) |
df.with_columns(c=pl.col("a") * 2) |
| Dependent columns | Sequential df["c"] = ...; df["d"] = df["c"] + 1 |
Chain two .with_columns(...) calls (expressions in one call run in parallel against the input schema!) |
| Group transform | df.groupby("g")["x"].transform("mean") |
df.with_columns(pl.col("x").mean().over("g")) |
| Conditional | np.where(cond, a, b) |
pl.when(cond).then(a).otherwise(b) |
| Reshape wide->long | df.melt(...) |
df.unpivot(index="id", on=["c1", "c2"]) |
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.
- 6d ago First seen · 79 lines · 53 tokens per session scan A 98946e63a3d9
polars is a skill published in the GitHub repository ualberta-rcg/drac-agent-skills (2 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 1,252 once invoked, about $0.0002 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-11-25.
polars compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| polarsualberta-rcg/drac-agent-skills | Skill | 2 | 7d ago | MIT | A | 53 | Claude Code |
| pytorch-patternsaffaan-m/ECC | Skill | 314k | yesterday | MIT | A | 32 | Claude Code, Kiro |
| optimize-for-gpuK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 151 | Claude Code, Codex |
| accelerateNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 13 | Claude Code, Codex |
| developing-genkit-pythongoogle/skills | Skill | 25k | today | Apache-2.0 | A | 96 | Claude Code, Codex |
| marimo-pairmarimo-team/marimo | Skill | 24k | today | Apache-2.0 | A | 57 | Claude Code, Codex |
| cudnn-installNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 49 | Claude Code, Codex |