three-tab-query-response

Build a three-tab Answer, View SQL, and Chart interface for text-to-SQL conversations.

1|Updated Aug 7, 2021
One-click install
npx skills add https://github.com/auesugui/auesugui --skill three-tab-query-response
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: three-tab-query-response
Source: https://github.com/auesugui/auesugui/tree/main/.github/skills/three-tab-query-response
Command: npx skills add https://github.com/auesugui/auesugui --skill three-tab-query-response

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a blueprint for building a three-tab query response interface (Answer, View SQL, Chart) for text-to-SQL workflows. It covers per-response independent tab state, lazy chart rendering, Elasticsearch-powered search, and a dashboard for pinned visuals.

Core Features & Use Cases

  • Independent tab state per response: Each assistant message maintains its own Answer/SQL/Chart tab state.
  • Lazy chart rendering: Chart tab loads visualizations only when the user opens it.
  • Elasticsearch-backed search & discovery: Enables fast history search, similar queries, and chart gallery exploration.
  • Dashboard pinning: Pin charts from any response to a draggable dashboard with quick actions.
  • Context-drift patterns: UI patterns and prompts to manage topic shifts in multi-turn conversations.

Quick Start

  • Use this skill to scaffold a three-tab interface in your React app for a text-to-SQL assistant.
  • Example command:
    • "Create a per-response three-tab (Answer/View SQL/Chart) UI with independent tab state, lazy chart loading, and pin-to-dashboard support using Salt DS and ECharts."

Frequently Asked Questions about three-tab-query-response

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a text-to-SQL interface with separate tabs for answers, SQL queries, and charts?

A text-to-SQL interface with independent tabs for Answer, View SQL, and Chart lets each response maintain its own tab state. This Skill provides a reusable three-tab React component using Salt DS and ECharts that enables lazy chart rendering and per-response state management for modular query workflows.

Can I use React with Elasticsearch and ECharts to create a searchable query dashboard?

Yes. This Skill integrates Elasticsearch for fast history search and discovery, ECharts for visualization rendering, and Salt DS components to build a searchable dashboard where users can pin charts from responses and explore similar queries efficiently.

What's the best way to handle lazy loading and performance in a React chat interface with charts?

Lazy chart rendering loads visualizations only when users open the Chart tab, reducing initial load time. This Skill applies virtualization and caching patterns to optimize performance in multi-turn text-to-SQL conversations while maintaining independent state across responses.

How do I pin and organize visualizations in a dashboard within a text-to-SQL assistant?

The Skill provides a dashboard component where users pin charts from any response to a draggable interface with quick actions. This enables persistent visualization management alongside the conversational text-to-SQL workflow.

Does this approach handle context drift when conversations shift topics in multi-turn queries?

Yes. The Skill includes UI patterns and prompt guidance to manage topic shifts and context drift in multi-turn conversations, helping maintain coherent query flows when users pivot between different SQL queries or analytical directions.

Can I reuse this three-tab interface across multiple React applications?

The Skill scaffolds a reusable, modular three-tab component architecture for React apps with Salt DS styling, making it portable across projects that need text-to-SQL response formatting with independent tab state and chart support.