数据分析 · 技能模板

NpsFeedbackInsightSkill

将 NPS 评分、自由文本反馈与客户信息整合,自动聚类关键主题,输出痛点、机会点与建议行动列表,并生成复盘摘要。

Skill 结构概览

  • 指令层:要求输出洞察结构、优先级和行动建议格式。
  • 资源层:包含历史 NPS 报告、客户分层标准、品牌语调参考。
  • 工具层:脚本进行聚类与情感分析,输出 JSON/Markdown 结果。

推荐资源

  1. data/nps_responses.csv —— 评分与文本反馈。
  2. data/customer_segments.csv —— 客户分层标签。
  3. scripts/nps_insight.py —— 聚类与洞察生成脚本。

示例 SKILL.md 片段

---
name: NpsFeedbackInsightSkill
description: >
  Turn NPS responses into prioritized customer insights and recommended actions for product and service teams.
version: 1.0.1
visibility: organization
tags:
  - customer-experience
  - analytics
entrypoint:
  command: analyze_nps
  label: Generate NPS insight brief
---

## When Claude should load this skill
- Use during recurring NPS reviews, quarterly business reviews, or when leadership requests customer voice summaries.
- Helpful whenever response volume is high and segmentation by persona, product tier, or geography is required.

## Core workflow
1. Reference `instructions/nps-analysis.md` for scoring buckets, sentiment labeling, and follow-up playbooks.
2. Run `python scripts/nps_insight.py` to emit `NPS_CLUSTERS` capturing themes, representative quotes, and average scores.
3. Fill `templates/insight-summary.md` with prioritized themes, owners, and next-step experiments aligned to segments.

## Linked resources
- `data/nps_responses.csv` — Raw response exports with scores, comments, and timestamps.
- `data/customer_segments.csv` — Mapping table for industry, ARR tier, lifecycle stage, and customer success owner.
- `instructions/nps-analysis.md` — Guidance on cluster naming, urgency scoring, and escalation triggers.
- `templates/insight-summary.md` — Reporting layout for sharing insights with product, support, and marketing.
- `playbooks/closed-loop.md` — Optional workflow for assigning follow-up actions back to CSMs.

nps_insight.py 样例

import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans

responses = pd.read_csv("data/nps_responses.csv")
vectorizer = TfidfVectorizer(max_features=500, stop_words="english")
X = vectorizer.fit_transform(responses["comment"].fillna(""))

cluster_count = 5
model = KMeans(n_clusters=cluster_count, random_state=42)
labels = model.fit_predict(X)
responses["cluster"] = labels

insights = (
    responses.groupby("cluster")
    .agg({"score": "mean", "comment": lambda x: list(x)[:3]})
    .reset_index()
)

print("NPS_CLUSTERS=", insights.to_dict("records"))
1

上线流程

适配客户成功与产品团队。

步骤 1: 与数据团队确认反馈导出格式及隐私合规处理。
步骤 2: 校验聚类数量与命名方式,结合客户分层输出洞察。
步骤 3: 建立例会分享机制,将洞察同步给产品、客服、市场团队。

成功指标建议

-45%

洞察准备时间

+20%

闭环行动完成率

+10

NPS 得分提升