Communitygithub.com

YepAPI/skills

多步骤引导向导、进度指示器、激活检查清单和欢迎邮件序列。

skills 是什么?

该技能专注于为开发者构建高效的用户引导流程,涵盖多步骤向导、进度追踪、激活检查清单和欢迎邮件序列四个核心模块。它通过定义清晰的步骤数组、数据库持久化进度、可跳过的可选步骤以及完成动画,确保用户能顺畅地完成首次使用体验。支持通过SMTP发送定时欢迎邮件,并在仪表盘上展示激活完成百分比,帮助产品团队衡量引导效果。该技能适用于任何需要用户引导的Web应用,尤其是SaaS产品,可与PostgreSQL、Redis等后端存储配合。其核心价值在于降低用户流失率,提升产品激活率,同时避免过早向用户索取过多信息。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/onboarding-flow

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

引导流程

规则

  • 多步骤向导:将步骤定义为数组 — 在状态中追踪 currentStep,显示带有步骤计数的进度条
  • 进度指示器:顶部显示步骤编号或进度条 — 展示已完成、当前和即将进行的步骤 — 绝不隐藏剩余步骤数
  • 持久化进度:将完成步骤保存到数据库 — 用户可以离开并在下次继续
  • 激活检查清单:定义关键操作(如“创建第一个项目”、“邀请队友”、“连接集成”) — 在仪表盘上显示完成百分比
  • 欢迎邮件序列:注册后立即发送,然后在第1天、第3天、第7天发送 — 内容与用户尚未完成的检查清单项匹配
  • 跳过选项:允许用户跳过非关键步骤 — 标记为“已跳过”而非“已完成” — 提供稍后完成的机会
  • 数据收集:只询问必要信息 — 将个人信息、工作空间设置和偏好拆分为独立步骤
  • 完成庆祝:最后一步触发彩屑或成功动画 — 重定向到主产品视图

向导模式

const ONBOARDING_STEPS = [
  { id: "profile", title: "您的个人资料", required: true },
  { id: "workspace", title: "创建工作空间", required: true },
  { id: "invite", title: "邀请团队", required: false },
  { id: "integrations", title: "连接工具", required: false },
] as const;

// 在数据库中追踪
interface OnboardingState {
  userId: string;
  currentStep: number;
  completedSteps: string[];
  skippedSteps: string[];
  completedAt: Date | null;
}

激活检查清单模式

在仪表盘上显示,直到所有项目完成或用户关闭:

const ACTIVATION_ITEMS = [
  { key: "first_project", label: "创建您的第一个项目", check: (user) => user.projectCount > 0 },
  { key: "invite_member", label: "邀请一位队友", check: (user) => user.teamSize > 1 },
  { key: "first_deploy", label: "部署到生产环境", check: (user) => user.deployCount > 0 },
];

避免

  • 过早索要过多信息 — 向导中最多3-5个步骤,其余推迟
  • 无进度持久化 — 用户如果页面刷新后丢失进度会放弃
  • 强制完成所有步骤 — 允许用户跳过可选步骤
  • 无激活追踪 — 需要衡量引导完成率

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能