marketing-mindset 1.3.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/bin/cli.js +131 -0
  3. package/package.json +9 -3
package/README.md CHANGED
@@ -59,3 +59,19 @@ The same checklist is a browser tool with a live score:
59
59
  <https://axelfreeman.github.io/marketing-mindset/tools/aeo-readiness-checklist.html>.
60
60
  If you want the plumbing in that checklist built for you (offer page, query-intent pages, schema,
61
61
  `llms.txt`, IndexNow, the tracked event), packages are published at https://axelfreeman.com/marketing-engineer.html.
62
+
63
+ ### Sending ramp: `warmup`
64
+
65
+ ```
66
+ npx -y marketing-mindset@1.4.0 warmup --start 2026-09-21 --target 200 --days 21 --mailboxes 4
67
+ ```
68
+
69
+ Day-by-day ramp for a new sending domain: starts at 20/day (or the target, if smaller), grows by half a day, never above the target, and prints the four stop rules (bounce >2%/day, complaints >0.1%, any reply ends that sequence, opens halving with flat sends -> drop back two ramp days). `--json` gives the machine-readable schedule. Work with me: https://axelfreeman.com/marketing-engineer.html
70
+
71
+ ### Test budget: `budget`
72
+
73
+ ```
74
+ npx -y marketing-mindset@1.5.0 budget --base 0.03 --lift 0.2 --cpl 4 --daily 500
75
+ ```
76
+
77
+ The money side of the same floor `sample` computes: contacts needed in both arms, cost per arm and cost to read the test at your cost per contact, days to the floor at a given daily volume, and the spend guard (below the floor the difference is noise, not a result). `--json` for agents. Work with me: https://axelfreeman.com/marketing-engineer.html
package/bin/cli.js CHANGED
@@ -167,6 +167,129 @@ function runJd(opts) {
167
167
  return 0;
168
168
  }
169
169
 
