Payment selection
Add PayPal option behind flag. Preserve current default and accessibility behavior.
One practical walkthrough: adding a new payment method without losing context, scope, or progress.
wfStart→Write goal and constraints oncePlan→Validate assumptions against current codeBuild→Implement and verify one phase at a timeResume→Read persisted state instead of reconstructing chatrepo/ ├── src/ # product code ├── tests/ # verification └── .workflow/ # agent state └── changes/ └── ABC-123-.../ ├── CONTEXT.md ├── STATUS.md └── ...
Plain Markdown in .workflow/. No server. No database. Ticket directory location is lifecycle status.
wf newopen workspacewf discoverclarify intentwf breakdowncreate ticketswf planground in codewf implementbuild by phasewf completeverify and archivewf newwf new ABC-123 add paypal checkoutProvide change ID and short description. Agent resolves them to stable slug ABC-123-add-paypal-checkout and scaffolds workflow state.
ABC-123-add-paypal-checkout/ ├── CONTEXT.md ├── STATUS.md ├── 1.draft/ ├── 2.todo/ ├── 3.in-progress/ └── 4.done/
wf discover ABC-123Agent reads raw context, then interviews only missing areas: behavior, scope, dependencies, risk, rollout.
ABC-123-add-paypal-checkout/ ├── CONTEXT.md modified ├── STATUS.md 0/0 done ├── 1.draft/ ├── 2.todo/ ├── 3.in-progress/ └── 4.done/ src/ unchanged tests/ unchanged
wf breakdown ABC-123ABC-123-add-paypal-checkout/ ├── CONTEXT.md ├── STATUS.md modified └── 1.draft/ ├── 001-provider-contract/ │ └── TICKET.md ├── 002-paypal-checkout-ui/ │ └── TICKET.md └── 003-integration-coverage/ └── TICKET.md Created only after confirmation
No speculative plans. No empty progress or review files.
ABC-123-add-paypal-checkout/ ├── CONTEXT.md ├── STATUS.md ├── 1.draft/ │ ├── 001-provider-contract/ │ │ └── TICKET.md │ ├── 002-paypal-checkout-ui/ │ │ └── TICKET.md │ └── 003-integration-coverage/ │ └── TICKET.md ├── 2.todo/ ├── 3.in-progress/ └── 4.done/
wf plan ABC-123 002Explore→Components, hooks, API clients, analytics, testsValidate→Correct assumptions from TICKET.mdDesign→Phases, affected files, verification criteriaABC-123-add-paypal-checkout/ ├── 1.draft/ ├── 2.todo/ │ └── 002-paypal-checkout-ui/ │ ├── TICKET.md │ ├── PLAN.md │ └── PLAN-BRIEF.md ├── 3.in-progress/ └── 4.done/ └── 001-provider-contract/ src/ unchanged
Add PayPal option behind flag. Preserve current default and accessibility behavior.
Launch redirect, process return state, and prevent duplicate submission.
Pending/error UI, analytics events, focused component tests.
wf implement ABC-123 002 phase 1Agent reads ticket + plan, checks dependencies, moves ticket to in-progress, edits only phase scope, then runs phase checks.
1.draft/ 2.todo/ 3.in-progress/ └── 002-paypal-checkout-ui/ ├── TICKET.md ├── PLAN.md ├── PLAN-BRIEF.md └── PROGRESS.md # Application files now change too src/checkout/... tests/checkout/...
PROGRESS.md records changed files, verification results, deviations, and phase status. Verified completion boxes update in PLAN.md.
### Phase 1 Implementation - 2026-08-06 Changes made: - PaymentMethodSelector.tsx - usePaymentMethods.ts - PaymentMethodSelector.test.tsx Deviations: none Verification: - pnpm test PaymentMethodSelector PASS Phase status: completed
wf plan-review ABC-123 002wf impl-review ABC-123 002REVIEWS.md; later reviews append dated findings.wf complete ABC-123 002Readiness checksPhases, final verification, acceptance criteria, unresolved review items.
PROGRESS.mdCompletion record appended.
STATUS.mdProgress counter and next actionable ticket updated.
ABC-123-add-paypal-checkout/ ├── 1.draft/ ├── 2.todo/ ├── 3.in-progress/ └── 4.done/ ├── 001-provider-contract/ └── 002-paypal-checkout-ui/ ├── TICKET.md ├── PLAN.md ├── PLAN-BRIEF.md ├── PROGRESS.md └── REVIEWS.md
wf status ABC-123Reconciles folders, reports progress, and gives exact next action.
ABC-123-add-paypal-checkout - 2/3 done Todo 003 Integration coverage needs plan Done ✓ 001 Provider contract ✓ 002 PayPal checkout UI Recommended next action: wf plan ABC-123 003
--worktree→Optional sibling worktree; branch/ref, reuse, and installs stay confirmednew / discover→Change-level CONTEXT.md + STATUS.mdbreakdown→Draft ticket directories + TICKET.mdplan→PLAN.md + PLAN-BRIEF.md; ticket moves to todoimplement→Application code + tests + PROGRESS.md; ticket moves in-progressreviews / complete→REVIEWS.md; verified ticket moves to donestatus→Read-only, except repairing derived STATUS.md driftnpx skills add zetdotcom/workflow-agent --skill wfnpx skills add zetdotcom/workflow-agent --skill wf -ggithub.com/zetdotcom/workflow-agent
wf status