Prompt file imported from drmoisan/invoice-etl (
.github/prompts/orchestrate-python-work.prompt.md). Copyright stays with the author.
Python Orchestration Prompt
Use this prompt to run an end-to-end Python workflow through python-orchestrator.
Objective
Coordinate the user request from intake to completion using the correct path based on rough change budget.
Inputs
- Request summary (required): clear objective and expected outcome
- Likely affected files (optional): any known production/test files
- Initial classification hint (optional):
featureorbug - Constraints (optional): APIs/paths/behavior that must remain unchanged
Required orchestration behavior
- Estimate rough change budget first (production Python files and test Python files).
- If budget is 1–3 production Python files (+ corresponding tests):
- Delegate directly to
python-typed-engineerfor plan + implementation + QA closure.
- Delegate directly to
- If budget is >3 production Python files or >3 test Python files:
- Execute full large-path lifecycle:
- Scope and create potential entry (
featurevsbug, short-name creation) - Promote to GitHub issue and capture issue metadata
- Create branch and active feature folder
- Delegate research + spec/story completion
- Scope and create potential entry (
- Delegate plan creation to
python-atomic-planning(which delegates toatomic_planner, then validates preflight viaatomic_executoruntilPREFLIGHT: ALL CLEAR) - After all-clear, delegate implementation + QA directly to
python-atomic-executor - Delegate post-implementation feature review
- Execute full large-path lifecycle:
Persistence and resume
- Maintain orchestration state in
artifacts/orchestration/python-orchestrator-state.json. - Resume from the next incomplete step if interrupted.
- Do not end early while required downstream steps remain.
Output expectations
On completion, report:
- Selected route (
smallorlarge) - Branch name (if created)
- Key captured variables (
promotion-type,short-name,issue-num,feature-folderwhen applicable) - Created/updated artifact paths
- Final readiness summary and any remaining action items