metaxy: Skill for Claude Code

.claude/skills/narwhals/SKILL.md

narwhals is a skill for Claude Code from anam-org/metaxy. It costs 37 tokens per session (3,498 once invoked), scanned A, original, Apache-2.0.

A Python compatibility layer that gives code one common dataframe interface across libraries such as pandas and Polars. A dataframe is a table of data used for analysis and processing.

In plain words
What is it for?
Building Python libraries or applications that accept dataframes while remaining independent of the specific dataframe backend.
Why use it?
It reduces the need to write separate implementations for each dataframe library and handles their small behavioral differences.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is anam-org/metaxy's own configuration. It tells Claude Code how to work on metaxy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything metaxy configures →

Part of the metaxy plugin — 8 skills, 5 agents, 1 hook shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to anam-org/metaxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anam-org/metaxy/main/.claude/skills/narwhals/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/anam-org/metaxy

Made for: Claude Code.

Or install metaxy, the plugin that ships this one along with the rest of its 8 skills, 5 agents, 1 hook.

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 narwhals

README.md
[![agentmods](https://agentmods.dev/badge/skills/anam-org/metaxy/narwhals.svg)](https://agentmods.dev/skills/anam-org/metaxy/narwhals)
Your own site
<a href="https://agentmods.dev/skills/anam-org/metaxy/narwhals"><img src="https://agentmods.dev/badge/skills/anam-org/metaxy/narwhals.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,498 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.03498
Opus 5 $0.00018 $0.01749
Sonnet 5 $0.00007 $0.00700
Haiku 4.5 $0.00004 $0.00350

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

Security

Grade A, and why

narwhals 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 7d 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.

.claude/skills/narwhals/SKILL.md · 514 lines

How it starts

The opening of the file, as written. The whole thing — 514 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Narwhals - DataFrame Agnostic API

Narwhals is a lightweight, zero-dependency compatibility layer for dataframe libraries in Python that provides a unified interface across different backends.

Docs: https://narwhals-dev.github.io/narwhals/

What is Narwhals?

Narwhals enables writing dataframe-agnostic code that works seamlessly across multiple Python dataframe libraries:

Full API Support:

  • cuDF
  • Modin
  • pandas
  • Polars
  • PyArrow

Lazy-Only Support:

  • Dask
  • DuckDB
  • Ibis
  • PySpark
  • SQLFrame

Core Philosophy

Why Narwhals?

  • Resolves subtle differences between libraries (e.g., pandas checking index vs Polars checking values)
  • Provides unified, simple, and predictable API
  • Handles backwards compatibility internally
  • Tests against nightly builds of supported libraries
  • Maintains negligible performance overhead
  • Full static typing support
  • Zero dependencies

Target Use Case: Anyone building libraries, applications, or services that consume dataframes and need complete backend independence.

Key Features

  1. Backend Agnostic: Write once, run on any supported dataframe library
  2. Polars-Like API: Uses a subset of the Polars API for consistency
  3. Lazy & Eager Execution: Separate APIs for both execution modes
  4. Expression Support: Full expression API for complex operations
  5. Type Safety: Perfect static typing support
  6. 100% Branch Coverage: Thoroughly tested

Basic Usage Pattern

Three-Step Workflow

import narwhals as nw

# 1. Convert to Narwhals
df_nw = nw.from_native(df)  # Works with pandas, Polars, PyArrow, etc.

# 2. Perform operations using Polars-like API
result = df_nw.select(a_sum=nw.col("a").sum(), a_mean=nw.col("a").mean(), b_std=nw.col("b").std())

# 3. Convert back to original library
result_native = result.to_native()

Using the @narwhalify Decorator

Simplifies function definitions for automatic conversion:

@nw.narwhalify
def my_func(df: IntoDataFrameT):
    return df.select(nw.col("a").sum(), nw.col("b").mean()).filter(nw.col("a") > 0)


# Automatically handles conversion to/from Narwhals
result = my_func(pandas_df)  # Works!
result = my_func(polars_df)  # Also works!

Read the full file on GitHub · 514 lines

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. 7d ago First seen · 514 lines · 37 tokens per session scan A 28f20b5ff79d

Subscribe to this mod's changes

narwhals is a skill published in the GitHub repository anam-org/metaxy (119 stars, last pushed 18d ago), licensed Apache-2.0. It adds 37 tokens to every session and 3,498 once invoked, about $0.0002 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-09-01.

Related

Other skills, from other repositories

data-pipelines

Apply Data Pipelines Pocket Reference practices (James Densmore). Covers Infrastructure (Ch 1-2: warehouses, lakes, cloud), Patterns (Ch 3: ETL, ELT, CDC), DB Ingestion (Ch 4: MySQL, PostgreSQL, MongoDB, full/incremental), File Ingestion (Ch 5: CSV, JSON, cloud storage), API Ingestion (Ch 6: REST, pagination, rate…

booklib-ai/booklib · 241 tokens

arrowspace

Spectral vector search using graph Laplacian eigenstructure. Use when cosine/L2 similarity misses latent structure in your embeddings.

sickn33/agentic-awesome-skills · 28 tokens

blip-2-vision-language

Vision-language pre-training framework bridging frozen image encoders and LLMs. Use when you need image captioning, visual question answering, image-text retrieval, or multimodal chat with state-of-the-art zero-shot performance.

davila7/claude-code-templates · 52 tokens

llamaindex

Data framework for building LLM applications with RAG. Specializes in document ingestion (300+ connectors), indexing, and querying. Features vector indices, query engines, agents, and multi-modal support. Use for document Q&A, chatbots, knowledge retrieval, or building RAG pipelines. Best for data-centric LLM…

davila7/claude-code-templates · 70 tokens

nemo-curator

GPU-accelerated data curation for LLM training. Supports text/image/video/audio. Features fuzzy deduplication (16× faster), quality filtering (30+ heuristics), semantic deduplication, PII redaction, NSFW detection. Scales across GPUs with RAPIDS. Use for preparing high-quality training datasets, cleaning web data, or…

davila7/claude-code-templates · 83 tokens

sentence-transformers

Framework for state-of-the-art sentence, text, and image embeddings. Provides 5000+ pre-trained models for semantic similarity, clustering, and retrieval. Supports multilingual, domain-specific, and multimodal models. Use for generating embeddings for RAG, semantic search, or similarity tasks. Best for production…

davila7/claude-code-templates · 67 tokens