Python Project Skel
ASecurityGenerate production-ready Python project skeletons with Astral UV package manager, Hatchling build backend with dynamic versioning, bump-my-version for semantic version management, and modern tooling (ruff, mypy, pytest, bandit). Use when creating new Python projects, initializing Python packages, setting up src-layout projects, scaffolding Python libraries, or starting a new Python application. Supports Python 3.14+ by default with configurable version. Output to current directory, specified...
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added February 7, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add zircote/agents --skill python-project-skel --agent claude-codeAre you the author of Python Project Skel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zircote-python-project-skel)---
name: python-project-skel
description: Generate production-ready Python project skeletons with Astral UV package manager, Hatchling build backend with dynamic versioning, bump-my-version for semantic version management, and modern tooling (ruff, mypy, pytest, bandit). Use when creating new Python projects, initializing Python packages, setting up src-layout projects, scaffolding Python libraries, or starting a new Python application. Supports Python 3.14+ by default with configurable version. Output to current directory, specified path, or tarball.
---
# Python Project Skeleton Generator
## Trigger Phrases
Activate when user says:
- "create a Python project", "new Python package", "scaffold Python"
- "Python project template", "Python skeleton", "initialize Python"
- "src-layout project", "Python library setup", "Python application starter"
- "pyproject.toml setup", "modern Python project", "UV project"
- "Python boilerplate", "start Python project from scratch"
- "hatchling project", "Python with ruff and mypy"
Creates production-ready Python project structures following modern best practices.
## Quick Start
Generate a project in the current directory:
```
Project name: my-awesome-project
```
The skill prompts for required info and generates a complete project structure.
## Configuration Options
| Option | Default | Description |
|--------|---------|-------------|
| Project name | (required) | Kebab-case name (e.g., `my-project`) |
| Package name | (derived) | Snake_case from project name |
| Python version | 3.14 | Minimum Python version |
| License | MIT | License type |
| Author name | (optional) | For pyproject.toml |
| Author email | (optional) | For pyproject.toml |
| Description | (optional) | Project description |
| Output mode | cwd | `cwd`, `path`, or `tarball` |
## Generated Structure
```
{project-name}/
├── pyproject.toml # Full config with all tools
├── README.md
├── LICENSE
├── Makefile # UV-based dev targets
├── src/{package_name}/
│ ├── __init__.py # With __version__ = "0.1.0"
│ ├── py.typed # PEP 561 marker
│ └── main.py # Entry point stub
└── tests/
├── __init__.py
├── conftest.py # pytest fixtures
└── test_main.py # Example test
```
## Included Tool Configurations
**pyproject.toml sections:**
- `[build-system]` - Hatchling backend
- `[project]` - Dynamic version, classifiers, URLs
- `[project.optional-dependencies]` - dev group
- `[dependency-groups]` - UV compatibility
- `[tool.hatch.version]` - Points to `__init__.py`
- `[tool.ruff]` - Format + lint (E, W, F, I, B, C4, UP, ARG, SIM)
- `[tool.mypy]` - Strict configuration
- `[tool.pytest]` - Native TOML (pytest 9.0+)
- `[tool.coverage]` - 80% threshold
- `[tool.bandit]` - Security scanning
- `[tool.bumpversion]` - Semantic versioning with bump-my-version
**Makefile targets:**
- `help` - Categorized target list
- `install`, `install-dev` - UV-based installation
- `test`, `test-cov`, `coverage` - Testing variants
- `lint`, `typecheck`, `security` - Quality tools
- `format`, `format-check` - Ruff formatting
- `quality` - All checks combined
- `build`, `clean` - Package building
- `version` - Show current version
- `bump`, `bump-patch` - Bump patch version (0.1.0 → 0.1.1)
- `bump-minor` - Bump minor version (0.1.0 → 0.2.0)
- `bump-major` - Bump major version (0.1.0 → 1.0.0)
- `bump-dry` - Preview version bump (dry run)
- `release` - Create and push release tag (auto-bumps if tag exists)
## Output Modes
1. **cwd** (default) - Create project in current working directory
2. **path** - Create at specified absolute or relative path
3. **tarball** - Create `.tar.gz` archive (useful for distribution)
## Usage
Run the generator script:
```bash
python scripts/generate_project.py \
--name my-project \
--python-version 3.14 \
--output-mode cwd
```
Or invoke interactively - the skill will prompt for required values.
## Post-Generation Steps
After generation:
```bash
cd {project-name}
uv sync # Install dependencies
make test # Run tests
make quality # Run all quality checks
```
## Version Management
The generated project includes **bump-my-version** for semantic versioning:
```bash
make version # Show current version
make bump-dry # Preview what would change
make bump-patch # 0.1.0 → 0.1.1
make bump-minor # 0.1.0 → 0.2.0
make bump-major # 0.1.0 → 1.0.0
make release # Create tag and push (auto-bumps if tag exists)
```
Version bumps automatically:
- Update `__version__` in `src/{package_name}/__init__.py`
- Create a git commit with conventional message
- Create a git tag (e.g., `v0.1.1`)
## Customization
The generated project is a starting point. Common modifications:
- Add dependencies to `[project.dependencies]`
- Adjust tool configs in pyproject.toml
- Add additional test files
- Extend Makefile with project-specific targets
Files in this skill
- SKILL.md
- scripts/generate_project.py
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.