From 069165ecb2b796ef0d408ef19903355ff120cde6 Mon Sep 17 00:00:00 2001 From: Wonder Chang Date: Thu, 26 Nov 2026 23:07:31 +0800 Subject: [PATCH] fix(skill): match generate_chart's real output generate_chart returns a PNG plus an ECharts or Vega-Lite spec. Hosts with MCP Apps support render the chart widget themselves, so tell the model not to render it again; otherwise show the PNG. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GDozhzVwo9FaV1NTp4zEH4 --- hosts/antigravity/skills/wrenai-analyst/SKILL.md | 7 ++++--- hosts/chatgpt/skills/wrenai-analyst/SKILL.md | 7 ++++--- hosts/claude/skills/wrenai-analyst/SKILL.md | 7 ++++--- skills/wrenai-analyst/SKILL.md | 7 ++++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hosts/antigravity/skills/wrenai-analyst/SKILL.md b/hosts/antigravity/skills/wrenai-analyst/SKILL.md index 369f59d..3b01f76 100644 --- a/hosts/antigravity/skills/wrenai-analyst/SKILL.md +++ b/hosts/antigravity/skills/wrenai-analyst/SKILL.md @@ -29,9 +29,10 @@ business. If the data is ambiguous or insufficient, say so. rows or `generate_summary` for rows plus a summary. Never invent tables or columns that `get_project_metadata` does not list. 4. **Charts.** Call `generate_chart` with the question and the final SQL. - If it returns an image, show it. If it returns a Vega-Lite spec, render it - when you can, otherwise describe what the chart shows. Keep the text answer - short and refer to the chart. + It returns a PNG of the chart plus its spec (ECharts or Vega-Lite, + depending on the project). If the app already shows the chart, do not + render it again. Otherwise show the PNG. Keep the text answer short: say + what the chart shows and point out the main trend or outlier. 5. **In the answer**, give every number with what it measures and the time window behind it, and show the SQL when the user may want to check it. Do not state numbers that did not come from a tool result. Never ask the user diff --git a/hosts/chatgpt/skills/wrenai-analyst/SKILL.md b/hosts/chatgpt/skills/wrenai-analyst/SKILL.md index 369f59d..3b01f76 100644 --- a/hosts/chatgpt/skills/wrenai-analyst/SKILL.md +++ b/hosts/chatgpt/skills/wrenai-analyst/SKILL.md @@ -29,9 +29,10 @@ business. If the data is ambiguous or insufficient, say so. rows or `generate_summary` for rows plus a summary. Never invent tables or columns that `get_project_metadata` does not list. 4. **Charts.** Call `generate_chart` with the question and the final SQL. - If it returns an image, show it. If it returns a Vega-Lite spec, render it - when you can, otherwise describe what the chart shows. Keep the text answer - short and refer to the chart. + It returns a PNG of the chart plus its spec (ECharts or Vega-Lite, + depending on the project). If the app already shows the chart, do not + render it again. Otherwise show the PNG. Keep the text answer short: say + what the chart shows and point out the main trend or outlier. 5. **In the answer**, give every number with what it measures and the time window behind it, and show the SQL when the user may want to check it. Do not state numbers that did not come from a tool result. Never ask the user diff --git a/hosts/claude/skills/wrenai-analyst/SKILL.md b/hosts/claude/skills/wrenai-analyst/SKILL.md index 369f59d..3b01f76 100644 --- a/hosts/claude/skills/wrenai-analyst/SKILL.md +++ b/hosts/claude/skills/wrenai-analyst/SKILL.md @@ -29,9 +29,10 @@ business. If the data is ambiguous or insufficient, say so. rows or `generate_summary` for rows plus a summary. Never invent tables or columns that `get_project_metadata` does not list. 4. **Charts.** Call `generate_chart` with the question and the final SQL. - If it returns an image, show it. If it returns a Vega-Lite spec, render it - when you can, otherwise describe what the chart shows. Keep the text answer - short and refer to the chart. + It returns a PNG of the chart plus its spec (ECharts or Vega-Lite, + depending on the project). If the app already shows the chart, do not + render it again. Otherwise show the PNG. Keep the text answer short: say + what the chart shows and point out the main trend or outlier. 5. **In the answer**, give every number with what it measures and the time window behind it, and show the SQL when the user may want to check it. Do not state numbers that did not come from a tool result. Never ask the user diff --git a/skills/wrenai-analyst/SKILL.md b/skills/wrenai-analyst/SKILL.md index 369f59d..3b01f76 100644 --- a/skills/wrenai-analyst/SKILL.md +++ b/skills/wrenai-analyst/SKILL.md @@ -29,9 +29,10 @@ business. If the data is ambiguous or insufficient, say so. rows or `generate_summary` for rows plus a summary. Never invent tables or columns that `get_project_metadata` does not list. 4. **Charts.** Call `generate_chart` with the question and the final SQL. - If it returns an image, show it. If it returns a Vega-Lite spec, render it - when you can, otherwise describe what the chart shows. Keep the text answer - short and refer to the chart. + It returns a PNG of the chart plus its spec (ECharts or Vega-Lite, + depending on the project). If the app already shows the chart, do not + render it again. Otherwise show the PNG. Keep the text answer short: say + what the chart shows and point out the main trend or outlier. 5. **In the answer**, give every number with what it measures and the time window behind it, and show the SQL when the user may want to check it. Do not state numbers that did not come from a tool result. Never ask the user