This one handles the full workflow for turning data into charts: it generates or reuses SQL (calling the sql-expert skill if needed), validates the query, then outputs a chart-spec JSON block that the client renders automatically. It picks chart types based on explicit user requests first (line, bar, pie, timeseries), then falls back to analyzing the SQL structure. The mandatory validation step with retry logic is solid, it prevents broken queries from reaching the UI. One thing to watch: it's opinionated about legend placement and values arrays, which keeps charts consistent but might feel rigid if you want custom layouts. Works well when you need reliable visualizations without manual chart configuration.

GitHub stars
320
last updated
May 14, 2026

Install

$ npx -y skills add frankchen021/datastoria --skill visualization --agent claude-code

Installs into .claude/skills of the current project.

Files

WORKFLOW (MANDATORY ORDER)

a) Generate or obtain SQL:

  • CHECK CONTEXT FIRST: If valid SQL exists in the context (explicitly provided by the user or from a previous message), USE IT DIRECTLY and skip to step (b).
  • IF NO SQL FOUND: You must generate it.
    • Dependency: Valid SQL generation REQUIRES the sql-expert skill.
    • Action: Check if sql-expert skill is loaded.
      • If NOT loaded: Call the skill tool with ['sql-expert'] IMMEDIATELY. Do not proceed to generate SQL until the skill is loaded.
      • If ALREADY loaded: Generate the SQL strictly following the rules in the sql-expert skill (including Schema Discovery, Schema Fidelity, ProfileEvents handling, and Performance Optimization).
  • For system.query_log visualization requests: Do NOT call search_query_log. Load the clickhouse-system-queries skill, then load references/system-query-log.md via skill_resource, generate the SQL, and validate it.

Sponsors

Details

Repository
github.com/frankchen021/datastoria
Categories
Data Science & ML, Design & UI/UX
First seen
Jun 11, 2026

More from frankchen021/datastoria

All 7
1kaelio avatarktx-analyticskaelio/ktxTurns natural language questions into queries against a ktx-connected database.0skills.sh installs
2malob avatardeep-research-teammalob/nix-config>0skills.sh installs
3mertbuilds avatardomain-researchmertbuilds/skillsResearch a product name and domain with keyword demand + availability data. Use when the user says 'domain research', 'research a domain', 'check a domain', 'fi0skills.sh installs
4metabase avataranalytics-eventsmetabase/metabaseAdd product analytics events to track user interactions in the Metabase frontend0skills.sh installs
5nicepkg avatarposthog-analyticsnicepkg/ai-workflowPostHog analytics, event tracking, feature flags, dashboards0skills.sh installs
6nicepkg avatarvideo-analytics-interpreternicepkg/ai-workflowInterpret YouTube Analytics, TikTok Analytics, and video performance data. Identifies trends, explains metrics, and provides actionable recommendations for grow0skills.sh installs