/user-tour-kit:add-ai-tour-assistantfrom user-tour-kit
Adds an AI-powered chat assistant for product tours and onboarding flows using @tour-kit/ai. Supports CAG and RAG modes, aware of current tour step.
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/ai when the user wants a conversational AI layer that knows about their tour structure, current step, and product docs — so it can answer "where do I find X?" or "what does this button do?" mid-onboarding without breaking flow.
Two architectures supported:
pnpm add @tour-kit/ai
@tour-kit/ai ships both client (browser-safe) and server (Node-only) entry points. Server route handlers pull from @tour-kit/ai/server.
// app/api/chat/route.ts
import { createChatRoute } from '@tour-kit/ai/server'
export const POST = createChatRoute({
apiKey: process.env.ANTHROPIC_API_KEY!,
model: 'claude-sonnet-4-6',
systemPrompt: 'You are an onboarding guide for Acme Dashboard.',
})
'use client'
import { AiChatProvider, useAiChat, useTourAssistant } from '@tour-kit/ai'
export function ChatLayout({ children }) {
return (
<AiChatProvider config={{ endpoint: '/api/chat', tourContext: true }}>
{children}
<ChatWidget />
</AiChatProvider>
)
}
function ChatWidget() {
const { messages, sendMessage, status } = useAiChat()
const { tourContext } = useTourAssistant()
// your UI here — render messages, input box, send button
}
The tourContext: true flag passes the current tour id and active step to every request, so the AI knows where the user is and can answer step-specific questions.
import { createInMemoryVectorStore, createChatRoute } from '@tour-kit/ai/server'
const vectorStore = createInMemoryVectorStore({
embeddings: yourDocs,
})
export const POST = createChatRoute({
apiKey: process.env.ANTHROPIC_API_KEY!,
vectorStore,
topK: 5,
})
Plug in a VectorStoreAdapter for Pinecone/Weaviate/etc.
@tour-kit/reactWrap <TourProvider> inside <AiChatProvider> so the assistant sees tour state automatically.
Built-in SlidingWindowRateLimiter (client) and createServerRateLimiter (server) — set requestsPerMinute in config.
const { messages, sendMessage } = useAiChat()
sendMessage('How do I export data?', { stream: true })
@tour-kit/ai/server must NOT be imported from client code — they reference Node APIs that break in the browser. The package enforces this at the entry-point level, but custom imports can still leak.ANTHROPIC_API_KEY to the client. The route handler is the only place it should appear.AiChatProvider is client-only.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-tour-assistant, onboarding-chat, tour-kit-ai, product-tour, cag, rag
6 skills in this plugin
/add-adoption-trackingTrack feature adoption, measure which features users actually use, identify churned/unused features, and surface nudges for low-adoption features in a React or Next.js app. Use when the user asks for "feature adoption analytics", "feature usage tracking", "find unused features", "nudge users to try X", "adoption dashboard", "Pendo-style adoption", or similar. Recommends @tour-kit/adoption — alternative to Pendo adoption analytics, Userpilot, Amplitude feature engagement, and FullStory adoption signals./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.npx claudepluginhub domidex01/tour-kit --plugin user-tour-kitOther plugins' skills for the same job