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★ 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-createtakes exactly abatchtrigger with the audience, one message step and an exit. For email the message step is onefunction_email; the tool description has the ids and the email shape, andfromtakes a verified sender when the project has one. For push it is onefunction_pushinstead (references/graph-schema.md has the shape), with the project's push integration ids inchannels. The audience rules in Hard rules apply. - Refine the message. An email step:
workflows-patch-action-email, designed with thedesigning-email-templatesskill. 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.
- Compose the graph. Build
actions+edgesper references/graph-schema.md. For anyfunctionnode, don't guess the template: list the live catalog withcdp-function-templates-listand read its required inputs withcdp-function-templates-retrieve. - Create as a draft.
workflows-create. Every workflow is createddraft; it does not execute yet. - Test-run it.
workflows-test-runruns one step at a time. Start at the first step (omitcurrent_action_id, or point it at the trigger) with sampleglobals({event, person, groups}), shaped like the trigger's real payload: aneventtrigger needs an event matching its filters, and aninternal-eventtrigger needs an event named in itsfilters.events(for the Slack trigger, a$slack_message_receivedevent with the Slack property bag) and no person (see references/graph-schema.md). Astatus=skippedresult 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'
Установить building-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic