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.5 $0.00016 $0.00210
Sonnet 5.5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00052

Measured 1mo ago against content hash 68a9564ba604, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 1mo ago), licensed MIT. It adds 39 tokens to every session and 524 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-09-10.

Related

ugrc-python-packaging compared with skills from other repositories

ugrc-python-packaging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ugrc-python-packagingagrc/agent-skillsSkill21mo agoMITA39Claude Code, Codex
cardputer-buddyanthropics/claude-plugins-officialSkill46ktodayApache-2.0A109Claude Code
developing-genkit-pythongoogle/skillsSkill23kyesterdayApache-2.0A49Claude Code, Codex
hypothesis-testingforyourhealth111-pixel/Vibe-SkillsSkill3.8ktodayApache-2.0A62Claude Code, Codex
gh-address-commentsforyourhealth111-pixel/Vibe-SkillsSkill3.8ktodayApache-2.0A39Codex
authoring-dagsastronomer/agentsSkill4585d agoApache-2.0A93Claude Code
test-harnessMathews-Tom/armorySkill341yesterdayMITA65Claude Code