generate-retail-trade-reports
This skill processes multiple weekly sales report Excel files to generate a consolidated Retail Trade Weekly Report with week-over-week (WoW) comparisons…
от rondoflow★ 37 звёзд на GitHub
Установить generate-retail-trade-reports в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Retail Trade Weekly Report Generator - Skill Documentation
Overview
This skill processes multiple weekly sales report Excel files to generate a consolidated Retail Trade Weekly Report with week-over-week (WoW) comparisons across different channels (DRP, DXS, License Store) and product types (Mobile Prepaid/Postpaid, FWA 4G/5G).
Purpose
- Consolidate 12 Excel files (6 current week + 6 previous week) into a single comprehensive weekly report
- Calculate Average Daily Acquisition (ADA) metrics by region and channel
- Compute Week-over-Week (WoW) performance indicators
- Generate formatted Excel output with charts and color-coded performance indicators
Input Requirements
Required Files (12 total)
Current Week (6 files):
DRP_Channel_Sales_Report_DRP_M_DD-M_DD.xlsxDRP_Special_SIM_Monitor_Report_Daily_TECNO_M_DD-M_DD.xlsxLicense_Store_Performance_Monitor_Report_LS_M_DD-M_DD.xlsxDXS_Acquisition_Report_Mobile_Prepaid_M_DD-M_DD.xlsxDXS_Acquisition_Report_Mobile_Postpaid_M_DD-M_DD.xlsxDXS_Acquisition_Report_FWA_M_DD-M_DD.xlsx
Previous Week (6 files with earlier dates): Same file types with earlier date ranges in filename
Store Mapping CSV
File containing Store Name to Region mapping with aliases support:
Store Name,Region,Aliases
SM Megamall,NCR,"Megamall|SM Mega|MEGAMALL"
...
Data Processing Logic
1. File Identification
- Extract date ranges from filenames (format:
M_DD-M_DD) - Auto-group into current week vs previous week based on date comparison
- Validate all 12 required files are present
2. Data Extraction Rules
DRP Channel Sales Report
- Header rows: Skip rows 0-7
- Data rows: Start from row 8
- Region field: Column 0 (AREA)
- Key columns:
- Column 1: MOBILE POSTPAID > TOTAL ACTIVATION
- Column 5: MOBILE PREPAID > TOTAL ACTIVATION
- Column 6: Double Data_Sum
- Column 9: 4G WiFi 980 SIM_Sum (FWA 4G)
- Column 10: Unli 5G WIFI 100Mbps Starter SIM_Sum (FWA 5G)
- Column 11: 5G WiFi 4990 SIM_Sum (FWA 5G)
DRP TECNO Report
- Header rows: Skip rows 0-6
- Data rows: Start from row 7
- Region field: Column 0 (Activation Area)
- Key columns:
- Column 1: CARMON Activation (CAMON 40)
- Column 2: POVA Activation (POVA 7)
- Column 3: Total Activation (TECNO ADA = CAMON 40 + POVA 7)
License Store Report
- Header rows: Skip rows 0-7
- Data rows: Start from row 8
- Store field: Column 0 (Store Name) - Requires mapping to Region
- Key columns:
- Column 1: Mobile Prepaid
- Column 3: Mobile Postpaid
- Column 29 (AD): DITO Home Prepaid 4G WiFi 980 SIM (FWA 4G)
- Need to find: Unli 5G WIFI 100Mbps Starter SIM (FWA 5G)
- Need to find: 5G WiFi 4990 SIM (FWA 5G)
DXS Mobile Prepaid Report
- Header rows: Skip rows 0-7
- Data rows: Start from row 8
- Store field: Column 0 (DXS Name) - Requires mapping to Region
- Key column:
- Column 4: Total
DXS Mobile Postpaid Report
- Header rows: Skip rows 0-7
- Data rows: Start from row 8
- Store field: Column 0 (DXS Name) - Requires mapping to Region
- Key column:
- Column 12: Total
DXS FWA Report
- Header rows: Skip rows 0-7
- Data rows: Start from row 8
- Store field: Column 0 (DXS Name) - Requires mapping to Region
- Key columns:
- Column 1: DITO Home Prepaid 4G WiFi 980 (FWA 4G)
- Column 18: Total
- FWA 5G calculation: Total (Col 18) - 4G (Col 1)
3. Store Name to Region Mapping
# Build mapping dictionary from CSV
store_mapping = {}
for row in mapping_csv:
main_name = row['Store Name']
region = row['Region']
aliases = row['Aliases'].split('|') if row['Aliases'] else []
# Add main name and all aliases to mapping
store_mapping[main_name.upper()] = region
for alias in aliases:
store_mapping[alias.strip().upper()] = region
# Apply fuzzy matching for unmatched stores
def map_store_to_region(store_name):
# Exact match (case-insensitive)
if store_name.upper() in store_mapping:
return store_mapping[store_name.upper()]
# Fuzzy match using substring search
for key in store_mapping:
if key in store_name.upper() or store_name.upper() in key:
return store_mapping[key]
# Default to "Others" if no match
return "Others"
4. Regional Aggregation
Standard Regions: NCR, SLZ, NLZ, CLZ, EVIS, WVIS, MIN, Others
For each product type and region:
# DRP data: Direct mapping (already by region)
DRP_ADA = drp_data[region][product_column]
# DXS data: Aggregate stores by region
DXS_ADA = sum(dxs_data[store][product_column]
for store in dxs_data
if map_store_to_region(store) == region)
# LS data: Aggregate stores by region
LS_ADA = sum(ls_data[store][product_column]
for store in ls_data
if map_store_to_region(store) == region)
# Total for region
RT_Tota
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл generate-retail-trade-reports?
This skill processes multiple weekly sales report Excel files to generate a consolidated Retail Trade Weekly Report with week-over-week (WoW) comparisons across different channels (DRP, DXS, License Store) and product types (Mobile Prepaid/Postpaid, FWA 4G/5G).
Как установить скилл generate-retail-trade-reports?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-retail-trade-reports запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…