ugrc-python-packaging

ugrc-python-packaging is a skill for Claude Code, Codex from agrc/agent-skills. It costs 39 tokens per session (524 once invoked), scanned A, original, MIT.

Guidance for moving a Python project's package configuration from the older setup.py file to pyproject.toml, including Hatchling, dependencies, versioning, and command-line scripts. Python packaging is the process of describing, building, and distributing a Python project.

In plain words
What is it for?
It helps review or carry out an approved setup.py migration, update CI references, organize development dependencies, and validate source and wheel packages.
Why use it?
It reduces the risk of losing package metadata, dependencies, build settings, or commands during a packaging migration, and includes checks for builds, tests, and Ruff.

Skill for Claude CodeCodex

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

Good fit It helps review or carry out an approved setup.py migration, update CI references, organize development dependencies, and validate source and wheel packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agrc/agent-skills/ugrc-python-packaging
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.

Any agent
npx skills add agrc/agent-skills --skill ugrc-python-packaging
Clone the repo
git clone --depth 1 https://github.com/agrc/agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python-packaging/github.svg)](https://agentmods.dev/skills/agrc/agent-skills/ugrc-python-packaging)
Your own site
<a href="https://agentmods.dev/skills/agrc/agent-skills/ugrc-python-packaging"><img src="https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python-packaging/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 ugrc-python-packaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/agrc/agent-skills/ugrc-python-packaging"><img src="https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python-packaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 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.00039 $0.00524
Opus 5 $0.00019 $0.00262
Sonnet 5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00052

Measured today against content hash 68a9564ba604, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ugrc-python-packaging 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 today.

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/ugrc-python-packaging/SKILL.md · 36 lines

What it actually says

When a project uses a legacy setup.py, offer to migrate its packaging configuration to pyproject.toml; do not perform this migration automatically. If the user approves, make the migration in a separate commit from unrelated changes.

Preserve the existing package metadata, dependencies, optional dependency groups, and package-discovery configuration. Upgrade the build backend to Hatchling when the user approves: use requires = ["hatchling"] and build-backend = "hatchling.build", then replace setuptools-specific configuration with the equivalent Hatchling configuration. Update CI cache dependency paths that reference setup.py to reference pyproject.toml. Remove obsolete setup.py configuration only after the declarative configuration is complete, and validate the migration by building source and wheel distributions and running the project's tests and Ruff checks.

Put all testing and build dependencies in [project.optional-dependencies] under a dev group, and remove any tests group. Make sure to update any documentation that references the tests group to reference the dev group instead.

When the version is stored only in a dedicated module migrate that value to a static version field in [project], remove dynamic = ["version"] and the setuptools dynamic-version configuration, and delete the unused module. Fix any imports of the old version module using the following pattern:

Resolve the version once in your top-level init.py file using importlib.metadata, and then import that version attribute across your other modules. In the root init.py (e.g., uocc_skid/init.py)

from importlib.metadata import version
try:
    # Use distribution name as defined in pyproject.toml
    __version__ = version("uocc-skid")
except PackageNotFoundError:
    # Fallback when running from raw source tree without installation
    __version__ = "0.0.0-dev"

Then in other modules, import the version attribute from the top-level package:

from uocc_skid import __version__

Clean up any remaining references to the old version module in the codebase, including in CI workflows and documentation.

Review declared console scripts during the migration. Remove an entry point only when its target is confirmed stale or nonexistent; otherwise preserve it in [project.scripts].

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. today First seen · 36 lines · 39 tokens per session scan A 68a9564ba604

Subscribe to this mod's changes

ugrc-python-packaging is a skill published in the GitHub repository agrc/agent-skills (2 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 524 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-10.

Related

Other skills, from other repositories

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

developing-genkit-python

Develop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit errors, import issues, or API problems.

google/skills · 49 tokens

authoring-dags

Workflow and best practices for writing Apache Airflow DAGs. Use when creating a new DAG, write pipeline code, handling questions about DAG patterns and conventions or extending an existing DAG with a follow-up/downstream task. ANY request shaped like 'add a DAG named X', 'write a pipeline', 'add a task that runs…

astronomer/agents · 93 tokens

test-harness

Generates pytest test suites with happy path, edge cases, error conditions, fixture scaffolding, mocks, async patterns. Triggers on: "generate tests", "write tests for", "test this function", "create test suite", "pytest for", "unit tests for", "mock strategy for".

Mathews-Tom/armory · 65 tokens

python-patterns

Python best practices including type hints, async patterns, testing, and project structure.

cosmicstack-labs/mercury-agent-skills · 19 tokens

developing-kafka-python-client

Use when the user wants to build a Python Kafka producer or consumer, add Schema Registry to existing Python code, migrate from raw JSON to schema-backed serialization, or scaffold a confluent-kafka-python project for Confluent Cloud, local Docker, or WarpStream. Also use when user wants to optimize Python Kafka…

confluentinc/agent-skills · 75 tokens