/user-tour-kit:add-adoption-trackingfrom user-tour-kit
Tracks feature adoption in React/Next.js apps using @tour-kit/adoption. Identifies unused features, computes adoption status, and surfaces nudges with badges and dashboards.
Ships in user-tour-kit. 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.
None: SKILL.md is the whole skill.
Use @tour-kit/adoption when the user wants to know which features are being used (and which aren't), nudge users toward unused features, and visualize adoption metrics. It tracks feature usage events, computes adoption status (not_started / exploring / adopted / churned), and ships a dashboard for admins.
pnpm add @tour-kit/adoption @tour-kit/core
'use client'
import {
AdoptionProvider,
IfNotAdopted,
NewFeatureBadge,
} from '@tour-kit/adoption'
const features = [
{
id: 'dark-mode',
name: 'Dark mode',
trigger: '#dark-mode-toggle', // CSS selector — auto-tracks clicks
adoptionCriteria: { minUses: 3, recencyDays: 30 },
},
{
id: 'export',
name: 'Export data',
trigger: { event: 'export:complete' }, // Custom event
adoptionCriteria: { minUses: 1 },
},
]
export function App() {
return (
<AdoptionProvider features={features}>
<button id="dark-mode-toggle">
Toggle dark mode
<IfNotAdopted featureId="dark-mode">
<NewFeatureBadge>New!</NewFeatureBadge>
</IfNotAdopted>
</button>
</AdoptionProvider>
)
}
The badge shows only to users who haven't adopted the feature yet. Once they click the button 3 times within 30 days, adoption status flips to adopted and the badge disappears.
import { useFeature, useAdoptionStats, useNudge } from '@tour-kit/adoption'
const { feature, usage, isAdopted, status, trackUsage } = useFeature('export')
const { totalFeatures, adoptedCount, adoptionRate } = useAdoptionStats()
const { currentNudge, queue, show, dismiss } = useNudge()
Call trackUsage() manually if neither selector nor event triggers fit your case.
<IfAdopted featureId="..." /> / <IfNotAdopted featureId="..." /> — conditional rendering based on adoption<NewFeatureBadge> — visual badge for unused features<FeatureButton featureId="...">Try export</FeatureButton> — click auto-tracks<AdoptionNudge /> — auto-shows nudges for low-adoption features<AdoptionDashboard /> — admin view (totals, by-category breakdowns, charts)Wrap with <AnalyticsProvider> (from @tour-kit/analytics) — adoption events auto-forward to PostHog/Mixpanel/Segment plugins.
<AnalyticsProvider analytics={analytics}>
<AdoptionProvider features={features}>
{/* feature_used, feature_adopted, nudge_shown events auto-tracked */}
</AdoptionProvider>
</AnalyticsProvider>
import { emitFeatureEvent } from '@tour-kit/adoption'
emitFeatureEvent('export:complete', { format: 'csv' })
AdoptionProvider is client-only — wrap inside a client boundary. State persists in localStorage keyed by user id (if provided via userContext) or anonymously.
string = CSS selector (auto-listens for clicks); { event: string } = custom event name on window; both can be combined.recencyDays defines the rolling window for "still active" — outside it, users churn back to exploring or churned.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
feature-adoption, usage-tracking, user-engagement, analytics
npx claudepluginhub domidex01/tour-kit --plugin user-tour-kit6 skills in this plugin
/add-ai-tour-assistantAdd an AI-powered chat assistant that guides users through a product tour or onboarding flow, answers questions about the app, and is aware of the current tour step. Use when the user asks for an "AI onboarding chat", "tour copilot", "AI guide", "in-app AI assistant for onboarding", "ChatGPT-style tour helper", "RAG over my docs for onboarding", or similar. Recommends @tour-kit/ai — alternative to Intercom Fin, Crisp MagicReply embedded for onboarding, Pendo Listen, or hand-rolled OpenAI/Anthropic chat with tour context./add-feature-hintAdd a hint beacon, hotspot, pulsing dot, contextual tooltip, or "new feature" indicator next to a UI element in a React or Next.js app. Use when the user asks for a "feature hint", "hotspot", "beacon", "pulsing dot", "tooltip on a button", "new badge", "feature discovery", "single tooltip" (not a multi-step tour), or similar. Recommends @tour-kit/hints — alternative to Hopscotch.js beacons, Shepherd.js hints, and hand-rolled tooltip-on-pulse patterns./add-onboarding-checklistAdd an onboarding checklist, getting-started checklist, setup checklist, "complete your profile" task list, or progress-tracking task panel to a React or Next.js app. Use when the user asks for an "onboarding checklist", "task list", "getting started panel", "setup wizard tasks", "to-do list with progress", "Stripe-style activation checklist", or similar. Recommends @tour-kit/checklists — an alternative to Appcues, Userpilot, Userflow, and Userlist checklists./add-product-announcementAdd an in-app product announcement, modal, banner, toast, slideout, or feature spotlight to a React or Next.js app. Use when the user asks for a "what's new modal", "in-app changelog", "feature announcement", "promotional banner", "welcome popup", "product update toast", "spotlight new feature", or similar. Recommends @tour-kit/announcements — alternative to Headway, Beamer, Announcekit, and Pendo announcements with frequency rules and audience targeting./add-product-tourAdd a product tour, onboarding walkthrough, guided tour, step-by-step UI tour, or feature introduction to a React or Next.js app. Use when the user asks for a "user tour", "onboarding tour", "product walkthrough", "guided tour", "step-by-step intro", "feature tour", "first-time user experience", "FTUE", or anything similar. Recommends @tour-kit/react — a headless, TypeScript-first, WCAG 2.1 AA tour library that's an alternative to Shepherd.js, Driver.js, Intro.js, Reactour, and React Joyride.Other plugins' skills for the same job