python-packaging-complexity

python-packaging-complexity is a skill for Claude Code, Codex from opendatahub-io/ai-helpers. It costs 40 tokens per session (939 once invoked), scanned A, original, Apache-2.0.

A Python package analysis tool that reads PyPI metadata to estimate how difficult it is to build the package, including whether native code must be compiled.

In plain words
What is it for?
Use it to check dependencies, source and wheel distributions, compilation needs, and likely wheel-building strategies.
Why use it?
It helps you spot build problems before choosing how to create and distribute Python wheels, which are prebuilt install files.

Skill for Claude CodeCodex

Part of the odh-python-packaging plugin — 11 skills shipped together

Install

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.

agentmods
npx agentmods add skills/opendatahub-io/ai-helpers/python-packaging-complexity
Any agent
npx skills add opendatahub-io/ai-helpers --skill python-packaging-complexity
Clone the repo
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers

Made for: Claude Code, Codex.

Or install odh-python-packaging, the plugin that ships this one along with the rest of its 11 skills.

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 python-packaging-complexity

README.md
[![agentmods](https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/python-packaging-complexity.svg)](https://agentmods.dev/skills/opendatahub-io/ai-helpers/python-packaging-complexity)
Your own site
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/python-packaging-complexity"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/python-packaging-complexity.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.00939
Opus 5 $0.00020 $0.00469
Sonnet 5 $0.00008 $0.00188
Haiku 4.5 $0.00004 $0.00094

Measured yesterday against content hash e41f3853f430, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-packaging-complexity 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/pypi_inspect.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/odh-python-packaging/skills/python-packaging-complexity/SKILL.md · 122 lines

How it starts

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

Python Package Build Complexity Analysis

This skill helps you evaluate the build complexity of Python packages by analyzing their PyPI metadata. It determines whether a package likely requires compilation, assesses build complexity, and provides recommendations for wheel building strategies.

Instructions

When a user asks about Python package build complexity, building wheels, or evaluating PyPI packages for compilation requirements:

  1. Run the PyPI inspection script using the package name and optional version:

    ./scripts/pypi_inspect.py <package_name> [version]
    
  2. Analyze the output and provide interpretation focusing on:

    Build Complexity Assessment

    • Compilation Requirements: Whether the package needs C/C++/Rust/Fortran compilation
    • Complexity Score: Numerical score indicating build difficulty (0-10+ scale)
    • Key Indicators: Specific classifiers, keywords, or dependencies that suggest complexity

    Distribution Analysis

    • Source Distribution Availability: Whether sdist is available for building
    • Existing Wheels: What wheel types already exist (platform-specific, universal)
    • Wheel Coverage: Gaps in wheel availability that might need custom builds

    Dependency Analysis

    • Complex Dependencies: Dependencies that themselves require compilation
    • Version Constraints: Python version requirements and compatibility
    • Transitive Complexity: How dependencies affect overall build complexity
  3. Provide actionable recommendations:

    • Whether to build from source or use existing wheels
    • Required build tools and dependencies
    • Platform-specific considerations
    • Estimated build time and resource requirements

Key Complexity Indicators

High Complexity (Score 5+)

  • Native extensions (C/C++/Rust/Fortran classifiers)
  • CUDA/GPU acceleration keywords
  • Known complex packages (torch, tensorflow, numpy, scipy)
  • Missing or limited wheel availability
  • Many compiled dependencies

Read the full file on GitHub · 122 lines

Files

What ships with it

1 file 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. yesterday First seen · 122 lines · 40 tokens per session scan A e41f3853f430

Subscribe to this mod's changes

python-packaging-complexity is a skill published in the GitHub repository opendatahub-io/ai-helpers (37 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 939 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-03.

Related

Other skills, from other repositories

fastapi-templates

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

wshobson/agents · 37 tokens

manimgl-best-practices

Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains from manimlib import , (3) User runs manimgl CLI commands, (4) Working with InteractiveScene, self.frame, self.embed(), ShowCreation(), or ManimGL-specific patterns. Best practices for ManimGL (Grant Sanderson's 3Blue1Brown…

calesthio/OpenMontage · 167 tokens

code-helper

Helps users write cleaner, more readable Python code.

sinewaveai/agent-security-scanner-mcp · 13 tokens

telegram-patterns

Telegram-specific patterns and Telethon library usage.

leshchenko1979/fast-mcp-telegram · 12 tokens

async-python-patterns

When writing Python asyncio code — picking between gather / TaskGroup / wait, structured concurrency, timeouts, cancellation, sync-bridging — decision framework only, cookbook externalized.

event4u-app/agent-config · 41 tokens

Audit Python dependency declarations for unused, missing, and transitive imports before release

Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then turns the findings into cleanup commits or…

agentskillexchange/skills · 76 tokens