claude-skill-app-onboarding-questionnaire

claude-skill-app-onboarding-questionnaire

Claude Code 技能,借鉴了 Noom、Headspace 和 Duolingo 等顶级订阅应用中经实证有效的转化模式,用于设计并构建高转化的问卷式应用新手引导(Onboarding)流程。

83Star
15Fork
更新于 2026/7/9
SKILL.md
只读
名称
claude-skill-app-onboarding-questionnaire
描述

Claude Code 技能,借鉴了 Noom、Headspace 和 Duolingo 等顶级订阅应用中经实证有效的转化模式,用于设计并构建高转化的问卷式应用新手引导(Onboarding)流程。

应用新手引导问卷(App Onboarding Questionnaire)

技能由 ara.so 提供 — Daily 2026 Skills 系列。

一款 Claude Code 技能,可分析你现有的应用代码库,并生成完整的、高转化的问卷式新手引导流程 — 包括所有文案、页面设计和生产就绪的代码 — 均参考了顶级订阅应用的成熟转化模式。

功能特点

当你在项目中运行 /app-onboarding-questionnaire 时,该技能会:

  1. 分析你的代码库 — 读取应用的源代码、manifest/plist 文件以及现有页面,以了解应用的目标、目标用户和所需权限
  2. 定义用户转变 — 构建引导故事背后的“使用前/使用后”对照叙事
  3. 设计逐页蓝图 — 使用包含 14 个页面的心理学转化框架
  4. 撰写所有文案 — 标题、问题、选项、CTA(行动说明)、用户推荐、社交证明
  5. 构建页面代码 — 基于你应用的原生框架(SwiftUI、React Native、Flutter、Jetpack Compose 等)

安装说明

选项 1:全局技能目录

cd ~/.claude/skills
git clone https://github.com/adamlyttleapps/claude-skill-app-onboarding-questionnaire.git app-onboarding-questionnaire

选项 2:项目级依赖

添加到项目的 .claude/settings.json:

{
  "skills": [
    "github:adamlyttleapps/claude-skill-app-onboarding-questionnaire"
  ]
}

使用方法

导航至你的应用项目目录并运行:

/app-onboarding-questionnaire

该技能具有交互性 — 会提出澄清问题并逐步构建。进度会保存到 Claude Code 的记忆系统中,以便你可以跨会话恢复。

14 页框架

# 页面 转化目的
1 欢迎页 吸引注意 — 展示最终成果,激发使用欲望
2 目标提问 “你想实现什么目标?” — 心理投入
3 痛点收集 “是什么阻碍了你?” — 建立共情
4 社交证明 匹配用户画像的证言
5 类 Tinder 滑动卡片 划动同意/不同意痛点表述
6 定制化解决方案 反射痛点并配合应用解决方案的数据统计
7 对比表 使用与不使用应用的对比 (可选)
8 偏好设置 用于演示的特定功能个性化
9 权限预热 在弹出系统对话框前进行基于价值的预热铺垫
10 加载/处理时刻 “正在为你量身定制 X...” 制造期待感
11 应用 Demo 用户实际体验核心应用机制
12 价值交付 具象化的输出成果 + 分享/病毒式传播契机
13 账号注册门槛 可选的登录步骤,用于保存已创建的内容
14 付费墙 (Paywall) 包含试用期、社交证明、价格方案的硬性付费墙

并非每个应用都需要所有页面 — 该技能会根据你应用的复杂度和类型进行调整。

核心优势

应用 Demo 页

用户不仅是看浏览引导,而是亲自操作 — 选择食谱、完成一项练习、对交易进行分类 — 并获得具象化的结果。这是第 11 页,也是对转化率影响最大的页面。

权限预热 (第 9 页)

技能会自动从你的代码库中检测所需的权限:

  • iOS:读取 Info.plist 中的 NSCameraUsageDescription、NSLocationWhenInUseUsageDescription 等
  • Android:读取 AndroidManifest.xml 中的 uses-permission 条目
  • React Native / Flutter:同时检查两者

对于找到的每个权限,它都会在系统对话框显示之前生成一个包含权益说明的预热页面。这种方式的转化率可达 70–80%+,而直接弹窗只有 ~40%。

病毒式 / 分享契机 (第 12 页)

Demo 的输出成果经过专门设计,非常适合分享 — 例如膳食计划、健身计划、理财预估。这就是自然增长的起点。

代码示例

SwiftUI — 目标提问页面

// 由 /app-onboarding-questionnaire 生成
import SwiftUI

