building-workflows
SkillBuild, 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, dr
Install
git clone https://github.com/PostHog/ai-plugin.git ~/.claude/skills/building-workflowsWhat is 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.
What this can do
Capabilities declared in this component's own frontmatter — not inferred.
Inherit all session tools
Declares no tool restrictions — inherits every session tool
~92 tokens of context used while enabled, before you invoke anything
Trust
73/100 · Good3 factors scored below maximum
Documentation
README · ~8 min readBuilding 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. Always call it a "workflow" to the user. "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.
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}); the result includes the next step's id (nextActionId). Feed that back ascurrent_action_idand run again, walking step by step to the end. Skipdelaynodes by jumping to the action after them (delays aren't simulated). Async side effects (HTTP/email/SMS/push) are mocked unless you setmock_async_functions=false. Read each step's trace to confirm the path taken. - Read logs while iterating.
workflows-logsshows the per-step execution trace (levels DEBUG to ERROR). This is how you see why a step skipped, branched, or errored. - Edit, then re-test. Patch the graph with
workflows-patch-graph(see Editing a draft). Every edit invalidates your earlier test — re-run the affected path before moving on. On a draft workflow, edits apply directly; on an active one they stage a draft (see Changing a live workflow).
Reviews
Log in to leave a review.
No reviews yet — be the first.
Explore related
Other things in this space — across every part of the ecosystem, not just skills.
Skillssimilar to this one
All skills →awesome-claude-skills
A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
71.2K stars
claude-automation-recommender
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wa
32.8K stars
agents-best-practices
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
2.2K stars