trystan-sa/product-engineer
Skills for product engineers and product owners: prepare user interviews and usability tests, count the clicks on a happy path, test flows against a UX budget, plan feature adoption, instrument analytics, design and read A/B tests, review launches against their goals, and measure design-system adoption.
Design an A/B test that can answer its question — hypothesis, one primary metric, guardrails, randomization unit, minimum detectable effect, sample size and duration with a bundled calculator — decide whether a test is worth running at all, and implement the variant behind the project's feature-flag tool (GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash or in-house flags). Use when asked to A/B test, experiment, split test, or validate a change with data before rolling it out.
Audit and fix accessibility in the product's real UI code against WCAG 2.2 AA — contrast, semantics, keyboard and focus, screen-reader names and announcements, forms and errors, motion, target size — combining the automated checks the project supports (axe, lint rules) with a manual review of what tools can't catch. Use when accessibility is questioned, before shipping user-facing UI, for a compliance review, or when ux-review flags accessibility issues.
Plan how users will discover, try, activate and keep using a feature — map entry points against the moments users need it, define the adoption funnel and the value moment, design empty states and onboarding, plan launch communication, and diagnose low adoption after launch. Use when launching or relaunching a feature, when a shipped feature is under-used, or when asked about discoverability, onboarding, activation or feature adoption.
Measure how much of a codebase actually uses its design system — token coverage versus hardcoded colors, spacing and font sizes, design-system components versus local re-implementations and forks — find the hotspots and the repeated patterns that should become components, and plan a ratcheted migration with lint rules and safe codemods. Use when asked whether the design system is used, why the UI is inconsistent, to inventory components, or to plan a design-system migration.
Extract design tokens — color, typography, spacing, radii, shadows, motion, breakpoints — from a codebase, brand guide or screenshots into a tokens file in the project's own format (CSS variables, Tailwind theme, TypeScript or DTCG JSON), and report where the product disagrees with itself. Use when a project has no tokens yet, when asked to "extract tokens" or "build a design system from the code", or before measuring design-system adoption.
Analyze a finished A/B test and recommend a decision — validity checks first (sample ratio mismatch, duration, exposure), then lift, confidence intervals and p-values from a bundled script, guardrails and pre-registered segments, and a ship / iterate / roll back call with a stakeholder summary and flag cleanup. Use when an experiment has ended, or when someone asks "did the test win?", "is this significant?", or to read A/B results.
Frame a feature before it is built — the user problem, a job story, one success metric with baseline and target, the adoption hypothesis, a click budget for the happy path, scope cuts, and kill criteria. Use when starting a new feature, epic or ticket, when someone says "we should build X", or when a spec has no measurable goal.
Turn a user flow into an end-to-end test with a UX budget — the test fails when the happy path needs more clicks, fields or page loads than allowed, so UX regressions break CI the way performance regressions do. Playwright by default, adapted to Cypress or the project's existing E2E setup. Use when asked to test a flow, add a click budget, keep onboarding, signup or checkout from getting longer, or after a happy-path audit sets a budget.
Count what it costs a user to finish a task — clicks, fields, characters typed, screens, decisions, waits — by tracing the flow through the real code, estimate task time with the Keystroke-Level Model, and propose ranked reductions with their savings and a click budget. Use when asked "how many clicks does it take to…", to audit or simplify a flow, onboarding, checkout or form, or to compare two versions of a flow.
Design and implement product analytics for a feature — a tracking plan with event names, properties and funnel definitions, wired into the analytics tool the project already uses (PostHog, Amplitude, Segment, Mixpanel, GA4, RudderStack, Snowplow or an in-house wrapper), then verified to fire once with the right data. Use when a feature needs metrics, when asked to add tracking, analytics or events, or when a brief, adoption plan or A/B test needs events that don't exist yet.
Check a shipped feature against what its brief promised — verify the data can be trusted, pull the real numbers for the primary metric, guardrails and adoption funnel, compare them with the targets and kill criteria, find the first broken funnel stage, and recommend keep, rework or remove, with flag and code cleanup. Use when a feature reaches its review date or has been live for a few weeks, when someone asks "is this feature working?", or before investing more in a feature.
Map and fix everything that can go wrong along a user flow — validation errors, server failures, empty, loading and slow states, permissions, expired sessions, double submits, refresh and back button mid-flow — and flag dead ends where the user has no way forward. Use when a flow is about to ship or has just been audited, when users report "it just spins" or "I lost my data", or when asked about edge cases or error handling in the UI.
Plan and synthesize a small usability test — research questions tied to a decision, participant criteria, realistic task scenarios with success criteria, a moderator script with post-task questions, a note-taking grid, and a synthesis that ranks issues by severity and frequency and links each to a fix. Works on a prototype, staging or production, moderated or unmoderated. Use when the team is unsure about a flow before building or shipping it, when analytics show a drop nobody can explain, or when asked to plan user testing.
Prepare and synthesize discovery interviews — a research plan tied to a decision, a screener that checks real behavior, an interview guide built on past events rather than opinions, and a synthesis that turns notes or transcripts into evidence-backed jobs, pains and opportunities with counts and quotes. Use when a feature idea lacks evidence, when a brief marks the problem as an assumption, when planning customer research, or when you have interview notes or transcripts to synthesize.
Review a pull request or branch for UX regressions before merge — flow cost before and after (clicks, fields, screens), missing error, empty and loading states, accessibility of the changed UI, design-system drift, missing analytics or feature flag, and unclear UI copy — and report blockers with file:line fixes. Use when asked to review a PR or branch for UX, before merging user-facing changes, or as the final check on a feature.