Retail Analytics Conciergeのロゴ

Retail Analytics Concierge

組織
Amazon-Quick
retail-analytics-concierge

自然言語の質問をSQLクエリに変換して接続済みのデータウェアハウスで実行し、可視化した結果を提示します。SQLを書かずに、小売業の技術職ではないユーザーが自分で分析できるようにします。「販売数はいくつですか」「カテゴリ別の返品数を見せてください」「売上の推移はどうなっていますか」「売れ筋商品は何ですか」「地域を比較してください」「データをクエリしてください」、または小売指標に関する分析の質問をされたときに使います。

Add to TypingMind

概要

公開者Amazon-Quick
リポジトリAmazon-Quick-official-catalog
スキル名retail-analytics-concierge
スター
50
フォーク
4
同梱ファイル
1
ライセンスMIT-0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Amazon-QuickがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Retail Analytics Concierge」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/data-analytics/retail-analytics-concierge
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRetail Analytics Conciergeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRetail Analytics Conciergeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Retail Analytics Conciergeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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>

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Retail Analytics Concierge」では何ができますか?

自然言語の質問をSQLクエリに変換して接続済みのデータウェアハウスで実行し、可視化した結果を提示します。SQLを書かずに、小売業の技術職ではないユーザーが自分で分析できるようにします。「販売数はいくつですか」「カテゴリ別の返品数を見せてください」「売上の推移はどうなっていますか」「売れ筋商品は何ですか」「地域を比較してください」「データをクエリしてください」、または小売指標に関する分析の質問をされたときに使います。

TypingMindでRetail Analytics Conciergeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Retail Analytics Conciergeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRetail Analytics Conciergeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/data-analytics/retail-analytics-conciergeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Retail Analytics Conciergeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Retail Analytics Conciergeで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRetail Analytics Conciergeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Retail Analytics Concierge」は無料ですか?

はい。Amazon-QuickがMIT-0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