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…
от amplitude★ 50 звёзд на GitHubОб этом скилле
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
- Resolve project input (
projectIdor project name) - Create a run ID with short git SHA (
<projectId>-<sha>) - Create run directories under
runs/ - Determine cursor plan (
cursorStart,maxEvents, chunk size) - Spawn
event-descriptions-workersubagents for cursor chunks - Collect worker summaries + output paths
- Compress the run into a single CSV
- 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_metadatafrom 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:0maxEvents:400eventsPerWorker:50maxParallelWorkers:4
For maxEvents:
- Compute total chunks as
ceil(maxEvents / eventsPerWorker). - Process at most
maxEventsevents starting atcursorStart. - For the final chunk, pass a reduced
eventsPerWorkerif needed to avoid exceedingmaxEvents.
For each chunk:
- Worker input cursor = current cursor
- Next planned cursor = current cursor +
eventsPerWorker
Phase 3: Initialize Run Directory
Before launching workers:
- Get the short git SHA by running
git rev-parse --short HEADin the workspace root. - Create
runId = <projectId>-<sha>. - 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)cursorrunIdeventsPerWorker(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:
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:
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:100maxParallelWriters: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:
python3 .agents/skills/event-description-generator/scripts/writer
Установить event-description-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл event-description-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл event-description-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic