/engineering:product-led-growthfrom engineering
Designs product-led growth motions for SaaS products: freemium tiers, PQL definition, activation flows, upgrade prompts, viral loops, NPS surveys, feature flags, and PostHog-based funnel/cohort analytics.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
| Input | Required | Use |
|---|---|---|
| Decision, audience, and deliverable | yes | Bound the business outcome |
| Source evidence, constraints, and owner | yes | Ground recommendations and accountability |
| Approved budget, customer data, or production artefacts | conditional | Support high-impact execution |
Default to read-only analysis and drafting. Do not publish, send, price, promise, alter customer records, commit budget, or modify production artefacts without explicit authority and a named approver. Minimise confidential data, preserve provenance, and keep reversible copies.
If evidence, stakeholder decisions, specialist tooling, or authoritative commercial data are unavailable, deliver a labelled draft, checklist, or decision memo. State what was not verified and do not claim approval, publication, financial accuracy, or customer acceptance.
| Condition | Action | Stop condition |
|---|---|---|
| Output creates a commercial, customer, or delivery commitment | Obtain named approval before release | Authority or terms are unclear |
| Evidence supports a reversible draft | Produce it with assumptions and owner | Required evidence conflicts |
| Tooling or data is incomplete | Specify validation | A final executable artefact is expected |
references/ directory for deep detail after reading the core workflow below.| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | Growth-loop experiment record | Markdown plus metric query | activation behaviour, trigger, cohort, guardrail, intervention, result, and rollback |
Pick the motion from product characteristics, not preference. The wrong motion wastes 12 to 18 months of runway.
Unit-economics contrast:
Hybrid is the steady state above $10M ARR — PLG acquires individuals and small teams, sales closes the enterprise contract once usage crosses a threshold.
Freemium fails when the free tier gives too much (no upgrade pressure) or too little (no adoption). Pick a split deliberately.
Example: Notion free tier = unlimited pages for an individual; Plus unlocks unlimited uploads, 30-day history, unlimited guests; Business adds SAML SSO and private team spaces; Enterprise adds audit log and SCIM.
Guardrails:
A PQL is a user whose in-product behaviour signals buying intent strong enough to hand to sales or trigger an upgrade sequence. Unlike an MQL, a PQL has demonstrated value extraction.
Concrete PQL definition for a collaborative work tool:
Operationalise as a SQL query:
SELECT u.user_id, u.email, u.signup_date
FROM users u
JOIN (SELECT user_id FROM events
WHERE event_name = 'project_created'
AND event_time >= NOW() - INTERVAL '7 days'
GROUP BY user_id HAVING COUNT(*) >= 3) p ON p.user_id = u.user_id
JOIN (SELECT DISTINCT inviter_id FROM invites
WHERE accepted_at IS NOT NULL) i ON i.inviter_id = u.user_id
JOIN (SELECT DISTINCT user_id FROM events
WHERE event_name = 'limit_hit') l ON l.user_id = u.user_id
WHERE u.plan = 'free';
Or as a PostHog cohort: users where project_created (last 7 days) >= 3 AND invite_accepted at least once AND limit_hit at least once.
Activation is the moment a new user first experiences core value. Target time-to-first-value (TTFV) under 10 minutes; every minute beyond drops activation by 5 to 10 percentage points.
Activation checklist with 4 to 6 steps shown as a dashboard progress bar:
Track completion as a single activated_at timestamp per user. Each step should take under 90 seconds. Order reflects the shortest path to value, not the easiest path to navigate. Skipping is allowed but discouraged (soft dismiss, not permanent hide).
Empty states are the most under-invested surface in SaaS. A blank dashboard on first login produces 40% of churn in the first 24 hours. Treat first-use empty state as onboarding:
Minimal React empty-state component:
interface EmptyStateProps {
title: string; description: string
primaryActionLabel: string; onPrimaryAction: () => void
onLoadSampleData?: () => void; videoUrl?: string
}
export function EmptyState(p: EmptyStateProps) {
return (
<div className="empty-state">
<h2>{p.title}</h2>
<p>{p.description}</p>
{p.videoUrl && <video src={p.videoUrl} autoPlay muted loop playsInline />}
<button className="btn-primary" onClick={p.onPrimaryAction}>{p.primaryActionLabel}</button>
{p.onLoadSampleData && (
<button className="btn-secondary" onClick={p.onLoadSampleData}>Load sample data</button>
)}
</div>
)
}
Upgrade prompts must be contextual, not interruptive. The highest-converting moment is the instant the user hits a limit — they have demonstrated need.
Copy focuses on unlocked value, not price. Yes: "Unlock unlimited projects and advanced analytics." No: "Upgrade now for $29/month."
Example upgrade modal with three paid tiers:
function UpgradeModal({ open, onClose, reason }: UpgradeModalProps) {
const tiers = [
{ name: 'Pro', price: '$12/seat/mo', features: ['Unlimited projects', 'Priority support'] },
{ name: 'Team', price: '$24/seat/mo', features: ['Pro +', 'Admin controls', 'SSO'] },
{ name: 'Enterprise', price: 'Contact us', features: ['Team +', 'SLA', 'Audit log'] },
]
if (!open) return null
return (
<dialog open>
<h2>Unlock more with a paid plan</h2>
<p>{reason}</p>
<div className="tier-grid">
{tiers.map((t) => (
<article key={t.name}>
<h3>{t.name}</h3><p className="price">{t.price}</p>
<ul>{t.features.map((f) => <li key={f}>{f}</li>)}</ul>
<button className="btn-primary">Choose {t.name}</button>
</article>
))}
</div>
<button className="btn-link" onClick={onClose}>Maybe later</button>
</dialog>
)
}
Viral loops are structural, not campaigns. Build them into the product shape. Four types:
Viral coefficient: $K = i \times c$ — i is average invites per user, c is conversion rate of invites to active users. K > 1 compounds without paid acquisition; K between 0.5 and 1 amplifies paid/organic; K < 0.5 is a bonus, not an engine. Measure K monthly per cohort; it decays as the addressable network saturates.
NPS is a coarse but comparable satisfaction metric. Collect it in-app, not by email.
Response workflow by segment:
NPS = (% promoters) - (% detractors). Above 40 is good for B2B SaaS; above 50 strong; above 70 elite.
Feature flags decouple deploy from release. For PLG they enable gradual rollout, A/B testing of onboarding, and flag-gated premium features.
Rollout ramp: deploy behind disabled flag -> enable for internal + paid pilots (1%) -> 5% free users, monitor 48h -> 25%, monitor 72h -> 100% if metrics stable or improved.
Minimal PostHog flag check:
import { useFeatureFlagEnabled } from 'posthog-js/react'
export function OnboardingEntrypoint() {
const newOnboarding = useFeatureFlagEnabled('new-onboarding-v2')
return newOnboarding ? <OnboardingV2 /> : <OnboardingV1 />
}
Server-side equivalent in Node:
import { PostHog } from 'posthog-node'
const client = new PostHog(process.env.POSTHOG_KEY!)
const flag = await client.isFeatureEnabled('new-onboarding-v2', userId)
Always pair flag rollout with an A/B analysis measuring statistical significance on the primary metric (activation, conversion, retention).
Six metrics are sufficient to run a PLG motion. Add more only when an executive can name the decision each will drive.
Review all six on a single weekly dashboard with a 4-week moving average next to every metric; single snapshots lie.
PostHog is the reference implementation because it supports events, session replay, feature flags, experiments, and cohorts in one product. Mixpanel or Amplitude work equivalently; adjust syntax.
Complete client-side setup:
import posthog from 'posthog-js'
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
api_host: 'https://eu.i.posthog.com',
person_profiles: 'identified_only',
capture_pageview: false,
})
// Identify on sign-in
posthog.identify(userId, { email, plan, signupDate })
// Capture custom events
posthog.capture('project_created', { projectId, templateId })
// Feature flag check
if (posthog.isFeatureEnabled('new-onboarding-v2')) {
// render new flow
}
Event naming: object_verb_past — project_created, invite_accepted, limit_hit, upgrade_completed. Always attach a stable object id (projectId) and super-properties (plan, tenant_id) so every event is segmentable.
Build funnels for activation, PQL-to-paid, and upgrade; cohorts for PQLs, power users, detractors; retention charts weekly per signup cohort.
Progressive disclosure through a persistent checklist turns onboarding from a one-shot tour into a multi-session activation engine.
Checklist item schema:
interface ChecklistItem {
id: string
title: string
helpText: string
action: { label: string; href?: string; onClick?: () => void }
completedPredicate: (state: UserState) => boolean
}
const onboardingChecklist: ChecklistItem[] = [
{
id: 'create_workspace',
title: 'Set up your workspace',
helpText: 'Name your workspace and pick a timezone.',
action: { label: 'Set up', href: '/settings/workspace' },
completedPredicate: (s) => Boolean(s.workspace?.name && s.workspace?.timezone),
},
{
id: 'first_project',
title: 'Create your first project',
helpText: 'Projects group related work; start with one.',
action: { label: 'New project', onClick: () => openNewProjectModal() },
completedPredicate: (s) => s.projectCount >= 1,
},
{
id: 'invite_teammate',
title: 'Invite a teammate',
helpText: 'Collaboration is where this product compounds.',
action: { label: 'Invite', onClick: () => openInviteModal() },
completedPredicate: (s) => s.acceptedInviteCount >= 1,
},
]
Evaluate completedPredicate on every render, not from a stored boolean — users complete steps through back-door paths (API, imports) and the checklist must reflect reality.
Track checklist completion as the activation metric; surface it until completed; fade it on first completion and hide after 7 days.
PLG products fail without self-serve documentation because nobody is paid to hold the user's hand. Treat docs as product surface.
Structure around jobs ("How do I invite a teammate?") not features ("User management"). Every article answers one question and links to 3 related questions.
Measure time-on-page, search zero-results, and ticket-deflection rate. A deflection rate above 60% is the break-even point for PLG support economics.
B2B PLG follows bottom-up adoption: individual contributor adopts, team follows, department standardises, executive signs the master contract.
Timeline pattern (Slack, Figma, Notion, Linear, Loom):
Operational consequences:
Example: Figma reached $400M ARR through bottom-up adoption — design team invites PMs, PMs invite engineers, organisation standardises, CTO signs the enterprise contract.
Funnels and loops model different growth dynamics. Confusing them produces wasted spend.
Three canonical loops:
ASCII diagram of a viral loop:
+-----------+ +----------+ +--------+ +-------------+
| New User |--> | Activate |--> | Invite |--> | Invitee |--+
| Sign-up | | (value) | | /share | | sees value | |
+-----------+ +----------+ +--------+ +-------------+ |
^ |
+----------------------------------------------------------+
(feeds next cycle)
Design the loop explicitly: name each node, measure conversion between nodes, identify the weakest edge, improve it, rerun. A loop with a 10% leak per node still compounds if cycle time is short enough.
saas-growth-metrics — AARRR funnel, NPS, cohort retention, A/B testing frameworksaas-business-metrics — MRR/ARR/LTV/CAC — the revenue metrics that PLG ultimately driveshabit-forming-products — Hooked model, variable rewards, investment phaselean-ux-validation — validate PLG hypotheses with smoke tests before buildingsubscription-billing — trial/plan lifecycle that PLG motions convert intoux-writing — microcopy for activation prompts, empty states, upgrade CTAsposthog.com/docsopenviewpartners.comDo not approve a PLG intervention without an observable activation event, segment denominator, guardrail, experiment owner, and rollback or stop rule.
| Artefact | Consumer | Acceptance condition |
|---|---|---|
| PLG experiment and instrumentation plan | Product, growth, and revenue teams | Activation event, PQL threshold, cohort cuts, upgrade trigger, guardrail, owner, and stop rule are testable from named telemetry |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions.Other plugins' skills for the same job