This repository contains Ouroboros, a specialized Google Antigravity (AGY) plugin designed to enforce and automate high-quality, standardized Python development workflows.
Ouroboros establishes a rigorous Software Development Life Cycle (SDLC) and Software Testing Life Cycle (STLC) for Python projects. It equips AI agents with the rules, skills, and execution hooks necessary to build clean, testable, and secure modular monoliths or monorepos on Linux using pyenv and pipenv.
The plugin is structured into four core components: Rules, Skills, Subagents, and Lifecycle Hooks/Scripts.
- py-way-of-working.md: Defines Git flow, branch naming (
conventionalbranch.org), commit messages (conventionalcommits.org), strict TDD cycles (Red-Green-Refactor), security guidelines, and task automation. - py-architecture.md: Establishes the directory structure (
src/andtests/), clean architecture layers, dependency direction boundaries, absolute imports, containerization (multi-stage Pipenv Dockerfiles), and templates for configuration files (Makefile, Pipfile, setup.cfg, .gitignore, .envrc). - py-coding-style.md: Enforces PEP 8, strict type hints, explicit method overrides (
@typing.override), naming conventions (noIprefixes on interfaces), and modern Python 3.11–3.14 features. - py-domain-driven-design.md: Guides Domain-Driven Design (DDD) encapsulation, factory method initialization, aggregates, value objects, and transactional outbox patterns.
- py-bdd.md: Sets rules for writing declarative, concise, and independent Gherkin/BDD scenarios.
- py-testing.md: Defines test structures using
pytest, fluent assertions withassertpy, property-based tests viaHypothesis, and mock usage.
py-add-comments: Automatically documents classes and public methods using Sphinx Napoleon Google Style docstrings.py-create-project: Scaffolds a new modular monolith repository structure populated with all configuration files and a pipeline-verifying dummy test.py-create-module: Adds a new vertical bounded context slice or deployable service skeleton to an existing project.py-dockerize-service: Generates multi-stage Pipenv Dockerfiles and Compose configurations for a service.py-normalize-project: Automatically refactor, format, and normalize Python/C# files to conform to conventions.py-scaffold-bdd: Automatically generates Python step definitions from Gherkin feature files.py-scaffold-tests: Generates pytest, Hypothesis, and assertpy unit test templates and builders.
Specialized agent profiles containing model configurations, rules, and custom skills:
- py-developer: Specialized Python developer agent that creates, refactors, and implements features using Clean Architecture, DDD, and monadic pipelines. Configured with advanced reasoning models (e.g.
gemini-3.1-pro-high) and strict implementation quality loops (Factory Model). - py-reviewer: Specialized Python reviewer and auditor agent that evaluates codebases for Clean Architecture, DDD, and coding style compliance using fast audit models (e.g.
gemini-3.5-flash-medium).
Contains automation hooks and code generation commands:
- precommit_security_check.py: Scans staged code changes to prevent hardcoded passwords, tokens, API keys, or private credential files from leaking into Git history.
- lint_compliance_check.py: Prevents commits containing C#-style Hungarian notation (
class IUserRepository), Arrange/Act/Assert comments in tests, or layer dependency violations. - create_value_object.py: Command line utility to automatically scaffold fully-encapsulated monadic Domain Value Objects and their unit tests.
To learn more about configuring, installing, and managing hooks and plugins in Google Antigravity, refer to the official documentation:
