| name | agent-ops-create-python-project |
| description | Create a plan and issues for implementation of a production-ready Python project with proper structure, tooling, and best practices. |
| license | MIT |
| compatibility | ["opencode","claude","cursor"] |
| metadata | {"category":"extended","related":["agent-ops-interview","agent-ops-tasks","agent-ops-state","agent-ops-planning"]} |
Skill: agent-ops-create-python-project
Create a plan and issues for implementation of a production-ready Python project
Templates: See TEMPLATES.md for pyproject.toml, build.py, README, AGENTS.md, .gitignore
Triggers
- User asks to create a new Python project
- User provides project requirements/discussion to convert into implementation
- User wants to scaffold a CLI tool, library, or application in Python
Procedure
Phase 1: Requirements Gathering
- If input provided: Analyze the discussion/requirements
- If no input: Interview user about:
- Project name and purpose
- Core features/commands
- External services/APIs needed
- Data processed (files, APIs, databases)
- CLI, library, or both?
- Specific dependencies?
Phase 2: Architecture Design
Extract from requirements:
- Features: List all behaviors/capabilities
- Data Models: Entities and relationships
- Dependencies: Map features to PyPI packages
- Modules: Cohesive, loosely-coupled units
- Interfaces: Public APIs per module
Phase 3: Issue Creation
Create issues for:
- Project scaffold (pyproject.toml, README, .gitignore, AGENTS.md)
- Build pipeline (scripts/build.py)
- Configuration (src/package/config.py)
- CLI layer (src/package/cli.py)
- Core modules (one issue per module)
- Test infrastructure (tests/conftest.py)
- Unit tests (tests/unit/*)
Phase 4: Plan Generation
Create plan with:
- Dependency order (scaffold โ config โ core โ CLI โ tests)
- Estimated effort per issue
- Quality gates between phases
Project Structure
project-name/
โโโ pyproject.toml # Config, dependencies, tools
โโโ README.md # Overview, install, usage
โโโ AGENTS.md # AI agent guidelines
โโโ .gitignore
โโโ scripts/
โ โโโ build.py # Build pipeline
โโโ src/<package>/
โ โโโ __init__.py
โ โโโ cli.py # Thin CLI (typer)
โ โโโ config.py # Configuration
โ โโโ <modules>.py # Core logic
โโโ tests/
โโโ conftest.py
โโโ unit/
โโโ integration/
Code Standards
Design Principles
- SRP: One responsibility per module/function
- DRY: No duplicated logic
- Dependency Injection: Accept dependencies as parameters
Architecture Rules
- Thin CLI: Parse/format only, delegate to core
- No src imports:
from <package> not from src.<package>
- Config via environment:
.env + python-dotenv
Function Guidelines
- Max 15 lines per function
- Max 3 levels of nesting
- Type annotations on ALL functions
Output Checklist