Logo de Retail Analytics Concierge

Retail Analytics Concierge

Organização
Amazon-Quick
retail-analytics-concierge

Transforma perguntas em linguagem natural em consultas SQL, executa essas consultas no data warehouse conectado e apresenta os resultados em visualizações. Permite que usuários do varejo sem conhecimentos técnicos analisem dados por conta própria, sem escrever SQL. Use quando perguntarem “quantas unidades vendemos”, “mostre as devoluções por categoria”, “qual é a tendência da nossa receita”, “produtos mais vendidos”, “compare as regiões”, “consulte os dados” ou qualquer questão analítica sobre métricas do varejo.

Add to TypingMind

Visão geral

Publicado porAmazon-Quick
RepositórioAmazon-Quick-official-catalog
Nome da habilidaderetail-analytics-concierge
Estrelas
50
Forks
4
Arquivos incluídos
1
LicençaMIT-0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por Amazon-Quick no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Retail Analytics Concierge no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/data-analytics/retail-analytics-concierge
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Amazon-Quick/Amazon-Quick-official-catalog.git /tmp/Amazon-Quick-official-catalog
mkdir -p .claude/skills
cp -r /tmp/Amazon-Quick-official-catalog/skills/data-analytics/retail-analytics-concierge .claude/skills/retail-analytics-concierge
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Retail Analytics Concierge em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Retail Analytics Concierge automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Retail Analytics Concierge não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Overview

Enables any retail business user to ask data questions in plain English and get instant answers with charts. Translates natural language into SQL, executes read-only queries against the customer's data warehouse or uploaded files, and presents results with auto-generated visualizations. Includes strict safety guardrails to prevent any data modification.

Workflow

<Definition - Data Source Cascade> Try in order, stop at first success:

  1. Amazon Quick Dataset Q&A (if a QuickSight dataset is configured): ask questions directly in natural language against the full dataset with automatic SQL generation and security enforcement.
  2. SQL-compatible MCP connector detected (any database connector): use for live queries.
  3. Local SQLite or DuckDB file: query directly with run_python.
  4. CSV or Excel file provided: load into in-memory DuckDB via run_python for SQL querying.
  5. Nothing available: ask user to upload a data file or connect their warehouse in Settings. </Definition - Data Source Cascade>

<Definition - Blocked SQL Keywords> These keywords are NEVER allowed in any generated query: DROP, DELETE, UPDATE, INSERT, ALTER, TRUNCATE, CREATE, REPLACE, MERGE, GRANT, REVOKE, EXECUTE, CALL, SET, LOCK, UNLOCK, RENAME, LOAD, COPY INTO. If the user's question would require a write operation, explain that this skill is read-only and suggest they work with their data team for modifications. </Definition - Blocked SQL Keywords>

<Definition - Chart Type Selection> Based on result shape, auto-select visualization:

  • Time series (date column + numeric): line chart.
  • Categories + single metric: horizontal bar chart.
  • Proportions (parts of whole): pie/donut chart.
  • Two numeric dimensions: scatter plot.
  • Ranking (top N): vertical bar chart, sorted descending.
  • Comparison (2-3 groups over time): multi-line or grouped bar. If ambiguous, default to bar chart. </Definition - Chart Type Selection>

<Definition - Schema Context> A description of the customer's data structure that helps generate accurate SQL:

  • Table names and their purpose.
  • Column names with data types and business meaning.
  • Key relationships (foreign keys, join paths).
  • Common filters (date ranges, status values, region codes). Stored in {{config_directory}}/analytics-schema-context.json after first-run discovery. </Definition - Schema Context>

<Workflow - Setup description="First-run schema discovery and connectivity check." tools=[run_python, file_read] triggers=["connect my data", "setup analytics", "get started with analytics", "connect to my database"]

[Decide] Check if {{config_directory}}/analytics-schema-context.json exists:

  • EXISTS: Load saved schema context. Proceed to Answer Question workflow.
  • DOES NOT EXIST: Continue with setup below. Validate: File existence determined. If fails: Assume first run.

[Ask user] "I am your Self-Service Analytics Concierge. I translate your business questions into data queries and visualizations. To get started, I need to connect to your data. Do you have: (1) A CSV or Excel file to upload? (2) A SQLite or DuckDB database file? (3) A data warehouse connector already configured? Tell me what you are working with." Validate: User responds with a data source option. If fails: Re-prompt with examples of supported formats.

[Decide] Detect data source type per <Definition - Data Source Cascade>:

  • SQL MCP connector detected: probe with SELECT 1 or equivalent.
  • Local database file: verify with file_read.
  • CSV/Excel: load into DuckDB with run_python.
  • Nothing: re-ask user. Validate: Connection verified (test query returns a result). If fails: [Ask user] "I could not connect. Please check the file path or connector status in Settings."

[Agent] Discover schema. For SQL connector: query information_schema or equivalent for table names, column names, and types. For CSV/Excel: infer from headers and first 100 rows. Build schema summary: table name, columns (name, type, sample values), row count. Validate: At least 1 table with 2+ columns discovered. If fails: [Ask user] "I found the data but could not read its structure. Can you describe which tables or columns are important?"

