Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

building-workflows

БесплатноБез исполняемых скриптовНе проверен

Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action/edge graph so it runs and opens cleanly in the visual editor, then change…

PostHogот PostHog★ 81 звезда на GitHub

Об этом скилле

Building workflows

A PostHog workflow is a directed graph: a list of action nodes (actions) wired by edges (edges), with exactly one trigger node that starts every run. You author that graph as JSON and ship it over MCP. Call it a "workflow" to the user, except for broadcasts and transactional emails, which have their own names (see below). "Hog flow" is the internal code name (HogFlow), not a user-facing term.

The single biggest failure mode is getting the graph JSON structurally wrong. The backend stores actions/config as loose JSON, but the visual editor parses every node against a strict schema, so a malformed node saves but then breaks the editor view for the whole workflow. Before composing or editing any graph, read references/graph-schema.md. It is the contract; do not improvise node shapes from these examples alone.

A one-off email that the user's code sends to one person, such as a password reset, a sign-in code or a receipt, is a transactional email, not a workflow. Use the sending-transactional-emails skill for it.

Broadcasts are not workflows

A broadcast is one email or push notification to an audience, sent once or on a schedule: an announcement, a newsletter, a product update, a maintenance notice. When the user asks for a broadcast, or for an email or push like that with no other steps, create it with broadcasts-create and call it a broadcast. Do not build it with workflows-create, and do not send it with workflows-enable, workflows-run-batch or workflows-schedule-create.

  • Create the draft. broadcasts-create takes exactly a batch trigger with the audience, one message step and an exit. For email the message step is one function_email; the tool description has the ids and the email shape, and from takes a verified sender when the project has one. For push it is one function_push instead (references/graph-schema.md has the shape), with the project's push integration ids in channels. The audience rules in Hard rules apply.
  • Refine the message. An email step: workflows-patch-action-email, designed with the designing-email-templates skill. A push step: workflows-patch-graph.
  • Leave the launch to the user. Do not enable it, start a run or attach a schedule. Give the user the broadcast link: they pick the timing, review the audience and launch it from the broadcast wizard.

Build a workflow instead only when the message needs what a broadcast can't hold: more than one message, delays, branches, an event trigger, or SMS (a broadcast sends one email or one push, never SMS). Say so to the user before you build it, because it shows under workflows, not broadcasts.

When the user has an existing workflow that is only a batch trigger, one email and an exit, and wants it under broadcasts, offer workflows-convert-to-broadcast. It can't be undone, so ask first.

Before the first messaging workflow

When the user asks to set up workflows or messaging, or asks for an email, SMS or push workflow in a project that may not send yet, call workflows-setup-status before composing anything. It says which setup steps are open and links each one in the app. Walk the user through the open steps, set the sending rules, then offer suggested workflows. Read references/onboarding.md for the flow and the defaults to recommend.

Skip this for automations that only post to Slack or call webhooks: they need no email setup. If workflows-setup-status is not available, go straight to the lifecycle below.

The lifecycle

Work the workflow through these stages. Don't jump straight to enabling it.

  1. Compose the graph. Build actions + edges per references/graph-schema.md. For any function node, don't guess the template: list the live catalog with cdp-function-templates-list and read its required inputs with cdp-function-templates-retrieve.
  2. Create as a draft. workflows-create. Every workflow is created draft; it does not execute yet.
  3. Test-run it. workflows-test-run runs one step at a time. Start at the first step (omit current_action_id, or point it at the trigger) with sample globals ({event, person, groups}), shaped like the trigger's real payload: an event trigger needs an event matching its filters, and an internal-event trigger needs an event named in its filters.events (for the Slack trigger, a $slack_message_received event with the Slack property bag) and no person (see references/graph-schema.md). A status=skipped result means this payload would not fire the trigger: if you fabricated the payload, fix it to match the trigger; if it came from a real past run (workflows-get-invocation), the trigger's filter is wrong, not the payload. The result includes the next step'
Полный SKILL.md на GitHub

Установить building-workflows в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/graph-schema.mdreferences/lifecycle-and-debugging.mdreferences/onboarding.md

FAQ

Что делает скилл building-workflows?

Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action/edge graph so it runs and opens cleanly in the visual editor, then change drafts surgically with patch operations. Use when asked to build, set up, automate, change, fix, or debug a workflow, campaign, broadcast, drip sequence, or event-triggered automation in the workflows product, including first-time messaging setup (email channel, sending domain, frequency cap) before the first workflow. A broadcast (one email or push notification to an audience, sent once or on a schedule) is not a workflow: this skill routes it to broadcasts-create instead of building and running a batch workflow.

Как установить скилл building-workflows?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл building-workflows запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить building-workflows с