Logo Event Description Generator

Event Description Generator

Tổ chức
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.

Tổng quan

Nhà phát hànhamplitude
Kho mãmcp-marketplace
Tên kỹ năngevent-description-generator
Sao
47
Bản fork
12
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được amplitude công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Event Description Generator trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude-experimental/skills/event-description-generator
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Event Description Generator trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Event Description Generator ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Event Description Generator với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Event Description Generator làm được gì?

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.

Vì sao nên dùng Event Description Generator trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Event Description Generator là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Event Description Generator trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude-experimental/skills/event-description-generator. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Event Description Generator?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Event Description Generator với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Event Description Generator với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Event Description Generator có miễn phí không?

Có. Kỹ năng này được amplitude phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