[Decide] Is schema_context input provided (a file with table documentation)?

  • Yes: [Agent] Read the file and merge with discovered schema (documentation enriches the raw structure).
  • No: Use discovered schema as-is. Validate: Schema context available (discovered or provided). If fails: Proceed with discovered schema only.

[Agent] Save schema context to {{config_directory}}/analytics-schema-context.json. Include: tables, columns, types, sample values, relationships (if detected), and any user-provided documentation. Validate: File written. If fails: Hold schema in memory for this session.

[Ask user] "Connected! I found [N] tables with [M] total columns. Here is what I see: [table summary] Try asking me a question like: 'How many units did we sell last week?' or 'Show me returns by category.'" Validate: User acknowledges or asks their first question. If fails: N/A.

</Workflow - Setup>

<Workflow - Answer Question description="Translate natural language question to SQL, validate safety, get approval, execute, visualize." tools=[run_python, file_write, open_in_session_tab] triggers=["how many", "show me", "what is", "compare", "top selling", "total revenue", "average", "trend", "breakdown", "which", "list all"]

[Agent] Load {{config_directory}}/analytics-schema-context.json for table/column context. Validate: Schema loaded. If fails: Route to Setup workflow.

[Think] Interpret the user's question. Identify:

  • Target metric (what they want to measure).
  • Dimensions (how they want it grouped/sliced).
  • Filters (time range, category, region, etc.).
  • Comparison (vs prior period, vs another segment?). If ambiguous, prepare a clarifying question. Validate: Clear interpretation or clarifying question ready. If fails: Ask user to rephrase.

[Decide] Is the question ambiguous?

  • Yes: [Ask user] "I want to make sure I get this right. Did you mean [interpretation A] or [interpretation B]?"
  • No: Proceed to SQL generation. Validate: Unambiguous intent established. If fails: Proceed with most likely interpretation, note assumption in response.

[Agent] Generate SQL query using run_python. Apply:

  • Schema context for correct table/column names.
  • LIMIT clause (max_rows).
  • Date casting if date columns are strings.
  • Appropriate aggregations (SUM, COUNT, AVG) based on question. Validate: Valid SQL syntax generated. If fails: Simplify query and retry.

[Agent] Safety check: scan generated SQL for any keyword in <Definition - Blocked SQL Keywords>. Also verify all referenced tables are in approved_schemas (if set). Validate: No blocked keywords found. All tables approved. If fails: Reject query. [Ask user] "This question would require a [blocked operation] which I cannot perform. I am read-only. Can I help with a different question?"

[Ask user] Present the SQL for approval: "Here is the query I will run:

sql
[generated SQL]

This will return [description of expected output]. Shall I execute it?" Validate: User approves (yes, run it, looks good, etc.). If fails: [Ask user] what to change, regenerate SQL, re-present.

[Agent] Execute the approved SQL using run_python:

  • SQL connector: call the connector's query tool.
  • DuckDB/local: execute via duckdb.sql() in run_python. Capture results as a dataframe. Validate: Query returned results (0+ rows without error). If fails: Report the specific error message. Suggest possible fixes (wrong column name, date format, etc.).

[Decide] Did the query return zero rows?

  • Yes: [Agent] Explain possible reasons: date range too narrow, filter too restrictive, column name mismatch. Suggest a broader query.
  • No: Proceed to visualization. Validate: Branch determined. If fails: Present whatever result exists.

[Agent] Generate visualization per <Definition - Chart Type Selection>. Use run_python with highcharts/html_design to create an interactive HTML chart. Save to {output_directory}/analytics-chart-{timestamp}.html. Validate: Chart file created. If fails: Present results as a formatted table instead.

[Agent] Open chart in session tab using open_in_session_tab. Validate: Tab opened. If fails: Provide file path.

[Agent] Present results using <Template - Three Part Result>. Validate: All three parts presented. If fails: Present whatever parts are available.

[Agent] Store this query context (question, SQL, result shape) in session memory so follow-up questions (e.g., "now filter that by region") work without re-stating the full question. Validate: Context stored. If fails: N/A (follow-ups may require re-stating context).

</Workflow - Answer Question>

<Template - Three Part Result>

markdown
1. **Direct answer:** {{direct_answer_sentence}}
2. **Visualization:** I have opened an interactive chart in your session tab. See the {{chart_type}} chart showing {{chart_description}}.
3. **Supporting data:**

{{top_10_rows_table}}

</Template - Three Part Result>

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Retail Analytics Concierge faz?

Transforma perguntas em linguagem natural em consultas SQL, executa essas consultas no data warehouse conectado e apresenta os resultados em visualizações. Permite que usuários do varejo sem conhecimentos técnicos analisem dados por conta própria, sem escrever SQL. Use quando perguntarem “quantas unidades vendemos”, “mostre as devoluções por categoria”, “qual é a tendência da nossa receita”, “produtos mais vendidos”, “compare as regiões”, “consulte os dados” ou qualquer questão analítica sobre métricas do varejo.

Por que usar Retail Analytics Concierge no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Retail Analytics Concierge é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Retail Analytics Concierge no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/data-analytics/retail-analytics-concierge. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Retail Analytics Concierge?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Retail Analytics Concierge?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Retail Analytics Concierge com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Retail Analytics Concierge é gratuita?

Sim. A habilidade é publicada no GitHub por Amazon-Quick sob a licença MIT-0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