python-packaging-skill

python-packaging-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 33 tokens per session (4,040 once invoked), scanned A, original, Apache-2.0.

A guide to packaging Python applications and libraries with pyproject.toml, dependency tools, and build systems such as Poetry, uv, setuptools, and Hatch.

In plain words
What is it for?
Use it to set up or restructure Python packages, configure command-line entry points, manage development and test dependencies, publish to PyPI, or organize shared packages in a monorepo.
Why use it?
It helps you choose and configure a consistent way to manage dependencies, virtual environments, builds, and package publishing.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit Use it to set up or restructure Python packages, configure command-line entry points, manage development and test dependencies, publish to PyPI, or organize shared packages in a monorepo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/python-packaging-skill
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 darellchua2/opencode-config-template --skill python-packaging-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/python-packaging-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/python-packaging-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/python-packaging-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/python-packaging-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,040 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.00033 $0.04040
Opus 5 $0.00016 $0.02020
Sonnet 5 $0.00007 $0.00808
Haiku 4.5 $0.00003 $0.00404

Measured 4d ago against content hash b09a1957df0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

python-packaging-skill 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 4d 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.

opencode_app/.opencode/skills/python-packaging-skill/SKILL.md · 552 lines

How it starts

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

What I do

I help you configure Python packaging for both applications and libraries:

  1. pyproject.toml Standards: Compliant configuration for all build backends
  2. Project vs Library: Different strategies for deployable apps vs publishable packages
  3. Poetry: Full dependency management, lock files, virtual environments, publishing
  4. uv: Ultra-fast modern alternative for dependency resolution and virtual environments
  5. setuptools: Traditional build backend for maximum compatibility
  6. Hatch: Modern build backend with environment management
  7. Dependency Management: Pinning, version ranges, extras, and groups
  8. Publishing: PyPI, TestPyPI, and private registry workflows

When to use me

Use this skill when:

  • Creating a new Python project and choosing a build tool
  • Writing or restructuring pyproject.toml
  • Deciding between Poetry, uv, setuptools, or hatch
  • Setting up dependency groups (dev, test, docs)
  • Publishing a library to PyPI
  • Configuring entry points and CLI scripts
  • Setting up a monorepo with shared Python packages
  • Managing virtual environments across a team
  • Configuring build and publish CI/CD pipelines
  • python-backend-skill: Project scaffolding and app structure (FastAPI/Django/Flask). This skill handles the packaging configuration those projects use.
  • python-ruff-linter-skill: Linting configuration often defined in pyproject.toml
  • python-pytest-creator-skill: Test configuration often defined in pyproject.toml
  • monorepo-management-skill: JS/TS monorepos. This skill covers Python monorepo packaging patterns.

Step 1: Project vs Library

Decision Matrix

Aspect Application (Project) Library (Package)
Purpose Deployed service, CLI tool, script Reusable code published to PyPI
Dependencies Pinned exact versions Version ranges (minimum compatible)
Build Optional (wheel for Docker) Required (sdist + wheel)
Publish Internal registry or skip PyPI or private registry
Entry points Scripts/console_scripts Optional
Version scheme Often single 0.1.0 or git-based Semantic versioning required
[project] name Internal, doesn't need PyPI name Must be unique on PyPI
License May not need one Required for PyPI

Read the full file on GitHub · 552 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. 4d ago First seen · 552 lines · 33 tokens per session scan A b09a1957df0a

Subscribe to this mod's changes

python-packaging-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 4,040 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

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens