Client Packet Engine
Batch pipeline that takes a list of companies and produces finished GTM pitch packets — intelligence packages, growth strategies, and executed sample work (lead lists, content drafts, email sequences). Designed for prospective client pitches, not live campaign execution. The engi
9 steps · start to finish.
- 1Step 1
Environment Setup
▶Verify inputs and initialize the output directory structure.
mkdir -p /app/results/client_packets mkdir -p /app/results/work # Confirm pitch_packet_mode is enabled unless explicitly overridden if [ "${PITCH_PACKET_MODE:-true}" = "false" ]; then echo "WARNING: pitch_packet_mode=false enables live campaign execution." echo "Emails WILL be sent and Apollo credits WILL be spent." echo "Confirm with user before proceeding." fi echo "Results dir: /app/results" echo "Client packets dir: /app/results/client_packets"Fail fast if:
- No company list was provided
PITCH_PACKET_MODEisfalsewithout an explicit user confirmation recorded in/app/results/work/live_mode_confirmed.txt
- 2Step 2
Phase 0 — Intake & Validation
▶Parse, validate, and cost-estimate the company list before spending any credits.
- 3Step 3
Phase 1 — Research & Strategy Generation (max 3 rounds per company)
▶Run the `client-onboarding` playbook (Phases 1–3) for each company to produce intelligence packages and growth strategies.
- 4Step 4
Phase 2 — Strategy Selection (Human Checkpoint)
▶Present generated strategies for user selection before executing anything in Phase 3.
- 5Step 5
Phase 3 — Strategy Execution (Pitch-Packet Mode) (max 3 rounds per strategy)
▶Execute selected strategies by routing each to the appropriate skill chain based on its `<!-- execution -->` tag.
- 6Step 6
Phase 4 — Packaging
▶Run `client-package-local` for each company to produce the final dated deliverable.
- 7Step 7
Iterate on Errors (max 3 rounds)
▶For any failed skill execution or budget overrun:
- 8Step 8
Final Report & Output Files
▶Present and write `/app/results/batch_report.md`:
- 9Step 9
Final Checklist (MANDATORY — do not skip)
▶echo "=== FINAL OUTPUT VERIFICATION ===" RESULTS_DIR="/app/results" for f in \ "$RESULTS_DIR/summary.md" \