Event Description Generatorのロゴ

Event Description Generator

組織
amplitude
event-description-generator

Orchestrate event description audits by delegating chunk work to the event-descriptions-worker subagent. Resolve a project name to projectId via get_context when needed, then spawn worker subagents over cursors for a bounded run window and write outputs into run-scoped directories. Use when auditing missing event descriptions at scale without doing per-event analysis directly in this skill.

概要

公開者amplitude
リポジトリmcp-marketplace
スキル名event-description-generator
スター
47
フォーク
12
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 3個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Event Description Generator

Run this skill as an orchestrator only. Do not perform per-event filtering, repo search, or description-writing logic in this skill body. Delegate chunk processing to the event-descriptions-worker subagent.

Workflow

  1. Resolve project input (projectId or project name)
  2. Create a run ID with short git SHA (<projectId>-<sha>)
  3. Create run directories under runs/
  4. Determine cursor plan (cursorStart, maxEvents, chunk size)
  5. Spawn event-descriptions-worker subagents for cursor chunks
  6. Collect worker summaries + output paths
  7. Compress the run into a single CSV
  8. Report concise progress and next cursor

Execution Rules

  • Keep this skill as a dispatcher; the worker does the heavy lifting.
  • Do not call set_event_metadata from this skill.
  • Do not manually re-implement worker filtering/search logic here.
  • Preserve user control over scope (project, cursor range, chunk size, parallelism).

Prerequisites

The user must provide either:

  • projectId, or
  • project name to resolve.

If neither is provided, stop and ask.

Phase 1: Resolve Project

1.1 If projectId is provided

Use it directly.

1.2 If project name is provided

Call get_context and resolve the name to a single projectId.

  • If exactly one clear match exists, continue with that ID.
  • If multiple matches exist, ask the user to choose.
  • Do not choose an ambiguous match on behalf of the user.

1.3 If project name is not provided

Prompt the user to input the project name or ID and halt.

Phase 2: Build Cursor Plan

Default values unless the user specifies otherwise:

  • cursorStart: 0
  • maxEvents: 400
  • eventsPerWorker: 50
  • maxParallelWorkers: 4

For maxEvents:

  • Compute total chunks as ceil(maxEvents / eventsPerWorker).
  • Process at most maxEvents events starting at cursorStart.
  • For the final chunk, pass a reduced eventsPerWorker if needed to avoid exceeding maxEvents.

For each chunk:

  • Worker input cursor = current cursor
  • Next planned cursor = current cursor + eventsPerWorker

Phase 3: Initialize Run Directory

Before launching workers:

  1. Get the short git SHA by running git rev-parse --short HEAD in the workspace root.
  2. Create runId = <projectId>-<sha>.
  3. Ensure these directories exist:
    • .agents/skills/event-description-generator/runs/
    • .agents/skills/event-description-generator/runs/<runId>/

Phase 4: Spawn Worker Subagents

For each planned cursor, invoke event-descriptions-worker with:

  • projectId (resolved)
  • cursor
  • runId
  • eventsPerWorker (optional per-worker chunk size; pass when not default)

Worker output file convention:

  • .agents/skills/event-description-generator/runs/<runId>/event-descriptions-<cursor>.csv

4.1 Parallelization guidance

  • If user asks for one cursor, run one worker.
  • If user asks for multiple cursors/range, run workers in parallel up to maxParallelWorkers.
  • For large ranges, run in waves (bounded concurrency), then continue until limit reached.

Phase 5: Collect Worker Results

From each worker response, capture:

  • events fetched
  • events written
  • output CSV path
  • next cursor
  • any errors

Phase 6: Compress Run

After all workers have completed, run the compress script to merge all chunk CSVs into a single file, keeping only rows with a suggested_description:

bash
python3 .agents/skills/event-description-generator/scripts/compress-run.py <runId>

Capture the script's stdout to include compression stats in the report. If the script fails, note the error but do not block the report.

Phase 7: User-Facing Report

Return a short summary:

