kbm-soldout-daily
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 "kbm-soldout-daily" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3a698ce6ed0d3a4bbea08ec0fe4b485cb5fb62f3b940af3f816378c16cbd0c6d. Verify the upstream source and version against https://skillhub.cn/skills/user_17c38ff0/kbm-soldout-daily 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
An automated sold-out daily report skill. Triggered when users mention “sold-out daily/sold-out analysis/sold-out report,” it fetches daily sold-out data from online documents, performs multi-dimensional analysis (store ranking, category and product distribution, time-of-day distribution, trend comparisons), generates an HTML-format daily report, and outputs action recommendations. Suitable for multi-store retail or F&B daily sold-out monitoring.
Introduction source: third_party · user_17c38ff0 · 1.0.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 售罄日报自动生成
description: 售罄日报自动生成技能。当用户提到"售罄日报"、"售罄分析"、"售罄报告"时触发。从在线文档中自动获取当日售罄数据,执行多维度分析(门店排名、品类分布、产品排名、时段分布、趋势对比),生成HTML格式日报并输出行动建议。适用于多门店零售/餐饮业务场景的每日售罄监控。
agent_created: true售罄日报自动生成
Overview
从在线文档自动获取当日门店商品售罄数据,执行多维度分析(门店排名、品类分布、产品排名、LTO售罄、时段分布、本周趋势),生成HTML日报,并更新趋势数据表。所有数据源通过动态搜索获取,不硬编码文件ID。
Workflow
Step 1: 获取当日数据文件
- 使用文档管理工具搜索关键词
售罄报告+ 当日日期MMDD格式(如0629) - 从搜索结果中找到对应文件,提取 file_id
- 获取该文件的所有sheet列表及sheet_id
Step 2: 读取核心数据
按优先级从以下sheet读取数据(所有读取操作使用 0-based 索引,start_row=0, start_col=0,end_col 至少传10):
| Sheet名称 | 用途 | 注意事项 |
|---|---|---|
| 售罄门店 Top20 | 权威数据源,获取门店排名和总售罄次数 | 必读,这是全日完整数据 |
| 当日售罄恢复比例 | 获取产品售罄次数+恢复次数+品类标签 | 关键:品类列标明各品类归属 |
| LTO售罄明细 | 获取LTO产品各门店售罄详情 | 按门店+LTO产品交叉表读取 |
| 总售罄次数 | 仅参考,这是"售罄未恢复"快照数据 | ⚠️ 与门店排名全日数据不一致 |
| 售罄品类分布 | 仅参考,仅含"未恢复"数据 | ⚠️ 数据不完整,用恢复比例sheet代替 |
| 售罄原因排名 | 仅参考,仅含"未恢复"数据 | ⚠️ 数据不完整 |
| 时段售罄统计 | 获取时段分布数据 | 可能不完整,取最大范围 |
| 售罄产品排名 | 获取产品排名 | 可与恢复比例sheet互补 |
关键规则:门店排名sheet是权威数据源,总售罄次数必须以该sheet汇总为准。其他仅含"售罄未恢复"快照的sheet与全日数据有差距。
Step 3: 读取趋势数据表
- 从项目 memory 中获取趋势数据表的 file_id 和 sheet_id
- 如 memory 中无记录,搜索关键词找到对应文件
- 读取所有历史行(start_row=1,跳过表头)
- 提取最近7天数据用于趋势图,提取当日数据用于VS对比
Step 4: 计算核心指标
从门店排名sheet计算:
- 总售罄次数:所有门店售罄次数之和
- 涉及门店数:有售罄记录的门店数量
- 城市分布:按门店所属城市分组汇总
- 城市占比:各城市售罄次数 / 总售罄次数
从恢复比例sheet计算品类分布:
- 按品类归类(食品/饮品/零售等)
- 计算各品类售罄次数和占比
VS对比计算:
- VS昨日:当日总售罄 vs 趋势表昨日数据,计算百分比变化
- VS上周同期:当日总售罄 vs 趋势表上周同星期数据
- 本周累计:当日所在周(周一至当日)的累计售罄次数
Step 5: 计算时段分布
从时段sheet读取门店+时段+售罄次数数据:
- 按时段汇总售罄次数
- 确定峰值时段
- 如果时段数据不完整(总计<门店排名总售罄),标注数据覆盖率
Step 6: 计算LTO售罄
从LTO明细sheet读取:
- 按门店汇总各LTO产品售罄次数
- 计算LTO总售罄次数及占总售罄比例
- 标注LTO售罄集中在哪些门店
Step 7: 计算产品TOP
从恢复比例sheet按售罄操作次数排序:
- 取前若干产品
- 标注品类、涉及门店数、是否为LTO产品
Step 8: 判断售罄原因
如果原因sheet有完整数据,直接使用。如果为空(仅含表头),则从以下线索推断:
- 某品类多店售罄 → 门店订货不足
- LTO新品集中售罄 → LTO供应不足/大仓断货
- 食品类售罄 → 门店预制不足
- 基础零售商品售罄 → 日常订货基数不足
Step 9: 生成行动建议
基于数据模式生成3-5条具体行动建议:
- 每条建议必须关联具体门店、具体产品、具体次数
- 优先级:售罄次数最多的门店和产品
- 建议必须可执行(补货、提升订货基数、检查流程等)
- 不写泛泛而谈的建议
Step 10: 生成HTML日报
使用模板文件填充以下占位符:
| 占位符 | 值 |
|---|---|
| TEMPLATE_DATE | 当日日期,格式 YYYY-MM-DD (周X) |
| TOTAL | 总售罄次数 |
| VS_YESTERDAY% | VS昨日百分比变化(带↑/↓符号) |
| YESTERDAY_TOTAL | 昨日总售罄次数 |
| WEEK_TOTAL | 本周累计售罄次数 |
| CITY1 | 城市1售罄次数 |
| CITY1% | 城市1占比百分比 |
| CITY2 | 城市2售罄次数 |
| CITY2% | 城市2占比百分比 |
| STORES/10 | 涉及门店数/总门店数 |
| FEATURE_SUMMARY | 今日特征1-2句话摘要 |
| FOOD/FOOD% | 品类1售罄次数及占比 |
| BEVERAGE/BEV% | 品类2售罄次数及占比 |
| CPG/CPG% | 品类3售罄次数及占比 |
| STORE_ROWS | 门店排行表格行HTML |
| PRODUCT_ROWS | 产品排行表格行HTML |
| LTO_ITEMS | LTO售罄网格HTML |
| LTO_SUMMARY | LTO结论1-2句话 |
| TIME_PERIOD_BARS | 时段分布柱状图HTML |
| TIME_PERIOD_SUMMARY | 时段分析文字 |
| WEEK_TREND_BARS | 本周趋势柱状图HTML |
| WEEK_AVG | 本周日均售罄 |
| PEAK_DAY | 峰值日期 |
| PEAK_VAL | 峰值次数 |
| TREND_COLOR | 趋势颜色(红↑/绿↓) |
| TREND_DESC | 趋势描述文字 |
| ACTION_ITEMS | 行动建议HTML |
保存到:{workspace}/售罄日报_YYYY-MM-DD.html
Step 11: 更新趋势数据表
在趋势数据表文件中:
- 在最后一个数据行之后插入新行
- 填写当日数据:日期、总售罄次数、VS上周、涉及门店数、各品类次数、原因TOP、各城市次数
- 使用对应的sheet写入工具
Step 12: 输出结果
- 告知用户报告已生成
- 使用
present_files展示HTML文件 - 只输出HTML,不转PDF
Output Rules
- 只输出HTML,不转PDF
- 所有数据交叉验证必须自洽(总售罄=各门店之和=各品类之和)
- VS昨日必须读取昨日实际数据,不能用错日期
- 本周趋势图数字必须和趋势数据表一致
Current listing version
1.0.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决多门店零售/餐饮业务的每日售罄监控高频刚需
- 直接提升日常运营效率,具有明确的业务价值
- 支持多维度分析(门店排名、品类分布、产品排名、时段分布、趋势对比)
Highlights
- 触发词精准完整:售罄日报、售罄分析、售罄报告
- 覆盖用户可能使用的多种表达方式
- 边界清晰,不易与其他Skill重叠
Areas to improve
-
缺少When to Use章节 Reported severity: Minor
文档结构完整但缺少明确的When to Use使用场景说明章节
Recommendation: 建议在Overview后增加When to Use章节,明确说明适用场景和使用时机
Highlights
- Phase/步骤清晰完整,包含12个详细执行步骤
- 有明确的出口条件和数据验证规则
- frontmatter完整,单文件结构良好
Highlights
- 工具来源明确,参数说明详细(0-based索引、行列范围等)
- 覆盖主要异常情况处理(数据不完整、空sheet处理等)
- 数据交叉验证机制完善,确保结果自洽
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.
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.
User discussion
No verified reviews yet.