--- name: "prog-expert-python" description: "Use when you need to implement Python 3.12+ patterns, uv workspace monorepo management, async Python, decorator patterns, pytest/mock testing, ruff/mypy configuration, Rich CLI output, pydantic-settings config, and Protocol-based interface design. Expert-level programming and pattern management." metadata: stage: "alpha" source: "MIGRATED" requires: - "impl-experts-python-contract" --- # Prog Expert Python ## Goal Expert-level Python 3.12+ development. Handles async patterns, uv monorepo management, testing strategies, type safety with mypy, config management with pydantic-settings, and CLI tooling with Rich. Maintains reusable recipes and atomic examples for this ecosystem. ## Core Workflow (Progressive Disclosure) 1. **Context Analysis**: Read relevant source files before suggesting changes. 2. **Knowledge Retrieval**: - Check `recipes/` for matching patterns (async, testing, config, CLI, decorators). - Check `atomic-examples/` for small, focused code snippets. - Fetch latest versions: `uv run scripts/track_versions.py` - Research new patterns: `uv run scripts/research_knowledge.py ""` 3. **Implementation**: Apply patterns from recipes. Follow constraints below. 4. **Learning**: After successful implementations, extract reusable patterns via `uv run programming/prog-expert-advisor/scripts/learn.py `. ## Key Domains ### uv Workspace Monorepo - Root `pyproject.toml` uses `[tool.uv.workspace]` with `members = [...]` - Local package sources via `[tool.uv.sources]` with `{ workspace = true }` - Commands: `uv sync`, `uv run