jaizendra-netizen / next-step-hygiene-report
PHP CLI and library: check a CSV of open deals for missing, undated and overdue next steps, and show which owners have the most deals that need attention.
Package info
github.com/jaizendra-netizen/next-step-hygiene-report
Type:project
pkg:composer/jaizendra-netizen/next-step-hygiene-report
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-30 01:58:38 UTC
README
PHP command line tool and library. Give it a CSV export of open deals (deal id, owner, next step text and next step date) and a date for today, and it sorts every deal into one of five states: no next step (the text is empty, any date is ignored), no date (there is text but no date), overdue (the date is before today), due today, or scheduled (the date is after today). It prints the count and share of each state, how many deals need attention (no next step, no date or overdue), the average and the maximum number of days overdue, a table per owner (deals, deals needing attention, share, sorted by attention count then owner name) and the first 10 deals needing attention in file order. A deal with an empty owner is grouped as (no owner). The tool never reads the clock: you pass today with --today, so the same file and date always give the same output. All percentages and averages are rounded to 1 decimal. It is a plain check of the fields in your export; whether a next step is a good one is for you to judge.
Part of the OneGTMLab free GTM tools. Background on the idea: Claude Code for sales.
Install
composer require jaizendra-netizen/next-step-hygiene-report
Use
Input is a CSV with the columns deal_id, owner, next_step and next_step_date. Column names are matched without regard to case and may be in any order. next_step_date is written yyyy-mm-dd and may be empty; deal_id may not repeat. Option --today yyyy-mm-dd is required. The command stops at the first bad row and names it. A bad date, a duplicate deal_id, a missing column, a row with the wrong number of cells, a file with no rows or a bad --today exits 1 with a message; a missing --today, an unreadable file, an unknown option or a missing argument exits 2.
$ php bin/next-step-hygiene-report sample.csv --today 2026-01-15
deals: 10, today: 2026-01-15 (from --today)
no next step: 2 (20.0%)
no date: 2 (20.0%)
overdue: 3 (30.0%)
due today: 1 (10.0%)
scheduled: 2 (20.0%)
needing attention (no next step, no date or overdue): 7 (70.0%)
days overdue: average 7.0, maximum 14.0
by owner:
Gamma: deals 3, need attention 3 (100.0%)
Alpha: deals 3, need attention 2 (66.7%)
Beta: deals 4, need attention 2 (50.0%)
first 7 deals needing attention:
D01, Alpha, overdue
D03, Alpha, no next step
D05, Beta, no date
D06, Beta, overdue
D08, Gamma, overdue
D09, Gamma, no date
D10, Gamma, no next step
Test
php tests/run.php
Offline, no network calls, no dependencies beyond the language runtime. MIT licensed.