text
Event description generator dispatch complete for project {projectId}
- Run ID: {runId}
- Workers run: {n}
- Total fetched: {sum_fetched}
- Total written: {sum_written}
- Compressed output: .agents/skills/event-description-generator/runs/{runId}/{runId}-{YYYY-MM-DD}.csv
  - Rows with descriptions: {compress_written}
  - Rows filtered (no description): {compress_filtered}
- Next cursor to continue: {max_next_cursor_or_last_next_cursor}
- Errors: {none_or_list}

If the user never specified writing the descriptions, ask if they would like to write the suggested descriptions to Amplitude.

Phase 8: Write Descriptions to Amplitude

IMPORTANT: Only execute this phase when the user has explicitly asked to write descriptions.

Fixed constants (not configurable):

  • eventsPerWriter: 100
  • maxParallelWriters: 4

8.1 Locate the compressed CSV

Use the compressed output path reported in Phase 7:

.agents/skills/event-description-generator/runs/<runId>/<runId>-<YYYY-MM-DD>.csv

If the file does not exist (e.g. the user is resuming a previous run), ask the user to provide the path and halt.

8.2 Build writer plan

Run the writer-plan script to count data rows and compute chunks in one step:

bash
python3 .agents/skills/event-description-generator/scripts/writer-plan.py <csvPath>

The script outputs JSON with all the information needed to spawn writers:

json
{
  "csvPath": "...",
  "totalDataRows": 137,
  "eventsPerWriter": 50,
  "totalChunks": 3,
  "chunks": [
    { "index": 0, "lineStart": 1, "lineEnd": 50 },
    { "index": 1, "lineStart": 51, "lineEnd": 100 },
    { "index": 2, "lineStart": 101, "lineEnd": 137 }
  ]
}

Parse the JSON output and use the chunks array to drive step 8.4.

8.3 Spawn writer subagents

For each planned chunk, invoke event-descriptions-writer with:

  • projectId (resolved in Phase 1)
  • csvPath
  • lineStart
  • lineEnd

Run workers in parallel up to maxParallelWriters. For large files, process in waves (bounded concurrency) until all chunks are complete.

8.4 Collect writer results

From each worker response, capture:

  • written: events successfully written
  • skippedRows: rows filtered due to missing fields
  • success: true/false
  • errors: any tool errors

8.5 Write report

Return a concise summary:

text
Description write complete for project {projectId}
- Source: {csvPath}
- Total data rows: {totalDataRows}
- Writers run: {totalChunks}
- Total written: {sum_written}
- Total skipped: {sum_skipped}
- Errors: {none_or_list}

Common Invocation Patterns

Single chunk

  • Inputs: projectId=123, cursor=500
  • Run ID generated once for this invocation
  • Action: spawn one worker
  • Output: one CSV + next cursor

Multi-chunk wave

  • Inputs: projectId=123, cursorStart=0, maxEvents=100, eventsPerWorker=20
  • Planned cursors: 0, 20, 40, 60, 80
  • Action: spawn workers with bounded parallelism
  • Output: five CSVs under one run directory, continuation cursor 100

References

  • Audit worker definition: .cursor/agents/event-descriptions-worker.md
  • Writer worker definition: .cursor/agents/event-descriptions-writer.md
  • Compress script: .agents/skills/event-description-generator/scripts/compress-run.py
  • Legacy search heuristics (if needed for worker evolution): search-playbook.md

同梱ファイル

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

よくある質問

AIスキル「Event Description Generator」では何ができますか?

Orchestrate event description audits by delegating chunk work to the event-descriptions-worker subagent. Resolve a project name to projectId via get_context when needed, then spawn worker subagents over cursors for a bounded run window and write outputs into run-scoped directories. Use when auditing missing event descriptions at scale without doing per-event analysis directly in this skill.

TypingMindでEvent Description Generatorを使うメリットは何ですか?

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

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

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

Event Description Generatorを使えるAIモデルはどれですか?

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

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

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

AIスキル「Event Description Generator」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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