Skip to content
Skills Library
Programming · Building & coding

python-development

/python-development

Use when writing, reviewing, refactoring, running, linting, formatting, or packaging Python code and self-contained Python scripts using modern Python, uv, Ruff, ty, and PEP 723 inline script metadata. Always use `uv` instead of pip/python/venv.

Repository
dotfiles ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when writing, reviewing, refactoring, running, linting, formatting, or packaging Python code and self-contained Python scripts using modern Python, uv, Ruff, ty, and PEP 723 inline script metadata. Always use `uv` instead of pip/python/venv.

Original author description

Use when writing, reviewing, refactoring, running, linting, formatting, or packaging Python code and self-contained Python scripts using modern Python, uv, Ruff, ty, and PEP 723 inline script metadata. Always use `uv` instead of pip/python/venv.

How it works

  1. General rules
  2. Verification
  3. Self-contained scripts
Original SKILL.md headings · 43 lines, 179 words
SKILL.md preview
---
name: python-development
description: Use when writing, reviewing, refactoring, running, linting, formatting, or packaging Python code and self-contained Python scripts using modern Python, uv, Ruff, ty, and PEP 723 inline script metadata. Always use `uv` instead of pip/python/venv.
disable-model-invocation: true
---

# Python Development

Use modern Python practices for application code, tools, scripts, and CLIs.

## General rules

- Never use `python`. Use `uv` instead of `python`:
  - `uv add package-name`
  - `uv run script.py`
- Don't use `from __future__ import annotations`.
- Use modern type syntax (`list[str]`, `str | None`).
- Look before you leap: check conditions before acting.
- Don't keep backwards compatibility.
- Declare variables close to use.

## Verification

- Format with `uvx ruff format .`.
- Lint with `uvx ruff check .` and `uvx ty check`.

## Self-contained scripts

Use this pattern to write Python tools, scripts, and CLIs as single files.

- Add dependencies with `uv add --script foo.py httpx`.
- Run with `uv run foo.py`.
- If inline metadata is present, `uv run` ignores project dependencies automatically.
- `dependencies` must be present, even if empty: `dependencies = []`.

Use PEP 723 inline metadata and an executable shebang:

```python
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.13"
# dependencies = [
#   "httpx",
# ]
# ///
import httpx
```

Versions

RepositoryScoreLicence
This page · davidgasquez/dotfiles100MIT
projanvil/mindforge100MIT
laurigates/claude-plugins100MIT
projanvil/mindforge100MIT
HK-hub/AgentSkills100MIT
microsoft/agent-framework90MIT

Database snapshot: 13.11.2026 · package version e43da77201f5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90modern-python
    Modern Python tooling and best practices using uv, ruff, ty, and pytest. Covers project setup with pyproject.toml (PEP 735), src layout, linting/formatting with ruff, type checking with ty, testing with pytest and coverage, pre-commit with prek, and security (pip-audit,…
  • 100python-code-quality
    Python code quality with ruff and ty. Use when the user mentions ruff, ty, linting, formatting, type checking, or Python code style.
  • 100ac-tools-single-file-uv-scripter
    Creates self-contained Python scripts with inline PEP 723 metadata for UV. Embeds dependencies directly in script headers for zero-config execution via `uv run`. Triggers on keywords: uv script, single file script, inline dependencies, PEP 723, self-contained python, uv run script, standalone script
  • 100modern-python
    Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.
  • 100uv-run
    Run Python scripts with uv (PEP 723 inline deps, --with for one-off deps). Use when running scripts without venv activation or needing one-off dependencies.
  • 90dev10x:py-uv
    Guide UV installation and migrate Python scripts from legacy shebangs to UV inline metadata (PEP 723). TRIGGER when: migrating scripts to uv, setting up uv for the first time, or converting shebangs to PEP 723 format. DO NOT TRIGGER when: uv is already configured, or user is…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.