From python-with-uv
Set up a Python project with uv — use this skill whenever the user wants to start a new Python project, initialize a uv project, scaffold a Python package or app, or wire up a pre-commit + linting setup. Also use when an existing project needs uv mirror config, dev deps, or pre-commit installed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/python-with-uv:python-with-uv [python-version][python-version]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill initializes a new Python project (or brings an existing one up to standard) using `uv` with Aliyun mirror configuration, ruff-based linting/formatting, and a comprehensive pre-commit setup.
This skill initializes a new Python project (or brings an existing one up to standard) using uv with Aliyun mirror configuration, ruff-based linting/formatting, and a comprehensive pre-commit setup.
Gather options — if not provided as $0, ask:
3.12)--lib)Initialize project (skip if pyproject.toml already exists):
uv init --python <version> [--lib] — this also runs git init automatically.Configure Aliyun mirror — append to pyproject.toml:
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
Configure ruff — append to pyproject.toml to enable import sorting and unused-import removal:
[tool.ruff.lint]
select = ["E", "F", "I"]
Add development dependencies:
uv add ruff pytest radon vulture basedpyright pre-commit mdformat --dev
Set up pre-commit:
.pre-commit-config.yaml using pre-commit-config.yaml as the template.$PYTHON_VERSION with the confirmed version (e.g., 3.12).pre-commit install to register the git hooks.Finalize — confirm to the user: Python version, mirror, dev tools installed, and pre-commit hooks active.
uv must be installed on the system.uv init handles this for new projects; for existing projects without git, run git init before pre-commit install.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub starmountain1997/g-claude --plugin python-with-uv