kmeans

GitHub

该技能用于执行K-Means聚类分析,对客户或业务对象进行分群画像。流程包括识别实体特征、数据预处理(缺失值处理与标准化)、确定最优K值、计算聚类结果,并生成簇规模、中心特征及业务画像报告,同时评估异常点与稳定性。

skills/kmeans/SKILL.md Zafer-Liu/Data-Analysis-Agent

Trigger Scenarios

需要对客户群体进行细分或分群 请求对业务数据进行K-Means聚类分析 需要生成基于聚类的用户画像报告

Install

npx skills add Zafer-Liu/Data-Analysis-Agent --skill kmeans -g -y
More Options

Use without installing

npx skills use Zafer-Liu/Data-Analysis-Agent@kmeans

指定 Agent (Claude Code)

npx skills add Zafer-Liu/Data-Analysis-Agent --skill kmeans -a claude-code -g -y

安装 repo 全部 skill

npx skills add Zafer-Liu/Data-Analysis-Agent --all -g -y

预览 repo 内 skill

npx skills add Zafer-Liu/Data-Analysis-Agent --list

SKILL.md

Frontmatter
{
    "icon": "🔵",
    "name": "kmeans",
    "description": "使用 K-Means 对业务对象进行聚类画像(clustering 客户分群)",
    "allowedTools": [
        "get_schema",
        "query_data",
        "run_analysis",
        "generate_chart"
    ]
}

K-Means 聚类

确认聚类实体与特征,处理缺失值并标准化数值变量。比较合理的 K 值,报告聚类质量、各簇规模、中心特征和业务画像,并说明异常点及稳定性限制。

Tool routing

  1. Use get_schema to identify the entity key, candidate numeric features, and source table.
  2. Use query_data to verify feature availability, missingness, and scale before modeling.
  3. Use run_analysis with analysis_name="K_Means" for the clustering computation.
  4. Use generate_chart on cluster profiles, elbow output, or label result tables after run_analysis succeeds.

Implementation reference

  • Tool entry: agent/tools/business/data.py::_tool_run_analysis
  • Analysis registry: Function/Analyze/registry.py
  • Analysis implementation: Function/Analyze/K-Means/analyze.py
  • Chart implementation: Function/Charts_generation/chart_generate.py

Version History

  • d6a2c3e Current 2026-07-24 12:12

Same Skill Collection

skills/bcg-matrix/SKILL.md
skills/business-model-canvas/SKILL.md
skills/swot-analysis/SKILL.md
skills/value-proposition/SKILL.md
skills/arima/SKILL.md
skills/chart/SKILL.md
skills/dashboard/SKILL.md
skills/data/SKILL.md
skills/decile/SKILL.md
skills/export/SKILL.md
skills/funnel-analysis/SKILL.md
skills/gru/SKILL.md
skills/inset/SKILL.md
skills/logistic/SKILL.md
skills/ppt/SKILL.md
skills/prophet/SKILL.md
skills/regression/SKILL.md
skills/report/SKILL.md
skills/sarima/SKILL.md
skills/screening/SKILL.md
skills/sql/SKILL.md
skills/tree/SKILL.md
skills/trimming/SKILL.md
skills/var/SKILL.md
skills/winsorize/SKILL.md

Metadata

Files
0
Version
d6a2c3e
Hash
7f3ca7a1
Indexed
2026-07-24 12:12

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 01:53
浙ICP备14020137号-1 $방문자$