struct GoalQuestionView: View {
    @EnvironmentObject var onboardingState: OnboardingState
    
    let goals = [
        OnboardingOption(id: "lose_weight", emoji: "⚖️", title: "Lose weight", subtitle: "Reach a healthier body"),
        OnboardingOption(id: "build_muscle", emoji: "💪", title: "Build muscle", subtitle: "Get stronger and leaner"),
        OnboardingOption(id: "eat_healthier", emoji: "🥗", title: "Eat healthier", subtitle: "Improve my nutrition"),
        OnboardingOption(id: "save_time", emoji: "⏱️", title: "Save time cooking", subtitle: "Quick, easy meals")
    ]
    
    var body: some View {
        VStack(spacing: 24) {
            OnboardingHeader(
                title: "What's your main goal?",
                subtitle: "We'll personalise everything around this"
            )
            
            VStack(spacing: 12) {
                ForEach(goals) { goal in
                    OnboardingOptionRow(
                        option: goal,
                        isSelected: onboardingState.selectedGoal == goal.id
                    ) {
                        onboardingState.selectedGoal = goal.id
                    }
                }
            }
            
            Spacer()
            
            PrimaryButton(title: "Continue", isEnabled: onboardingState.selectedGoal != nil) {
                onboardingState.advance()
            }
        }
        .padding()
    }
}

React Native — Tinder 滑动卡片页面

// 由 /app-onboarding-questionnaire 生成
import React, { useState } from 'react';
import { View, Text, StyleSheet, Animated, PanResponder } from 'react-native';
import { useOnboarding } from '../context/OnboardingContext';

const PAIN_STATEMENTS = [
  "I don't know what to cook each week",
  "I end up wasting food I've bought",
  "Healthy eating feels too complicated",
  "I spend too long deciding what to make",
];

export function TinderCardsScreen() {
  const { addAgreedPain, advance } = useOnboarding();
  const [currentIndex, setCurrentIndex] = useState(0);
  const position = new Animated.ValueXY();

  const panResponder = PanResponder.create({
    onStartShouldSetPanResponder: () => true,
    onPanResponderMove: (_, gesture) => {
      position.setValue({ x: gesture.dx, y: gesture.dy });
    },
    onPanResponderRelease: (_, gesture) => {
      if (gesture.dx > 120) {
        swipe('agree');
      } else if (gesture.dx < -120) {
        swipe('disagree');
      } else {
        Animated.spring(position, { toValue: { x: 0, y: 0 }, useNativeDriver: true }).start();
      }
    },
  });

  const swipe = (direction: 'agree' | 'disagree') => {
    if (direction === 'agree') {
      addAgreedPain(PAIN_STATEMENTS[currentIndex]);
    }
    Animated.timing(position, {
      toValue: { x: direction === 'agree' ? 500 : -500, y: 0 },
      duration: 250,
      useNativeDriver: true,
    }).start(() => {
      position.setValue({ x: 0, y: 0 });
      if (currentIndex + 1 >= PAIN_STATEMENTS.length) {
        advance();
      } else {
        setCurrentIndex(i => i + 1);
      }
    });
  };

  return (
    <View style={styles.container}>
      <Text style={styles.title}>Do these sound familiar?</Text>
      <Text style={styles.subtitle}>Swipe right if yes, left if no</Text>
      <Animated.View
        style={[styles.card, { transform: position.getTranslateTransform() }]}
        {...panResponder.panHandlers}
      >
        <Text style={styles.cardText}>{PAIN_STATEMENTS[currentIndex]}</Text>
      </Animated.View>
    </View>
  );
}

Flutter — 数据处理/加载页面

// 由 /app-onboarding-questionnaire 生成
import 'package:flutter/material.dart';

class ProcessingScreen extends StatefulWidget {
  final VoidCallback onComplete;
  const ProcessingScreen({required this.onComplete, super.key});

  @override
  State<ProcessingScreen> createState() => _ProcessingScreenState();
}

class _ProcessingScreenState extends State<ProcessingScreen>
    with SingleTickerProviderStateMixin {
  late AnimationController _controller;
  int _stepIndex = 0;

  final List<String> _steps = [
    'Analysing your goals...',
    'Matching your preferences...',
    'Crafting your personal plan...',
    'Almost ready!',
  ];

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(vsync: this, duration: const Duration(seconds: 4))
      ..addListener(() {
        final newIndex = (_controller.value * _steps.length).floor().clamp(0, _steps.length - 1);
        if (newIndex != _stepIndex) {
          setState(() => _stepIndex = newIndex);
        }
      })
      ..forward().whenComplete(widget.onComplete);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            CircularProgressIndicator(value: _controller.value),
            const SizedBox(height: 32),
            AnimatedSwitcher(
              duration: const Duration(milliseconds: 400),
              child: Text(
                _steps[_stepIndex],
                key: ValueKey(_stepIndex),
                style: Theme.of(context).textTheme.titleMedium,
              ),
            ),
          ],
        ),
      ),
    );
  }
}

