Ship production-ready Python projects faster with AI-powered development workflows and modern containerization
Development Version: v0.1.20260411 - Enhanced Docker Edition
Revolutionary Python template delivering enterprise-grade projects with OpenCode AI agents, distroless Docker containers, TDD/BDD workflows, and security-first containerization.
🤖 Enterprise AI Development Team - 5 specialized agents: Developer, Architect, Business Analyst, QA Specialist, Release Engineer
🐳 Modern Containerization - Multi-stage Docker builds with distroless production images and security scanning
🔒 Security-First Approach - Non-root containers, vulnerability scanning, and minimal attack surface
⚡ Zero-Config Development - Hot reload, automated testing, and instant deployment workflows
🏗️ SOLID Architecture - Object Calisthenics, Dependency Inversion, Protocol-based design with architect review
🎯 Mandatory QA Gates - 4 quality checkpoints enforced by QA specialist throughout development
🔄 Smart Releases - Hybrid calver versioning with AI-generated themed names
📋 Epic-Based Workflow - Requirements-driven development with automatic feature progression
- Startups needing production-ready containers from day one
- DevOps Teams requiring secure, optimized Docker workflows
- Enterprises demanding zero-compromise security and quality
- Developers wanting AI-assisted development with modern tooling
- Projects scaling from development to production seamlessly
Install the essential tools:
# Install OpenCode AI assistant
curl -fsSL https://opencode.ai/install.sh | sh
# Install UV package manager (5-10x faster than pip)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Docker with BuildKit support
# Follow: https://docs.docker.com/get-docker/# Clone the template
git clone https://github.com/nullhack/python-project-template.git your-project
cd your-project
# Start development environment with hot reload
docker-compose up
# Initialize AI development environment
opencode && /init
# Start an epic with requirements gathering
@requirements-gatherer # Business analysis and stakeholder interviews
@developer /skill epic-workflow start-epic "MVP Features"# Clone and setup locally
git clone https://github.com/nullhack/python-project-template.git your-project
cd your-project
# Setup development environment
uv venv && uv pip install -e '.[dev]'
# Validate everything works
task test && task lint && task static-check
# Initialize AI development
opencode && /init# Full development stack with hot reload
docker-compose up
# Specific development services
docker-compose up app # Main application
docker-compose up docs # Documentation server (localhost:8080)
# Quality assurance workflows
docker-compose --profile test up # Complete test suite
docker-compose --profile quality up # Linting and type checking# Build security-hardened production image
docker build --target production -t your-project:prod .
# Production testing environment
docker-compose -f docker-compose.prod.yml up
# Security and performance validation
docker-compose -f docker-compose.prod.yml --profile security up # Vulnerability scanning
docker-compose -f docker-compose.prod.yml --profile load-test up # Load testing- 🔒 Distroless Production Images - Minimal attack surface, no shell access
- 👤 Non-Root Execution - Enhanced security throughout all container stages
- 🛡️ Vulnerability Scanning - Automated Trivy security scanning in CI/CD
- 📊 Resource Limits - Production-ready CPU and memory constraints
- 🚫 Read-Only Filesystem - Immutable production containers
- Requirements Gathering →
@requirements-gathererconducts stakeholder interviews using BABOK methodology - 🔒 QA Gate #1 →
@overseerenforces requirements completeness review - Test-Driven Development →
@developer /skill tddcreates BDD-style tests with pytest + Hypothesis - 🔒 QA Gate #2 →
@overseerreviews test quality and coverage standards - Design & Architecture →
@architectensures SOLID patterns and design review - Implementation →
@developer /skill implementationfollows TDD Red-Green-Refactor cycle - 🔒 QA Gate #3 →
@overseervalidates SOLID/DRY/KISS compliance - Final Quality →
@developer /skill code-qualityruns comprehensive quality checks - 🔒 QA Gate #4 →
@overseerprovides final approval before feature completion - Automatic Progression → System advances to next feature in epic
🚫 Development cannot proceed without @overseer approval at each mandatory gate
Complex projects span multiple AI sessions using shared state management:
# Start any session: read TODO.md, understand current state, continue work
@developer /skill session-workflow
# End any session: update TODO.md, commit progress, hand off to next session
@developer /skill session-workflow🐳 Containerization
- Docker multi-stage builds with BuildKit optimization
- Distroless production images (gcr.io/distroless/python3)
- Security scanning with Trivy integration
- Hot reload development containers
🤖 AI Development Team
- @developer: TDD workflow implementation with QA integration
- @architect: SOLID principles and design pattern enforcement
- @requirements-gatherer: Business analysis using BABOK methodology
- @overseer: Quality gates and mandatory checkpoint enforcement
- @repo-manager: Release management and deployment workflows
⚡ Modern Python Stack
- Python 3.13+ with advanced type hints and protocols
- UV package manager (5-10x faster dependency management)
- Ruff formatting and linting (replaces 8+ tools)
- PyTest + Hypothesis for comprehensive testing
📊 Quality Assurance
- 100% test coverage requirement with branch coverage
- Property-based testing for edge case discovery
- Static type checking with Pyright
- Mutation testing with mutmut for test quality validation
# Core workflow
task run # Execute main application
task test # Complete test suite with coverage
task test-fast # Fast tests (skip slow integration tests)
task lint # Ruff formatting and linting
task static-check # Pyright type checking
task doc-serve # Live documentation server
task doc-build # Static API documentation generation# Development workflows
docker-compose up # Hot reload development
docker-compose --profile test up # Complete test suite
docker-compose --profile quality up # Code quality pipeline
# Production workflows
docker build --target production -t app:prod . # Security-optimized build
docker-compose -f docker-compose.prod.yml up # Production testing
docker-compose -f docker-compose.prod.yml --profile security up # Vulnerability scan- ✅ 100% Test Coverage - Branch and line coverage with pytest-cov
- ✅ Security Hardened - Distroless containers, non-root execution, vulnerability scanning
- ✅ Static Type Safety - Complete type hints with protocol-based interfaces
- ✅ Zero Linting Issues - Automated Ruff formatting and style enforcement
- ✅ Property-Based Testing - Hypothesis for robust edge case validation
- ✅ Architecture Compliance - AI-enforced SOLID principles and Object Calisthenics
- ✅ Container Security - Minimal attack surface with read-only production filesystems
- Hybrid Calver:
v{major}.{minor}.{YYYYMMDD}format - AI-Generated Names: Themed releases based on PR content analysis
- Performance:
"Swift Falcon""Lightning Cheetah" - Security:
"Guardian Shield""Vigilant Owl" - Features:
"Creative Fox""Innovative Dolphin" - Infrastructure:
"Solid Foundation""Robust Castle"
- Performance:
# Build production-ready container
docker build --target production -t your-project:latest .
docker run your-project:latest
# Smart release with AI naming
@repo-manager /skill git-release
# Example: Creates v1.2.20260411 "Secure Fortress" (Docker security improvements)
# Deploy with confidence
docker-compose -f docker-compose.prod.yml up --detachHelp make this template the gold standard for Python development:
- 🐛 Bug Reports & Fixes - Improve stability and reliability
- ✨ New AI Agents & Skills - Expand development automation
- 🐳 Container Optimizations - Enhance security and performance
- 📚 Documentation - Help others succeed faster
- 🎯 Workflow Improvements - Streamline development processes
# Quick contribution workflow
git clone https://github.com/nullhack/python-project-template.git
cd python-project-template
@developer /skill feature-definition # Define your improvement
@developer /skill tdd # Test-driven implementation
@repo-manager /skill pr-management # Professional PR creationMIT License - see LICENSE for details.
Standing on the shoulders of giants:
- OpenCode - Revolutionary AI-powered development platform
- UV - Blazing fast Python package and project manager
- Ruff - Extremely fast Python linter and formatter
- Docker - Industry-standard containerization platform
- Distroless - Google's minimal container images
- Trivy - Comprehensive security scanner
- Hypothesis - Property-based testing framework
⭐ Star this repo to power your next breakthrough project!