Ship production-ready Python projects faster with AI-powered development workflows
Current Version: v2.0.20260411 - Armored Pangolin
Modern Python template delivering enterprise-grade projects with OpenCode AI agents, TDD/BDD workflows, and intelligent development assistance.
π€ Enterprise AI Development Team - 5 specialized agents: Developer, Architect, Business Analyst, QA Specialist, Release Engineer
ποΈ SOLID Architecture - Object Calisthenics, Dependency Inversion, Protocol-based design with architect review
π― Mandatory QA Gates - 4 quality checkpoints enforced by QA specialist throughout development
β‘ Modern Development - Fast uv package manager, pytest + Hypothesis testing, ruff linting
π Security-First - CodeQL analysis, vulnerability scanning, and security-focused workflows
π Smart Releases - Hybrid calver versioning with AI-generated themed names
π Epic-Based Workflow - Requirements-driven development with automatic feature progression
π οΈ Simple Setup - Clone, setup, OpenCode - start building immediately
- Developers wanting AI-assisted development with modern tooling
- Teams needing structured development workflows with quality gates
- Projects requiring comprehensive testing and quality assurance
- Startups wanting to build production-ready applications quickly
- Anyone seeking a modern Python development experience
# 1. Clone the template
git clone https://github.com/nullhack/python-project-template.git your-project
cd your-project
# 2. Setup development environment (installs uv automatically if needed)
./setup.py # Creates virtual environment and installs dependencies
# 3. Start AI-powered development
opencodeThat's it! Your development environment is ready.
# In OpenCode, gather requirements first
@requirements-gatherer # Interviews stakeholders, analyzes needs
# Then start structured development
@developer /skill epic-workflow start-epic "Your Feature Name"
# Or jump straight into feature development
@developer /skill feature-definition
@developer /skill tdd
@developer /skill implementation# Run your application
task run
# Test suite (fast tests + coverage)
task test
# Code quality checks
task lint # Ruff linting and formatting
task static-check # Type checking with pyright
# Documentation
task doc-serve # Live documentation server
task doc-build # Build static docs
# Development utilities
task test-fast # Quick tests (skip slow ones)
task test-slow # Integration tests onlyThe template enforces high standards automatically:
- 100% Test Coverage - Comprehensive testing with pytest + hypothesis
- Type Safety - Full type annotations with pyright checking
- Code Quality - Ruff linting with security rules (flake8-bandit)
- Security - CodeQL analysis and vulnerability scanning
- Documentation - Auto-generated API docs with pdoc
- 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β‘ Modern Python Stack
- UV package manager (5-10x faster than pip)
- Python 3.13 with latest language features
- Task automation with taskipy
- Comprehensive testing with pytest + hypothesis
π€ 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 environment
docker-compose --profile test up # Run complete test suite
docker-compose --profile docs up # Documentation server (localhost:8080)
docker-compose --profile quality up # Code quality checks (lint + typecheck)
# Build standalone image
docker build -t python-template . # Build development image- β 100% Test Coverage - Branch and line coverage with pytest-cov
- β Container Ready - Docker development environment with hot reload and debugging
- β 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
- β Development Friendly - Hot reload, debugging support, and integrated tooling
- 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)
# Run your application
docker-compose 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 - Containerization for development environment
- Hypothesis - Property-based testing framework
β Star this repo to power your next breakthrough project!