170
+ /* warmup — day-by-day sending ramp. Deterministic: same inputs, same schedule. */
171
+ function runWarmup(opts) {
172
+ const start = opts.start === undefined ? "" : String(opts.start);
173
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(start) || isNaN(Date.parse(start))) {
174
+ console.error("warmup: --start must be YYYY-MM-DD (got: " + JSON.stringify(start) + ")");
175
+ return 1;
176
+ }
177
+ const target = Number(opts.target === undefined ? 0 : opts.target);
178
+ if (!isFinite(target) || target <= 0) {
179
+ console.error("warmup: --target must be a positive number of sends per day (got: " + JSON.stringify(opts.target) + ")");
180
+ return 1;
181
+ }
182
+ const days = Number(opts.days === undefined ? 21 : opts.days);
183
+ if (!isFinite(days) || days < 1 || days > 180) {
184
+ console.error("warmup: --days must be between 1 and 180 (got: " + JSON.stringify(opts.days) + ")");
185
+ return 1;
186
+ }
187
+ const mailboxes = Number(opts.mailboxes === undefined ? 1 : opts.mailboxes);
188
+ if (!isFinite(mailboxes) || mailboxes < 1) {
189
+ console.error("warmup: --mailboxes must be >= 1");
190
+ return 1;
191
+ }
192
+ const date0 = new Date(start + "T00:00:00Z");
193
+ const rows = [];
194
+ let prev = Math.min(20, target);
195
+ let cumulative = 0;
196
+ let reached = 0;
197
+ for (let i = 0; i < days; i++) {
198
+ const vol = i === 0 ? prev : Math.min(target, Math.max(prev, Math.round(prev * 1.5)));
199
+ const d = new Date(date0.getTime() + i * 86400000);
200
+ if (vol >= target && !reached) reached = i + 1;
201
+ cumulative += vol;
202
+ rows.push({ day: i + 1, date: d.toISOString().slice(0, 10), sends: vol, cumulative: cumulative });
203
+ prev = vol;
204
+ }
205
+ const perMailbox = Math.round((target / mailboxes) * 10) / 10;
206
+ if (opts.json) {
207
+ console.log(JSON.stringify({
208
+ start: start, target_per_day: target, days: days, mailboxes: mailboxes,
209
+ first_day: rows[0].sends, full_volume_day: reached || null,
210
+ total_sends: cumulative, per_mailbox_at_target: perMailbox,
211
+ schedule: rows,
212
+ stop_rules: [
213
+ "hard bounce rate over 2% in a day: stop the day, find the source",
214
+ "spam complaint over 0.1%: stop the campaign, not the day",
215
+ "any reply: the sequence stops for that person, replied is the goal",
216
+ "deliverability dip (opens down by half with sends flat): drop back two ramp days"
217
+ ]
218
+ }, null, 2));
219
+ return 0;
220
+ }
221
+ console.log("Warmup plan: start " + start + ", target " + target + " sends/day over " + days + " days"
222
+ + (mailboxes > 1 ? ", " + mailboxes + " mailboxes (" + perMailbox + "/mailbox/day)" : ""));
223
+ console.log("day date sends cumulative");
224
+ rows.forEach(function (r) {
225
+ console.log(String(r.day).padStart(3) + " " + r.date + " " + String(r.sends).padStart(5)
226
+ + " " + String(r.cumulative).padStart(10));
227
+ });
228
+ console.log("day 1 starts at " + rows[0].sends + "; full volume on day " + (reached || "not reached within --days")
229
+ + "; " + cumulative + " sends total in the window.");
230
+ console.log("Stop rules: bounce >2%/day -> stop the day; complaints >0.1% -> stop the campaign;"
231
+ + " any reply -> that person's sequence ends; opens halving with flat sends -> drop back two ramp days.");
232
+ console.log("-- Method and packages: https://axelfreeman.com/marketing-engineer.html");
233
+ return 0;
234
+ }
235
+
236
+ /* budget — the money it takes to read a test, from the same sample-size floor as `sample`. */
237
+ function runBudget(opts) {
238
+ const base = Number(opts.base === undefined ? 0 : opts.base);
239
+ const lift = Number(opts.lift === undefined ? 0 : opts.lift);
240
+ if (!isFinite(base) || base <= 0 || base >= 1) {
241
+ console.error("budget: --base must be a rate between 0 and 1 (got: " + JSON.stringify(opts.base) + ")");
242
+ return 1;
243
+ }
244
+ if (!isFinite(lift) || lift <= 0) {
245
+ console.error("budget: --lift must be a positive relative lift, e.g. 0.2 for +20% (got: " + JSON.stringify(opts.lift) + ")");
246
+ return 1;
247
+ }
248
+ const cpl = Number(opts.cpl === undefined ? 0 : opts.cpl);
249
+ if (!isFinite(cpl) || cpl <= 0) {
250
+ console.error("budget: --cpl must be a positive cost per contact (got: " + JSON.stringify(opts.cpl) + ")");
251
+ return 1;
252
+ }
253
+ const power = opts.power === undefined ? 0.8 : opts.power;
254
+ const alpha = opts.alpha === undefined ? 0.05 : opts.alpha;
255
+ const daily = opts.daily === undefined ? 0 : Number(opts.daily);
256
+ if (opts.daily !== undefined && (!isFinite(daily) || daily <= 0)) {
257
+ console.error("budget: --daily must be a positive number of contacts per day");
258
+ return 1;
259
+ }
260
+ const perArm = sampleSize(base, lift, power, alpha);
261
+ const bothArms = perArm * 2;
262
+ const perArmCost = Math.round(perArm * cpl * 100) / 100;
263
+ const totalCost = Math.round(bothArms * cpl * 100) / 100;
264
+ const days = daily > 0 ? Math.ceil(bothArms / daily) : null;
265
+ const p2 = base * (1 + lift);
266
+ const expectedLift = Math.round((p2 - base) * 10000) / 10000;
267
+ if (opts.json) {
268
+ console.log(JSON.stringify({
269
+ base_rate: base, target_rate: Math.round(p2 * 10000) / 10000, relative_lift: lift, power: power, alpha: alpha,
270
+ per_arm: perArm, contacts_needed: bothArms, cost_per_contact: cpl,
271
+ cost_per_arm: perArmCost, cost_to_read_the_test: totalCost,
272
+ daily_contacts: daily > 0 ? daily : null, days_to_read: days,
273
+ spend_guard: [
274
+ "below the per-arm floor the difference is noise, not a result - that spend is a donation",
275
+ "decide the kill rule before the first send: what result ends the test and what result doubles it",
276
+ "if cost_to_read_the_test is more than the deal is worth, change the base rate or the channel, not the sample"
277
+ ],
278
+ method: "two-proportion sample size; same formula as `marketing-mindset sample`"
279
+ }, null, 2));
280
+ return 0;
281
+ }
282
+ console.log("Honest test budget: base " + (base * 100).toFixed(2) + "% -> target " + (p2 * 100).toFixed(2)
283
+ + "% (relative lift " + lift + "), power " + power + ", alpha " + alpha);
284
+ console.log("Per arm: " + perArm + " contacts | both arms: " + bothArms + " contacts");
285
+ console.log("At $" + cpl + " per contact: $" + perArmCost + " per arm, $" + totalCost + " to read the test");
286
+ if (days) console.log("At " + daily + " contacts/day: " + days + " days to reach the floor");
287
+ console.log("Spend guard: under the floor the difference is noise, not a result - that spend is a donation.");
288
+ console.log("Kill rule first: what result ends the test, what result doubles it.");
289
+ console.log("Method and packages: https://axelfreeman.com/marketing-engineer.html");
290
+ return 0;
291
+ }
292
+
170
293
  const cmd = (process.argv[2] || "").toLowerCase();
