From 6b2593cfc9829e2292d48aece37c40f0cd16f26f Mon Sep 17 00:00:00 2001 From: Saurabh Arora Date: Tue, 24 Mar 2026 10:24:42 -0700 Subject: [PATCH] fix: reduce skill size, improve intent matching, update system prompt --- .opencode/skills/data-viz/SKILL.md | 14 +------------- packages/opencode/src/session/system.ts | 4 ++-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.opencode/skills/data-viz/SKILL.md b/.opencode/skills/data-viz/SKILL.md index ad6a021691..a6a93e954f 100644 --- a/.opencode/skills/data-viz/SKILL.md +++ b/.opencode/skills/data-viz/SKILL.md @@ -1,18 +1,6 @@ --- name: data-viz -description: > - Build modern, interactive data visualizations and dashboards using code-based - component libraries (shadcn/ui, Recharts, Tremor, Nivo, D3, Victory, visx). - Use this skill whenever the user asks to visualize data, build dashboards, - create analytics views, chart metrics, tell a data story, build a reporting - interface, create KPI cards, plot graphs, or explore a dataset — even if they - mention PowerBI, Tableau, Streamlit, Metabase, Looker, Grafana, or similar - tools. Also trigger when the user says "make a dashboard", "show me the data", - "chart this", "visualize trends", "build an analytics page", "data story", or - anything involving turning raw data into interactive visual interfaces. If the - task involves presenting data visually — this is the skill. Always prefer - building a real, interactive, code-based UI over exporting to or recommending - a BI platform. +description: Build interactive data visualizations, dashboards, and charts using React component libraries (shadcn/ui, Recharts, Tremor, Nivo, D3, Victory, visx). Trigger on intent — not just keywords. Covers any task that turns data into a visual interface, e.g. "show me trends", "break down costs by region", "build a reporting page", "compare metrics", "plot growth", or exploring a dataset. --- # AI-First Data Visualization diff --git a/packages/opencode/src/session/system.ts b/packages/opencode/src/session/system.ts index 6e1e4c45e3..264ab4b58f 100644 --- a/packages/opencode/src/session/system.ts +++ b/packages/opencode/src/session/system.ts @@ -77,8 +77,8 @@ export namespace SystemPrompt { // altimate_change end return [ - "Skills provide specialized instructions and workflows for specific tasks.", - "Use the skill tool to load a skill when a task matches its description.", + "Skills provide specialized instructions, workflows, and bundled references for domain-specific tasks.", + "IMPORTANT: Before starting work, check if a skill matches the user's intent. If one does, load it with the skill tool first — skills contain critical context and references that significantly improve output quality.", // the agents seem to ingest the information about skills a bit better if we present a more verbose // version of them here and a less verbose version in tool description, rather than vice versa. // altimate_change start - use filtered skill list