Cynthia10086

Retail Analysis Toolkit — Data skill for Claude Code

Data community

通用零售数据分析工具箱:从 14 个实战 skill 提炼的 9 类分析方法 + 诊断阈值体系.

How to install Retail Analysis Toolkit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Cynthia10086/retail-analysis-toolkit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Retail Analysis Toolkit does

通用零售数据分析工具箱:从 14 个实战 skill 提炼的 9 类分析方法 + 诊断阈值体系。零依赖 Python 库 / CLI / AI Agent Skill 三合一。General-purpose retail analytics: 9 analysis methods distilled from 14 production skills, as a Python lib, CLI, and AI Agent Skill.

Alternatives in Data

  • File Deletion — Secure file deletion and data sanitization methods 475 ★
  • Vibepod CLI — Unified CLI for running AI coding agents in isolated containers 138 ★
  • Crawl4ai Skill — Scrape JavaScript-heavy sites and extract structured data via reusable CSS schemas 46 ★

README

Retail Analysis Toolkit · 零售分析方法论工具箱

**[English](./README.en.md)** | 简体中文

[![CI](https://github.com/Cynthia10086/retail-analysis-toolkit/actions/workflows/ci.yml/badge.svg)](../../actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE) [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](./.github/workflows/ci.yml) [![零依赖](https://img.shields.io/badge/dependencies-0-success.svg)](#)

一套从 **14 个实战零售分析 Skill** 中提炼出的通用分析方法论: 任何数据源(CSV / JSON / 自有 BI),9 类分析,带诊断结论与行动建议的 Markdown 报告。 既是一个 **Python 工具库 + CLI**,也是一个开箱即用的 **AI Agent Skill**。


目录


它解决什么问题

零售运营中的分析问题高度重复:**目标达成了吗、为什么下滑、和同行比怎么样、 客流转化哪个环节出了问题、谁拖累了团队业绩、商品结构变了没有**……

这些问题背后其实是有限的几类分析方法。本项目把门店运营分析师日常使用的 14 个专项分析工具(各自绑定私有 BI、彼此割裂)做了完整梳理, 提炼出 **9 类通用分析方法 + 1 套集中管理的诊断阈值体系**, 重新实现为一个不依赖任何特定环境的开源工具箱:

  • 对数据分析师:一个零依赖(纯 Python 标准库)的分析库和 CLI, 喂 CSV/JSON 就能出带结论的报告。
  • 对 AI Agent(Claude Code / ZCode / 任意支持 Agent Skills 的客户端): 一个即装即用的 Skill——Agent 读 SKILL.md 就知道该用哪个分析方法、 怎么准备数据、怎么解读结论。

核心特性

  1. 9 类分析方法全覆盖:目标追踪、环比归因、历史基线、横评 Benchmark、 矩阵象限、能力雷达、客户漏斗、帕累托结构、商品画像、综合评价。
  2. 诊断即结论:不是只给数字,每份报告自带阈值判定的 「诊断发现(🔴🟡🟢 分级)+ 行动建议」。
  3. 数据源无关:CSV / JSON 开箱即用;对接自有 BI 只需实现 一个 fetch() 函数(DataSource 协议)。
  4. 零第三方依赖:纯 Python 标准库(3.9+),克隆即用,无需 pip install。
  5. 阈值全部可调:所有诊断阈值集中在 scripts/thresholds.py, 按业务线一行覆盖。
  6. 人机两用:CLI 给人用,SKILL.md 给 AI Agent 用,同一套引擎。

快速开始

方式一:CLI 一分钟体验

git clone https://github.com/Cynthia10086/retail-analysis-toolkit.git
cd retail-analysis-toolkit

# 用内置示例数据一键跑通全部 9 类分析
python3