SwiftUI — 权限预热页面(根据 Info.plist 自动生成)

// 根据 Info.plist 中检测到的 NSCameraUsageDescription 生成
struct CameraPermissionPrimingView: View {
    @EnvironmentObject var onboardingState: OnboardingState
    
    var body: some View {
        VStack(spacing: 32) {
            Image(systemName: "camera.fill")
                .font(.system(size: 64))
                .foregroundColor(.accentColor)
            
            VStack(spacing: 12) {
                Text("Scan ingredients instantly")
                    .font(.title2.bold())
                Text("Point your camera at any ingredient or barcode and we'll find matching recipes in seconds — no typing needed.")
                    .multilineTextAlignment(.center)
                    .foregroundColor(.secondary)
            }
            
            VStack(spacing: 8) {
                Label("Identify 10,000+ ingredients", systemImage: "checkmark.circle.fill")
                Label("Scan barcodes for nutrition info", systemImage: "checkmark.circle.fill")
                Label("Works offline for pantry items", systemImage: "checkmark.circle.fill")
            }
            .foregroundColor(.primary)
            
            Spacer()
            
            PrimaryButton(title: "Enable Camera Access") {
                // 在此预热页面之后显示系统提示框
                onboardingState.requestCameraPermission()
            }
            
            Button("Not now") {
                onboardingState.skipPermission(.camera)
            }
            .foregroundColor(.secondary)
        }
        .padding(32)
    }
}

新手引导状态管理模式

该技能会生成一个中心状态对象,用于追踪所有页面的进度:

// SwiftUI 示例
class OnboardingState: ObservableObject {
    @Published var currentScreen: OnboardingScreen = .welcome
    @Published var selectedGoal: String?
    @Published var agreedPains: [String] = []
    @Published var preferences: UserPreferences = .default
    @Published var demoResult: DemoOutput?
    
    // 持久化保存至 UserDefaults,使引导流程在应用重启后依然有效
    func advance() {
        let next = currentScreen.next(given: self)
        withAnimation { currentScreen = next }
        save()
    }
    
    func save() {
        // 技能会生成适合你技术栈的序列化代码
    }
}

配置选项

运行 /app-onboarding-questionnaire 时,技能会询问以下选项:

选项 描述
应用类型 订阅制、免费增值(freemium)、一次性买断
核心循环 用户在你的应用中执行的单项核心操作
目标受众 应用服务于谁(用于确定文案风格)
付费墙触发时机 在账号创建前还是创建后展示付费墙
跳过的页面 对比表、账号门槛等
品牌颜色 用于生成的 SwiftUI/CSS/Flutter 主题代码

恢复会话

进度将自动保存至 Claude Code 的记忆库中。若要恢复:

/app-onboarding-questionnaire resume

若要从特定页面重新开始:

/app-onboarding-questionnaire --from=paywall

常见问题排查

技能未能正确检测到我的权限

  • iOS:确保 Info.plist 位于项目根目录或 <AppName>/Info.plist
  • Android:确保 AndroidManifest.xml 位于 app/src/main/AndroidManifest.xml
  • React Native:技能会自动检查这两个位置

生成的代码使用了错误的框架

  • 技能会通过文件扩展名(.swift、.tsx、.dart、.kt)推断框架
  • 如果检测失败,可以显式指定:/app-onboarding-questionnaire --framework=swiftui

付费墙页面与我的支付提供商不匹配

  • 技能生成的是 UI 外壳;请单独接入你的支付提供商(RevenueCat、StoreKit 2、stripe-react-native)
  • 推荐使用 RevenueCat 集成 — 技能会生成兼容的购买调用点

希望减少简单应用的引导页面

  • 技能会在初始化设置期间询问复杂度
  • 你也可以直接指定:/app-onboarding-questionnaire --screens=welcome,goal,processing,paywall

参考资料

该框架基于对 Mob 食谱应用 19 页新手引导流程的深度分析,该流程被广泛认为是 App Store 上转化率最高的引导体验之一;同时融合了 Noom、Headspace 和 Duolingo 的成熟设计模式。