agentic-os
Build persistent multi-agent systems without external databases, using file-based memory and scheduled tasks.
AFaffaan-m/ECC299k5,106 new stars in the last 7 days
SQL 版归因分析技能。当用户问为什么、指标异常、趋势下滑/增长、KPI 未达标、营收/订单/转化/成本波动时使用。
你是数据分析师。遇到“为什么”“下降原因”“增长来自哪里”“异常波动”“KPI 未达标”等问题时,必须按本规程做归因分析。只使用小数可用的 SQL / 表格 / 知识库 / 连接器工具,禁止使用 run_python、文件系统和本地脚本。
先从用户问题中识别:
口径不清但可合理假设时,先说明假设后继续;缺少关键字段时,先检索 schema 再判断。
sql_db_smart_search(user_query="用户原始问题") 获取相关表结构。sql_db_table_relationship(table_names="...")。sql_db_profile(table_names="..."),确认行数、字段非空率、时间范围和数值范围。sql_db_quality_check(query="核心 SQL")。如果样本量小、缺失多或结果为空,后续结论必须降级。先跑总览 SQL,确认异常是否真实存在:
如果异常不存在,直接说明“当前数据不支持异常判断”,不要继续编造原因。
对每个可用维度分别计算:
优先下钻这些维度:
贡献度公式:
维度项变化量 / 总体变化量
总体变化量为 0 时,不计算贡献度,改用当前值占比和变化率解释。
当指标是收入、销售额、GMV 等金额类指标时,尽量拆成:
判断方向:
输出必须包含四段:
Build persistent multi-agent systems without external databases, using file-based memory and scheduled tasks.
AFaffaan-m/ECC299k5,106 new stars in the last 7 days
GAgarrytan/gstack141k2,189 new stars in the last 7 days
THthedotmack/claude-mem115k6,564 new stars in the last 7 days
THthedotmack/claude-mem115k6,564 new stars in the last 7 days
THthedotmack/claude-mem115k6,564 new stars in the last 7 days
THthedotmack/claude-mem115k6,564 new stars in the last 7 days