Python Directory and Configuration

Bootstrap Python projects with structured directories, environments, and pyproject tooling.

1|2|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/ewe-studios/agentic-coding-starter --skill python-directory-and-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Python Directory and Configuration
Source: https://github.com/ewe-studios/agentic-coding-starter/tree/main/skills/python-directory-and-configuration
Command: npx skills add https://github.com/ewe-studios/agentic-coding-starter --skill python-directory-and-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up Python projects can be repetitive and error-prone. This skill provides a proven structure, environment management, and tool configuration to bootstrap new projects quickly and consistently.

Core Features & Use Cases

  • Project skeleton and directory layout following recommended conventions (src/, tests/, README, pyproject.toml).
  • Environment management using pyenv/venv and modern tooling (Poetry or uv) for reproducible builds.
  • Tooling configuration including black/ruff/mypy/pytest and basic CI-ready setup.

Quick Start

Use this skill to bootstrap a new Python project with a clean structure, a virtual environment, and a ready-to-use toolchain.

Example quick-start commands

mkdir my-python-project cd my-python-project python -m venv .venv source .venv/bin/activate curl -sSL https://install.python-poetry.org | python3 - poetry init mkdir -p src my_python_project tests touch README.md pyproject.toml

Activate tooling

You may prefer uv or Poetry for project management

Frequently Asked Questions about Python Directory and Configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a new Python project with a reproducible structure?

Python project setup involves creating a directory structure with src/, tests/, and configuration files, then initializing a virtual environment using pyenv or venv, and managing dependencies through Poetry or uv. This ensures consistent builds across machines and team members.

What's the best way to manage Python virtual environments and dependencies?

Use pyenv to manage Python versions and venv or Poetry/uv to create isolated environments with locked dependencies defined in pyproject.toml. This prevents version conflicts and makes projects reproducible across different machines.

How do I configure Black, Ruff, Mypy, and Pytest for a Python project?

Define tool configurations in pyproject.toml to specify linting (Ruff), formatting (Black), type checking (Mypy), and testing (Pytest) rules. This centralizes tooling settings and enables CI-ready automation from project initialization.

Can I use Poetry or uv interchangeably for Python dependency management?

Both Poetry and uv manage dependencies through pyproject.toml and create reproducible environments, but uv offers faster dependency resolution. Choose based on your team's preference and performance needs; both integrate with standard Python tooling.

What prerequisites do I need before bootstrapping a Python project?

You need Python installed via pyenv or system package manager, pip or poetry/uv available for dependency installation, and basic shell access. The skill handles the rest: scaffolding directories, initializing virtual environments, and configuring toolchains.

Why use a structured Python project layout with pyproject.toml?

Structured layouts with src/ and tests/ directories, combined with pyproject.toml configuration, reduce errors, improve team onboarding, enable dependency locking, and make CI integration straightforward. This standardization speeds project setup and maintenance.

Related Skills