171
294
  const rest = process.argv.slice(3);
172
295
 
@@ -201,6 +324,10 @@ if (cmd === "sample") {
201
324
  }, null, 2));
202
325
  } else if (cmd === "aeo") {
203
326
  process.exit(runAeo(flags(rest)));
327
+ } else if (cmd === "budget") {
328
+ process.exit(runBudget(flags(rest)));
329
+ } else if (cmd === "warmup") {
330
+ process.exit(runWarmup(flags(rest)));
204
331
  } else if (cmd === "jd") {
205
332
  process.exit(runJd(flags(rest)));
206
333
  } else if (cmd === "sections") {
@@ -225,6 +352,10 @@ Usage:
225
352
  --base 0.03 --lift 0.2 --power 0.8 --alpha 0.05
226
353
  npx marketing-mindset kill kill rule for a running test
227
354
  --base 0.03 --n 1500 --lift 0.2
355
+ npx marketing-mindset budget what an honest test costs before you can read it
356
+ --base 0.03 --lift 0.2 --cpl 4 [--daily 500]
357
+ npx marketing-mindset warmup day-by-day sending ramp with stop rules
358
+ --start 2026-09-21 --target 200 --days 21 --mailboxes 4
228
359
  npx marketing-mindset jd marketing engineer job description
229
360
  --level senior --mode fulltime --surfaces seo,out,analytics
230
361
  npx marketing-mindset aeo agent-readiness / AEO checklist (23 weighted checks)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "marketing-mindset",
3
- "version": "1.3.2",
4
- "description": "A marketer's operating mindset as an installable agent skill and CLI: test-size floors, kill rules, agent-readiness checklist, marketing-engineer job description. npx marketing-mindset sample|kill|aeo|jd|sections|read|install.",
3
+ "version": "1.5.0",
4
+ "description": "A marketer's operating mindset as an installable agent skill and CLI: test-size floors, kill rules, agent-readiness checklist, marketing-engineer job description. npx marketing-mindset sample|kill|budget|warmup|aeo|jd|sections|read|install.",
5
5
  "keywords": [
6
6
  "agent-skill",
7
7
  "skill",
@@ -13,7 +13,13 @@
13
13
  "llm",
14
14
  "prompt",
15
15
  "sample-size",
16
- "job-description"
16
+ "job-description",
17
+ "cold-email",
18
+ "deliverability",
19
+ "warmup",
20
+ "budget",
21
+ "cac",
22
+ "unit-economics"
17
23
  ],
18
24
  "license": "MIT",
19
25
  "author": "Axel Freeman",