w-repurchase-calculator

W Repurchase Calculator: used when you need to calculate or analyze repurchase metrics such as repurchase rate, repurchasing users, and repurchase GMV share. It is triggered when users mention keywords like repurchase rate, repurchase metrics, repurchase calculation, repurchase analysis, W repurchase, or when e-commerce repurchase metrics need to be calculated by a fixed definition.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "w-repurchase-calculator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-eedf8afc1f04022d6e224512ec2799f070b8bd28ca79f341ea3aaf18e53260c7. Verify the upstream source and version against https://skillhub.cn/skills/user_df47da6d/calculation before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

W Repurchase Calculator: used when you need to calculate or analyze repurchase metrics such as repurchase rate, repurchasing users, and repurchase GMV share. It is triggered when users mention keywords like repurchase rate, repurchase metrics, repurchase calculation, repurchase analysis, W repurchase, or when e-commerce repurchase metrics need to be calculated by a fixed definition.

0 Downloads

Introduction source: third_party · user_df47da6d · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: w-repurchase-calculator
description: W复购指标计算器。在用户需要计算或分析复购率、复购用户、复购GMV占比等指标时使用。触发条件:用户提及复购率、复购指标、复购计算、复购分析、W复购、repurchase rate等关键词,或需要按固定口径计算电商复购相关指标。

W复购指标计算器

概述

本 skill 提供一套标准化、可校验的电商复购指标计算方案。核心能力:

  1. 固定口径计算:活跃用户/复购用户/月复购率/人均复购次数/复购GMV占比/用户分层
  2. 六级校验流水线:值域校验 → 交叉等式验算 → 分布占比求和校验 → 环比校验 → 样本量级校验 → 二次重算复核
  3. 批量处理:支持 CSV/JSON/Excel 输入,输出结构化 JSON 指标报告

所有计算口径与校验规则均固定,不可修改。

使用方式

方式一:命令行调用(推荐批量场景)

python scripts/calculate_repurchase.py <输入文件> -p "2025-06" -o report.json

支持参数:

  • input:CSV/JSON/Excel 文件路径
  • -p, --period:统计周期标签(如 2025-06)
  • -o, --output:输出 JSON 路径(默认 stdout)
  • --prev:上期指标 JSON(用于环比校验)

方式二:Python API(嵌入分析流程)

import pandas as pd
from scripts.calculate_repurchase import batch_calculate

df = pd.read_csv("orders_202506.csv")
report = batch_calculate(df, period_label="2025-06")
print(report["状态"])  # PASS / WARNING / INSUFFICIENT_SAMPLE

方式三:对话式分析(用户上传数据)

当用户在对话中提供订单数据文件或描述数据结构时:

  1. 读取数据文件(CSV/Excel/JSON)
  2. 确认列名映射(user_id / amount / order_time)
  3. 调用 scripts/calculate_repurchase.py 的 batch_calculate() 函数
  4. 解读输出报告,重点分析:
    • 核心指标数值与趋势
    • 用户分层结构
    • 复购频次与间隔分布
    • 校验结果与异常明细

执行流程

原始数据 → 数据清洗 → 批量计算 → 值域校验 → 交叉等式验算 → 分布占比校验 → 环比重算 → 样本量校验 → 二次重算复核 → 输出报告

全部校验通过 → 输出完整指标报告 任意校验失败 → 输出异常明细 + 失败项详情

重要规则

  1. 计算口径不可修改:所有公式和阈值均为固定值,详见 references/calculation_rules.md
  2. 样本不足时禁止输出分层方案:活跃用户 < 30 或复购用户 < 10 时,不输出用户分层与归因经营方案
  3. 脏数据自动拦截:值域越界(负数、超100%百分比)判定为原始数据问题,中止输出
  4. 校验优先于报告:任意校验失败都会在报告中明确标注,不可跳过

输出解读要点

  • 状态 = PASS:数据质量合格,指标可采信
  • 状态 = WARNING:存在校验异常但非致命(如环比波动过大),需人工确认
  • 状态 = INSUFFICIENT_SAMPLE:样本不足,不可用于经营决策
  • 状态 = ERROR:无有效数据或数据格式异常

文件结构

w-repurchase-calculator/
├── SKILL.md                           # 本文件
├── scripts/
│   └── calculate_repurchase.py        # 核心计算与校验引擎
└── references/
    └── calculation_rules.md           # 完整计算口径与校验规则参考

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供标准化电商复购指标计算方案,解决高频刚需场景
  • 具备六级校验流水线,确保数据质量与指标可信度
  • 支持批量处理与多种输入格式,提升分析效率
Trigger Precision95/100

Highlights

  • 触发词覆盖完整,包含中英文关键词变体
  • 边界清晰,专门针对复购指标计算场景
Structure and Standards90/100

Highlights

  • 结构清晰完整,涵盖概述、使用方式、执行流程、重要规则等
  • 提供三种使用方式示例,满足不同场景需求
  • 文件结构说明完整,便于用户理解与部署
Execution Reliability88/100

Highlights

  • 核心计算引擎路径明确,参数定义清晰
  • 覆盖主要异常场景处理机制
  • 样本不足时自动拦截,避免错误决策
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.