A Python project template with an AGENTS.md-based documentation system for AI agent guidance.
- AGENTS.md System: Hierarchical documentation indexes for AI agents
- Modern Python Tooling: uv, pytest, ruff
- Container Support: Rootless UBI9 S2I container builds
- Agent Workspace: Structured scratch space with templates
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and setup
git clone https://github.com/YOUR-USERNAME/python-project-template.git
cd python-project-template
uv sync --extra dev
# Run tests
make test
# Run linting
make lint├── AGENTS.md # AI agent guidance (start here)
├── .agents/ # Agent-specific resources
│ ├── commands/ # Slash command definitions
│ ├── docs/ # Granular documentation
│ │ ├── tooling/ # uv, pytest, ruff
│ │ ├── patterns/ # Code patterns
│ │ ├── conventions/# Naming, imports
│ │ ├── workflows/ # PR, testing, releases, contributing
│ │ └── architecture/# Design decisions
│ ├── learnings/ # Discovered patterns
│ ├── scratch/ # Agent working space
│ └── templates/ # Reusable templates
├── src/my_package/ # Source code (rename to your package)
└── tests/ # Tests
This project uses AGENTS.md files as indexes. Before making changes:
- Read the
AGENTS.mdin the directory you're working in - Follow linked documentation in
.agents/docs/ - Update docs when patterns are learned
See AGENTS.md for the root index.
- Create from template or clone this repository
- Rename package:
mv src/my_package src/your_package - Update references: Search for
my_packageand replace - Update pyproject.toml: Change name, description, authors
make help # Show all targets
make install # Install dependencies
make dev # Install with dev dependencies
make test # Run tests
make lint # Run linting
make format # Format code
make build # Build container image
make run # Run containerSee .agents/docs/workflows/contributing.md for agent contribution guidelines.
Apache License 2.0 - see LICENSE