python-starter

📁 wibaek/skills 📅 Jan 28, 2026
4
总安装量
2
周安装量
#49934
全站排名
安装命令
npx skills add https://github.com/wibaek/skills --skill python-starter

Agent 安装分布

opencode 2
cursor 2
codex 2
claude-code 2
gemini-cli 2

Skill 文档

Python Starter

Automatically configures formatter and linter when initializing Python projects.

Workflow

  1. Environment Detection and Selection

    • Use UV if uv.lock file exists or uv command is available
    • Use Poetry if [tool.poetry] section exists in pyproject.toml
    • If no environment is configured, recommend uv
    • Otherwise use venv
    • Ask the user if uncertain
  2. Install ruff

    • Install ruff as dev dependency based on selected environment
    • Use commands (avoid writing code directly)
    • Reference: environment-setup.md
  3. Configure pyproject.toml

  4. Install pytest

    • Install pytest as dev dependency based on selected environment
    • Use commands (avoid writing code directly)
  5. Type Checking Setup (Optional)

    • Ask the user if they want ty setup
    • Install ty as dev dependency if needed
    • Add ty configuration to pyproject.toml
    • Reference: pyproject-toml-examples.md
  6. Pre-commit Setup (Optional)

  7. VSCode Settings Suggestion

  8. Create .gitignore

    • Create .gitignore if it doesn’t exist
    • Include common Python ignores for virtual environments, cache files, build artifacts, IDE files, and OS files
    • Template: assets/.gitignore.template

Principles

  • Command-first: Use commands whenever possible instead of writing code directly
  • Use pyproject.toml: Store all configuration in pyproject.toml
  • Dev dependencies: Install ruff, pytest, ty, and pre-commit as dev dependencies
  • User confirmation: Confirm with user for environment selection, ty, and pre-commit before proceeding

References