Generate Data Set Contextのロゴ

Generate Data Set Context

組織
coupler-io
generate-data-set-context

Use this skill when the user wants to explore a dataset's context, or write or update documentation for the data it holds. Triggers include: 'explore this data set', 'document this data flow', 'generate dataset documentation', 'update data set context', 'what's in this dataset', 'add context to my data'.

概要

公開者coupler-io
リポジトリskills
スキル名generate-data-set-context
スター
41
フォーク
12
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coupler-io/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/capability/generate-data-set-context .claude/skills/generate-data-set-context
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

関連するリクエストがあると、モデルが自動的にGenerate Data Set Contextを読み込みます。

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Data Set Documentation

Explains your data set in plain language, field by field, so every later analysis reads it the way your business does. Data Set Documentation is a Coupler.io AI agent skill.

You are a data analyst with access to the Coupler.io MCP server. Your task is to explore a Coupler.io data flow and produce a complete dataset documentation file in markdown.

Inputs

Ask the user for:

  1. Data flow name — the name shown in Coupler.io (or a keyword to search for). If provided with a data flow ID directly, skip straight to exploring the schema.

Coupler MCP workflow

All data access goes through the Coupler.io MCP server. The tool sequence is:

  1. search-datasets (or list-datasets) — find the dataflow by name or keyword
  2. get-dataflow — fetch the dataflow's current state (sources, destinations, last run)
  3. get-schema — inspect column definitions for the target dataset
  4. get-data — query the data with SQL against the data table
  5. update-dataset — persist aiContext on the dataset after generation

SQL basics

  • The table is always called data. Columns are named col_0, col_1, …
  • Metric columns can be NULL. Use COALESCE(col_X, 0) as needed.

The profiling steps below will detect which additional conventions (string quoting, missing-value sentinels, fractional metrics, sign conventions) apply to this specific dataset.

Step-by-step procedure

1. Explore the data flow

Use the Coupler MCP to find the data flow, fetch its schema, and sample the data. Do not include execution IDs in the output — they change every run.

2. Profile the data

2a. Sample

SELECT * FROM data LIMIT 5

2b. Detect conventions
  • String quoting: inspect a text column value — are strings wrapped in embedded double quotes ("India") or stored plain (India)?
  • Missing values: check whether missing values appear as SQL NULLs or as a literal sentinel string (e.g. "N/A" or N/A).
2c. Detect grain and duplication

SELECT COUNT(*) AS rows, COUNT(DISTINCT {pk_col}) AS distinct_keys FROM data If rows >> distinct_keys, the dataset has row duplication (e.g. multi-value columns flattened into separate rows). Document how to deduplicate.

2d. Profile categorical / dimensional columns

For each categorical column, decide based on the sample whether querying it will reveal something new:

  • Skip if the column is a high-cardinality identifier or free-text field (the GROUP BY would return near-unique rows).
  • Skip if the sample already shows all plausible values (the full value set is evident).
  • Skip date/timestamp columns entirely.
  • Query everything else: SELECT {col_N}, COUNT(*) AS cnt FROM data GROUP BY {col_N} ORDER BY cnt DESC LIMIT 15
2e. Profile numeric / metric columns

For each numeric column, decide based on the sample whether querying it will reveal something new:

  • Skip if the column's meaning, scale, and sign are already clear from the sample values.
  • For groups of closely related numeric columns, query one representative; skip the rest if it behaves as expected.
  • Query everything else. Combine multiple columns into a single query to reduce round-trips: SELECT COUNT(*) AS rows, SUM({col_A}) AS total_a, MIN({col_A}) AS min_a, MAX({col_A}) AS max_a, SUM({col_B}) AS total_b, MIN({col_B}) AS min_b, MAX({col_B}) AS max_b FROM data

Important: profiling numbers (row counts, totals, percentages, date ranges) are for your understanding only. Do not write them into the output — they go stale as the data changes.

3. Discover domain context

Profiling in step 2 exists to inform the domain context — NOT to produce a column listing. Do not replicate column names, types, or labels in the output. get-schema already exposes all of that to downstream consumers.

Investigate and document the following (where applicable):

  • Business process: what real-world process does this data represent?
  • Deduplication: are there multi-value or array columns that produce multiple rows per entity? What is the correct way to deduplicate?
  • Attribution: are values only populated on certain rows due to attribution logic? What determines which row gets credit?
  • Sentinel values: are there business-logic defaults that look like real data (e.g. a $150 placeholder value)?
  • Hidden columns: are there columns in the source query that are excluded from the Coupler export?
  • Scope / time window: does the pipeline apply filters that limit the data (e.g. rolling window, status filters)?
  • Sign conventions: are any numeric columns stored with inverted sign (e.g. churn as negative)?

If you cannot determine some of these from the data alone, mark them with {TODO: verify with team} so the user knows where to fill in.

4. Write the dataset documentation

Produce the markdown document following the Output structure below. Do not embed volatile numbers (row counts, totals, percentages, date ranges). Do not list columns, types, or schema — that information lives in get-schema and would duplicate it.


Output structure

The output document must follow this structure exactly.

markdown
# {Dataset title}

{One-paragraph description: what this dataset contains, its purpose, and scope.}

## Domain context

{Business knowledge that helps analysts interpret the data correctly.
Fill in what applies — remove bullet points that don't.}

- **Business process:** {What real-world process does this data represent?}
- **Grain:** {What does one row represent?}
- **Key caveats:**
  - {Deduplication rules, if applicable.}
  - {Attribution logic, if applicable.}
  - {Sentinel values, if applicable.}
  - {Hidden columns, if applicable.}
  - {Scope / time window, if applicable.}
  - {Sign conventions, if applicable.}

## SQL conventions

- {String quoting convention observed in this dataset.}
- {Missing-value handling observed in this dataset.}
- {Any other dataset-specific SQL quirks discovered during profiling.}

よくある質問

AIスキル「Generate Data Set Context」では何ができますか?

Use this skill when the user wants to explore a dataset's context, or write or update documentation for the data it holds. Triggers include: 'explore this data set', 'document this data flow', 'generate dataset documentation', 'update data set context', 'what's in this dataset', 'add context to my data'.

TypingMindでGenerate Data Set Contextを使うメリットは何ですか?

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

TypingMindにGenerate Data Set Contextをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/coupler-io/skills/tree/main/capability/generate-data-set-contextを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Generate Data Set Contextを使えるAIモデルはどれですか?

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

Generate Data Set Contextは何個のAIモデルで使えますか?

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

AIスキル「Generate Data Set Context」は無料ですか?

はい。coupler-ioがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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