skills/python-packaging-uv/SKILL.md
Use when building or publishing Python packages with uv, including dist artifacts and pre-publish checks.
npx skillsauth add narumiruna/agent-skills python-packaging-uvInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use uv build and publish commands to produce wheels/sdists and ship to package indexes. Core principle: build from release-ready sources, verify artifacts, test installation, then publish.
| Task | Command |
| --- | --- |
| Build wheel+sdist | uv build |
| Build wheel only | uv build --wheel |
| Build for release (ignore local path overrides) | uv build --no-sources |
| Publish to PyPI | uv publish --token $PYPI_TOKEN |
| Publish to Test PyPI | uv publish --publish-url https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN |
| Inspect wheel contents | unzip -l dist/<wheel>.whl |
| Test wheel install | uv run --with dist/<wheel>.whl python -c "import <module>" |
dist/ with uv build --no-sources.prek run -a
uv build --no-sources
unzip -l dist/my_package-1.0.0-py3-none-any.whl
uv run --with dist/my_package-1.0.0-py3-none-any.whl python -c "import my_package"
uv publish --publish-url https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN
[tool.uv.sources] overrides are active.references/packaging.md - Build and publish detailsdevelopment
Maintains concise repository MEMORY.md notes for gotchas, stale memory corrections, and durable user preferences. Use at the start of repository conversations, when the user mentions MEMORY.md, when an error should be remembered to avoid repeating it, or when MEMORY.md content may be wrong.
testing
Use only when the user explicitly names the work-log-writer skill; never auto-activate from generic work log, daily log, EOD summary, status update, or date-range summary requests.
development
Use when implementing non-trivial code changes that should follow TDD (write a failing test first, make the smallest passing change, then refactor safely).
tools
Use when designing, implementing, reviewing, or debugging Codex CLI hooks, including `hooks.json`, `.codex/hooks.json`, feature-flag setup, matcher behavior, event-specific stdin/stdout payloads, and hook scripts for `SessionStart`, `PreToolUse`, `PostToolUse`, `UserPromptSubmit`, or `Stop`.