Skip to content

feat(skill): add six analysis strategies and 30 DuckDB SQL templates - #1145

Merged
hustcc merged 10 commits into
aifrom
feat/analysis-methods
Dec 4, 2026
Merged

hustcc merged 10 commits into
aifrom
feat/analysis-methods

Conversation

@yvonneyx

@yvonneyx yvonneyx commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

AVA Skill 新增 6 个分析策略和 30 个可复用方法。

分析策略

  • 主动洞察筛查值得关注的变化、持续趋势和群体差异。
  • 变化归因从整体变动出发,按维度下钻,并拆解指标的变化来源。
  • 异常诊断用历史基线识别异常,判断持续性、影响范围和影响量。
  • 机会发现结合规模、基准差距、效率和漏斗损失,估算改善机会。
  • 群体发现找出表现不同的子群体,检查差异大小和跨期稳定性。
  • 驱动因素检查变量关联、非线性和分层结果,提出待验证的解释。

分析方法

30 个方法的图表模板默认继承 GPT-Vis 1.4.1 的主题,涨跌、参照线和分组高亮等颜色取自默认色板及主题样式。

下方截图使用合成数据生成,展示各方法在本地 DuckDB 2.0.0 上的执行示例。截图对应各方法链接指向的验证版本。

M01 显著变化分析 M02 持续趋势分析 M03 趋势分化分析
M01 显著变化分析截图 M02 持续趋势分析截图 M03 趋势分化分析截图
M04 变化点分析 M05 变动贡献分析 M06 多维贡献分析
M04 变化点分析截图 M05 变动贡献分析截图 M06 多维贡献分析截图
M07 递归下钻分析 M08 指标因素拆解 M09 结构效应分析
M07 递归下钻分析截图 M08 指标因素拆解截图 M09 结构效应分析截图
M10 新增流失存量分解 M11 帕累托分析 M12 集中度分析
M10 新增流失存量分解截图 M11 帕累托分析截图 M12 集中度分析截图
M13 长尾价值分析 M14 特殊分布分析 M15 动态基线异常检测
M13 长尾价值分析截图 M14 特殊分布分析截图 M15 动态基线异常检测截图
M16 持续异常分析 M17 多维异常定位 M18 异常影响量分析
M16 持续异常分析截图 M17 多维异常定位截图 M18 异常影响量分析截图
M19 四象限机会分析 M20 基准差距分析 M21 投入产出效率分析
M19 四象限机会分析截图 M20 基准差距分析截图 M21 投入产出效率分析截图
M22 漏斗瓶颈分析 M23 特殊子群体发现 M24 群体提升度分析(Lift)
M22 漏斗瓶颈分析截图 M23 特殊子群体发现截图 M24 群体提升度分析(Lift)截图
M25 群体稳定性分析 M26 多变量相关分析 M27 非线性关联分析
M25 群体稳定性分析截图 M26 多变量相关分析截图 M27 非线性关联分析截图
M28 分层关联分析 M29 辛普森悖论检查 M30 机会影响量估算
M28 分层关联分析截图 M29 辛普森悖论检查截图 M30 机会影响量估算截图

@yvonneyx yvonneyx changed the title feat(skill): add six analysis routes and 14 reusable methods feat(skill): add six analysis strategies and 30 DuckDB SQL templates Dec 3, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://antvis-AVA-preview-pr-1145.surge.sh
📝 Commitab0790d
⏱️ Build time0.008s
📦 Size28.5 MB (+1.2 KB ⬆️) · 433 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ ab0790d · antvis-AVA-preview-pr-1145.surge.sh (open ↗) · 2026-12-04 07:33:44 UTC

🤖 Powered by surge-preview

- Updated segment stability analysis with refined chart styles, additional data points, and clearer annotations for better interpretation.
- Enhanced subgroup discovery method by freezing predicate keys and improving visual clarity with updated bar styles and annotations.
- Improved change point analysis with detailed annotations, including mean values and event markers for better trend visibility.
- Refined significant change analysis to include absolute and relative changes with enhanced labeling for clarity.
- Updated sustained trend analysis to better visualize daily observations and mean comparisons, with clear markings for sustained standards.
- Enhanced trend divergence analysis with grouped line plots, emphasizing overall trends and providing clear annotations for material slopes.
- Added guidelines for building method charts, emphasizing the importance of visual clarity and evidence representation in reports.
- Updated SQL templates in opportunity analysis methods to use parameterized inputs for better flexibility and clarity.
- Enhanced documentation in input-output efficiency, quadrant analysis, opportunity impact, segment lift, segment stability, subgroup discovery, change point, significant change, sustained trend, and trend divergence methods.
- Improved validation logic in SQL queries to ensure data integrity and handle edge cases.
- Added annotations and refined visualization guidelines in the visualization documentation to enhance clarity and usability.
- Updated TypeScript contracts to enforce stricter validation for annotations and group selections in visualization configurations.
@yvonneyx
yvonneyx marked this pull request as ready for review December 4, 2026 10:04
] as const;
export const vizInputSchema = z.discriminatedUnion('chartType', chartSchemas).superRefine((spec, context) => {
if ((spec.chartType === 'bar' || spec.chartType === 'column') && !spec.config.group && !spec.config.stack) {
spec.config.annotations?.forEach((item, index) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@interstellarmt gpt-vis 可以提供一个 schema 用于校验生成的 spec。

@hustcc
hustcc merged commit ba81697 into ai Dec 4, 2026
4 checks passed
@hustcc
hustcc deleted the feat/analysis-methods branch December 4, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants