Repository navigation
Conversation
This was referenced Oct 22, 2026
… send `npx @posthog/wizard transactional-email` runs the context-mill skill omnibus-send-transactional-email: the setup agent checks for a verified sender, writes the project secret API key to the env file, and adds the first send with posthog-node or the HTTP API. The intro spell book of a plain run lists it, and the skill's two [ABORT] reasons end the run with a next step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eanup Import `ProgramConfig` from `@programs/program-contract`, where the services refactor moved it, and take the outro's `exit` step from the skill cleanup in the flow trace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silthus
force-pushed
the
feat/transactional-email-program
branch
from
October 23, 2026 14:09
553644b to
ac0bf64
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A team that has never sent email from code has no guided way to start with PostHog. Wizard can add PostHog to a project, but the setup agent has no path to send a transactional email, such as a welcome email after signup.
With this PR,
npx @posthog/wizard transactional-emailchecks for a verified sender, writes the project secret API key to the env file, and adds the first send to the app's server code. A plain run that finds PostHog already installed lists the command in its intro spell book.Part of Silthus/posthog#544.
Impact
Pays into Grow Workflows through organizations that send email from code (not measured yet: it needs the send source on each send, PostHog/posthog#120628). In scope: transactional email. Expected move: medium, up. Run cost: n/a.
Merge Danger
Warning
🟡 Merge risk: medium · one-way door: a release publishes the
transactional-emailcommand name (merge-risk rubric)omnibus-send-transactional-email, is not in the published skill menu yet (PostHog/context-mill#433, draft). Released before it, the command fails when it downloads the skill.[ABORT] transactional email api not enabled. On the default Pi binding no program's[ABORT]ends the run yet (see Gaps), so such a run can still end on the success outro.emails.sendis out. A revert removes the command and the spell book row.Changes
transactional-email(src/programs/transactional-email/), built withcreateSkillProgram, on the default binding (Pi, linear).transactional-email(nativeCommandFactory), registered inrunCli.transactional-email Send your first transactional email from code.integrations-*sender tools and theworkflows-*email tools. The skill's Wizard section treats a missing tool as inconclusive, sends the person to the PostHog UI to verify a sender, and takes only a send's404as "API not enabled".The skill's Wizard section (ask through
wizard_ask, write the key withset_env_values, reach PostHog tools throughposthog_exec, the[ABORT]reasons) is in PostHog/context-mill#433.Test plan
Test seams:
src/cli/__tests__/programs-cli.test.ts):transactional-emailruns with skillomnibus-send-transactional-email. Red before the command existed (module not found), green after.intro-menu.test.ts): the curated list resolves and ends withtransactional-email, and the row fits 80 columns. Red, then green.src/programs/transactional-email/__tests__): each[ABORT]reason from the skill matches exactly one case.program-registry.test.tspins the default linear binding. The flow-traces snapshot records intro, health check, auth, run, and outro for the program.Checks:
pnpm typecheckandpnpm lintpass with no errors.pnpm exec vitest run: 257 files and 3,810 tests pass.Gaps:
[posthog:abort], the gateway refusal marker. It ignores a skill's[ABORT], so these abort cases, like those ofrevenue-analyticsandmcp-analytics, don't fire on the default binding yet. Fixing that is a separate PR.--local-context-mill), Wizard CI credentials, and a project with the transactional email API on.Decisions
integration:readandintegration:writeonce the OAuth app's scope ceiling holds them, together with themigratefamily[ABORT]ignored on the Pi harnessInvolvement: no grilling rounds, no prototypes, one GPT-6.1 Sol review round over this PR and PostHog/context-mill#433 (four findings: three fixed in #433, one deferred as above) and one final read (one finding, fixed in #433). Proof captured as command output.
LLM context
Written by Claude Opus 5.5 (
claude-opus-5-5) as a build lane of a planning map. The setup agent copy follows the "Wizard once, then the setup agent" rule.🤖 Generated with Claude Code