Dust Elasticsearchのロゴ

Dust Elasticsearch

組織人気
dust-tt
dust-elasticsearch

`front`でElasticsearchのインデックスを作成、マイグレーション、検索します。`front`に新しいElasticsearchインデックスを追加する場合、マッピングや設定を変更する場合、インデックス作成ロジックを組み込む場合、Elasticsearchを利用する分析・検索エンドポイントを公開する場合に使用します。

Add to TypingMind

概要

公開者dust-tt
リポジトリdust
スキル名dust-elasticsearch
スター
1.5K
フォーク
370
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 5個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Front Elasticsearch

Use this skill when working on Elasticsearch-backed features in front. SKILL.md covers the default path for routine work. You should only load the supporting references when you need deeper material such as analyzer design, full curl verification, query recipes, or relocation details.

Default Workflow

  1. Decide whether you are:
    • adding a brand-new index
    • shipping a new version of an existing index
    • only changing indexing or querying logic on top of an existing alias
  2. Define the document type under front/types/....
    • Extend ElasticsearchBaseDocument for workspace-scoped indices instead of redeclaring workspace_id.
    • Keep a stable primary identifier in the document and include a migration-friendly timestamp such as updated_at when backfills or version bumps are likely.
  3. Create versioned mappings and per-region settings under front/lib/<feature>/indices/.
    • Prefer keyword for ids and enums, date for timestamps, numeric field types for metrics, nested only when array element relationships matter, and text only when full-text search is actually required.
  4. Register the stable alias and index directory in front/lib/api/elasticsearch.ts.
    • App code should read and write through the alias, not a concrete versioned index name.
  5. Create the physical index with tsx front/scripts/create_elasticsearch_index.ts.
    • The normal shape is front.<index_name>_<version> behind alias front.<index_name>.
  6. Add indexing helpers using deterministic document ids and alias-based writes.
    • The common pattern is ${workspaceId}_${entityId} or an equivalent deterministic key.
    • Use withEs(...) and client.index, client.update, or client.bulk.
  7. Add query helpers or endpoints.
    • Start with bool.filter.
    • Include workspace_id for workspace-scoped indices.
    • Use size: 0 for aggregation-only queries.
  8. If indexing is asynchronous or retry-prone, wire it through the shared Temporal ES queue.
  9. If the index must survive workspace relocation between regions, add the relocation activity and workflow hook.

Core Rules

  • Keep one mappings file per index version and one settings file per region.
  • Use version bumps for incompatible mapping or analyzer changes rather than mutating a live index in place.
  • Simple analytics indices usually do not need custom analyzers or Elasticsearch plugins.
  • If you need prefix search, multi-field mappings, ICU analyzers, or email-aware tokenization, read references/create-index.md before editing mappings.
  • Prefer async indexing through front/temporal/es_indexation/* when the write path does not need to block on Elasticsearch freshness.
  • Check relocation requirements for any workspace-scoped index that is expected to remain available after workspace region moves.

Current Architecture

This skill focuses on Elasticsearch indices managed in front, especially analytics-style indices, but the patterns also match the broader Dust Elasticsearch setup.

Current examples to copy from:

  • front.agent_message_analytics
    • version 2
    • write alias front.agent_message_analytics
    • basic mappings, no custom analyzers
  • core.data_sources_nodes
    • version 4
    • write alias core.data_sources_nodes
    • advanced analyzers, edge n-grams, multi-field mappings, and normalizers

The general pattern is:

  • versioned physical indices such as front.<index_name>_<version>
  • one stable alias such as front.<index_name> for app reads and writes
  • mappings and region-specific settings stored alongside the feature code

Primary Files

  • front/lib/api/elasticsearch.ts
  • front/scripts/create_elasticsearch_index.ts
  • front/lib/*/indices/*.mappings.json
  • front/lib/*/indices/*.settings.{region}.json
  • front/temporal/es_indexation/*
  • front/temporal/relocation/activities/destination_region/front/es_indexation.ts
  • front/temporal/relocation/workflows.ts

Existing References In Code

  • front/lib/user_search/indices/
  • front/lib/user_search/index.ts
  • front/lib/analytics/indices/
  • core/src/search_stores/indices/data_sources_nodes_4.*

Validation

  • The document type and mappings agree on field names and field kinds.
  • The index has a stable alias constant and an INDEX_DIRECTORIES entry.
  • The version in the script invocation matches the versioned mappings/settings filenames.
  • Writes target the alias constant rather than a concrete versioned index name.
  • Query helpers filter by workspace_id when the index is workspace-scoped.
  • Aggregation-only queries use size: 0.
  • Temporal integration exists when indexing is asynchronous or needs retries.
  • Relocation support exists when the index must be rebuilt in a destination region.

Supporting References

同梱ファイル

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

よくある質問

AIスキル「Dust Elasticsearch」では何ができますか?

`front`でElasticsearchのインデックスを作成、マイグレーション、検索します。`front`に新しいElasticsearchインデックスを追加する場合、マッピングや設定を変更する場合、インデックス作成ロジックを組み込む場合、Elasticsearchを利用する分析・検索エンドポイントを公開する場合に使用します。

TypingMindでDust Elasticsearchを使うメリットは何ですか?

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

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

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

Dust Elasticsearchを使えるAIモデルはどれですか?

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

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

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

AIスキル「Dust Elasticsearch」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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