O2O Product Availability Analysis: Batch Generation of Weekly Reports on Store Best-Seller Shortages and Stockouts

Introduction

In O2O store operations, analyzing stockouts of best-selling products typically involves pulling ERP exports store by store, cross-referencing headquarters’ top products with warehouse inventory, and manually compiling weekly reports and cross-store comparisons. When there are many stores, the same set of spreadsheets must be repeated numerous times. Below is an introduction to the SkillHub community Skill “o2o-stockout-analysis.” It codifies the workflow of “Multi-store ERP Data → Single-store Weekly Report → Cross-store Comparison” into an Agent-executable process, complete with batch scripts. It is designed to be triggered on-demand within clients that support Skills, such as Cursor.

What is this

o2o-stockout-analysis (Coordinate @user_40ba62fc/o2o-stockout-analysis, Version 1.0.0) is a community Skill on SkillHub, categorized under business-ops, and published by user_40ba62fc (listed as author “Hua Ge” on the page). The package’s metadata.json defines it as a tool for “one-click batch generation of weekly stockout reports for best-selling products across multiple stores,” classified as operational data analysis.

It does not require an external API Key (tag requires_api_key=false). Official entry points:

  • API URL: https://api.skillhub.cn/user_40ba62fc/o2o-stockout-analysis
  • SkillHub Page: https://www.skillhub.cn/skills/user_40ba62fc/o2o-stockout-analysis

Core Functions

According to the SKILL.md within the package, once enabled, the Agent assists with the following capabilities (the file is the source of truth):

  1. ERP Data Preprocessing: Converts store-exported xls files to xlsx to facilitate subsequent template processing.
  2. Single-Store Stockout Weekly Report: Generates a “Best-selling Product Stockout Weekly Report” based on a universal template, classifying status by inventory quantity (Complete Stockout: 0 items, Low Stock: 1–5 items, Stock Low: 6–15 items, Normal Stock: >15 items).
  3. Multi-Store Batching: Supports specifying export files and store names for multiple stores at once for batch reporting.
  4. Cross-store Comparison: Generates a stockout rate comparison table and outputs an HTML report.
  5. Reminders: The workflow description includes the intent to set up a “7-day comparison reminder.”

The single-store weekly report Excel contains 7 Sheets: Summary Dashboard, Complete Stockout, Low Stock, Stock Low, Normal Stock, Full Details (document states complete data for 304 products), and Recommended Restocking Table.

Fixed Reference Data (Document requires these to be placed on the local desktop):

File Description
国信TOP品.xlsx Best-selling product catalog (304 products)
国信商品库存情况.xlsx Warehouse inventory (approx. 38,000 entries)

Trigger Keywords (Facilitates activation in conversation): Stockout weekly report, batch generate report, store report, best-selling product stockout.

Installation and Activation

Method 1: Let the Agent install via SkillHub instructions

The installation prompt provided on the SkillHub page is: First read https://skillhub.cn/install/skillhub.md, then install the coordinate @user_40ba62fc/o2o-stockout-analysis.

Method 2: Use the skillhub CLI

If the CLI is not installed on your machine, check the version first:

command -v skillhub && skillhub --version

If not installed, follow the official documentation (full installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install the Skill to the skills directory recognizable by the current Agent (the documentation emphasizes using --dir, otherwise the default ./skills/ may not be loaded):

skillhub install o2o-stockout-analysis --namespace user_40ba62fc --dir ~/.cursor/skills/

Common paths for other clients (from skillhub.md, replace --dir based on your actual environment):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Skills list according to your client’s requirements.

Typical Usage

The following examples are excerpted from SKILL.md. You can reproduce the intent by attaching ERP export files in the conversation (@ indicates passing the file to the Agent):

Basic Usage:

生成缺断周报
@file1.xlsx 门店名1
@file2.xlsx 门店名2

Batch Generation:

批量生成以下门店周报:
@export瑞安信一店.xls 瑞安信一店
@export瑞安安阳分店.xls 瑞安安阳分店

With Cross-store Analysis:

生成周报 + 横向分析
@门店1.xlsx 门店名1
@门店2.xlsx 门店名2

Output Path Conventions (Relative to working directory):

  • Single Store: 热销品缺断周报\{日期}第{周数}周\热销品缺断周报_{门店名}_清晰版.xlsx
  • Cross-store Comparison: 热销品缺断周报\{日期}第{周数}周\缺断率横向对比.xlsx
  • HTML: 热销品缺断周报\{日期}第{周数}周\缺断率横向对比.html

The package also provides an entry script scripts/批量生成.py: After filling in the desktop path, download directory, working directory, and template path in the configuration section, it scans Downloads for export*.xls / export*.xlsx and calls a subprocess to generate reports. metadata.json marks this script as entry.

Applicable Scenarios and Notes

Who is it for

  • Multi-store O2O / Retail operations teams that periodically need to create “Best-selling Product Stockout” weekly reports and cross-store comparisons.
  • Scenarios that already possess a set of Guoxin system TOP product lists, warehouse inventory tables, and where ERP exports contain fields for Product Code, Product Name, and Quantity.

Limitations and Pitfalls

  1. Input Specifications: ERP exports must be xls or xlsx; the documentation suggests placing files in Downloads or on the Desktop and using them in conjunction with the fixed TOP/Inventory tables.
  2. Paths and Scripts: SKILL.md states that for Chinese path scenarios, you should run the Python script directly, not use python -c. The currently visible script in the release package is scripts/批量生成.py; the documentation also mentions scripts\缺断周报_通用模板.py and cache.pkl cache — if you do not have this template locally, you need to fill it in yourself by “changing three lines in the config section” as per the documentation, or let the Agent generate equivalent logic based on the SKILL instructions.
  3. Environment Differences: The default configuration section of 批量生成.py contains Windows-style working directory examples (c:\Users\...\WorkBuddy\...). You must modify the configuration section before using it on Linux or macOS, otherwise, it will fail to find the template and output directories.
  4. Community Maintenance: Source is community, version 1.0.0; the SkillHub page shows a rating of 100000 and approximately 769 downloads (data subject to page statistics and may change).

Conclusion

“o2o-stockout-analysis” converges the repetitive table-making of multi-store stockout reports into an operational Skill that can be triggered via conversation: it standardizes stockout criteria, batches Excel output and cross-store comparisons, and reserves a path for scripted scanning of exported files. If your stack is Cursor + SkillHub, you can install it from the official page or via the coordinate @user_40ba62fc/o2o-stockout-analysis, then start the first round of report generation using the keywords and @file StoreName format described above.

Official URL: https://api.skillhub.cn/user_40ba62fc/o2o-stockout-analysis

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye