Setting Up Python Libraries
Sets up professional Python library projects with modern tooling (pyproject.toml, uv, ruff, pytest, pre-commit, GitHub Actions). Use when creating new Python libraries, modernizing existing projects to pyproject.toml, configuring linting/testing/CI, or setting up Makefiles and pre-commit hooks.
Install
/plugin marketplace add wdm0006/python-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add wdm0006/python-skills --skill setting-up-python-librariesgit clone --depth 1 https://github.com/wdm0006/python-skills.git /tmp/python-skills
mkdir -p ~/.claude/skills
cp -r /tmp/python-skills/skills/python/project-setup ~/.claude/skills/setting-up-python-librariesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Python Library Project Setup ## Quick Start Create a new library with this structure: ``` my-library/ ├── src/my_library/ │ ├── __init__.py │ └── py.typed ├── tests/ ├── pyproject.toml ├── Makefile ├── .pre-commit-config.yaml └── .github/workflows/ci.yml ``` Use `src/` layout to prevent accidental imports of development code. ## Core Configuration For complete templates, see: - **[PYPROJECT.md](PYPROJECT.md)** - Full pyproject.toml with all tool configs - **[CI.md](CI.md)** - GitHub Actions and pre-commit setup - **[MAKEFILE.md](MAKEFILE.md)** - Makefile automation patterns ## Minimal pyproject.toml ```toml [build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "my-library" version = "0.1.0" description = "What it does" readme = "README.md" requires-python = ">=3.10" license = "MIT" # SPDX expression dependencies = [] [project.optional-dependencies] dev = ["pytest>=7.0", "ruff>=0.1", "mypy>=1.0"] [tool.setuptools.packages.find] where = ["src"] ``` ## Essential Commands ```bash # Setup uv sync --extra dev pre-commit install # Daily workflow ruff check src tests # Lint ruff format src tests # Format pytest # Test mypy src # Type check ``` ## Keep local checks identical to CI The most common CI failure is not a bug — it's a check that passes locally but fails in CI (or vice versa) because the two run different commands. Two rules
Details
- Skill name
setting-up-python-libraries- Repository
- wdm0006/python-skills
- Path
skills/python/project-setup/SKILL.md- License
- MIT
- Repo updated
- 18 November 2026
FAQ
What does the Setting Up Python Libraries skill do?
Sets up professional Python library projects with modern tooling (pyproject.toml, uv, ruff, pytest, pre-commit, GitHub Actions). Use when creating new Python libraries, modernizing existing projects to pyproject.toml, configuring linting/testing/CI, or setting up Makefiles and pre-commit hooks.
How do I install the Setting Up Python Libraries skill?
Claude Code plugin: /plugin marketplace add wdm0006/python-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Setting Up Python Libraries popular?
It lives in wdm0006/python-skills, which has 115 GitHub stars and 18 forks.
Related skills
Auditing Python Security
115wdm0006/python-skills
Audits Python libraries for security vulnerabilities using Bandit, pip-audit, Semgrep, and detect-secrets. Identifies SQL injection, command injection, hardcoded credentials, secrets exposed through tracebacks, weak cryptography, and insecure deserialization. Use when reviewing library security, setting up security scanning in CI, or implementing secure coding patterns.
Building Accessible Interfaces
115wdm0006/python-skills
Makes web and app UIs usable by keyboard, screen-reader, low-vision and motion-sensitive users — semantic HTML before ARIA, labelled controls, visible focus, WCAG AA contrast measured rather than eyeballed, touch targets, reduced motion, and automated axe checks plus a manual keyboard pass in CI or before every UI PR. Use when building or restyling a screen, adding a form, modal, menu or custom control, choosing colors, or reviewing a UI change.
Building Browser Extensions
115wdm0006/python-skills
Builds and tests Manifest V3 browser extensions — service-worker message channels that survive teardown, chrome.storage read-modify-write safety, settings validation in the popup, and a Jest chrome mock that can actually fail. Use when writing or reviewing a background service worker, a popup that reads/writes chrome.storage, an extension's Jest suite, or debugging an extension whose UI silently stops responding.
Shipping Across Surfaces
115wdm0006/python-skills
Land a change everywhere the same fact is stated — enumerating the full surface inventory (landing copy, docs, machine-readable summaries, changelog badges repeated across every page, sitemap, README, descriptions embedded in code, and untyped frontend consumers of typed responses), generating a surface instead of restating it, drift tests where you cannot generate, never hand-maintaining a copy of a surface another codebase owns, shipping a paired PR when you change a format a different codebase decodes, and keeping overloaded product words apart. Use when adding or renaming a user-facing fea
Running Resumable Sync Jobs
115wdm0006/python-skills
Design and review long-running batch or sync jobs that process many items against a remote API and persist checkpoint state — exit codes that report partial failure, checkpoints that are safe to resume and written atomically, per-item tolerance vs. fatal abort, telling "zero" apart from "couldn't fetch", bounded retries, honest dry-runs, timezone-safe incremental cursors, and compensating reserved resources. Use when writing or reviewing a mirror/sync command, a nightly cron job, an importer, a paginated fetcher, or a background worker that consumes quota.
Swedish Industry SAAS
105erp-mafia/accounted-skills
Swedish accounting for SaaS and software companies. Covers subscription revenue: the gap between invoicing, cash and revenue, förutbetalda intäkter on 2970, K2 6.11 vs K3 23.26, multi-component contracts (licence, implementation, support), setup fees, usage billing, credits and free months, refunds and churn provisions, principal vs agent for resellers and app stores, FX invoicing, and reconciling ARR/MRR against bokförd intäkt; plus VAT and development: EU B2B reverse charge, OSS and the 99 680 kr threshold, location evidence, elektroniskt tillhandahållna tjänster, capitalising development co
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.