building-loops — Claude Code skill: PostHog Loops and setup
The building-loops Claude Code skill builds Loops in PostHog Desktop, where an event or schedule starts an AI task. A Slack or email notification can follow the task.
no license 122 installs ★ 101 updated 2026-10-24
npx skills add PostHog/ai-plugin --skill building-loops -a claude-codeWhat building-loops does
The skill creates a PostHog Desktop Loop with a trigger, an AI task, and an exit; an optional notification can sit between the task and exit. It applies to requests to create or adjust a recurring task or automation triggered by GitHub, Slack, or PostHog activity.
The task runs unattended, so its prompt needs to spell out the work and the expected result. The triggering event arrives separately from the prompt. Code tasks need a repository with access enabled; without one, the task has no repository access.
The workflow starts as a draft and is tested step by step. Schedule-based Loops also need a schedule configuration, and the workflow is enabled after approval. Desktop makes workflows with a different structure read-only in its Loops screens. PostHog Desktop is required.
What it helps with
- start an AI task from a GitHub event
- run an AI task on a schedule
- send the task result through Slack or email
- change a Loop in PostHog Desktop
Example prompts for the agent
- Create a PostHog Desktop Loop that starts an AI task when a GitHub issue opens.
- Set up a scheduled AI task in PostHog Desktop.
- Add an email notification with the task result to this Loop.
How to install building-loops
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-loops -a claude-code2Manually: put the files in place
~/.claude/skills/building-loops/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/building-loops/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-loops -a codex2Manually: put the files in place
.agents/skills/building-loops/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-loops -a cursor2Manually: put the files in place
.cursor/skills/building-loops/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/building-loops2Manually: put the files in place
.github/skills/building-loops/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-loops -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/building-loopsManually: put the files in place
.devin/skills/building-loops/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-loops -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about building-loops
How do I install building-loops in Claude Code?
Run npx skills add PostHog/ai-plugin --skill building-loops -a claude-code. The skill file is at ~/.claude/skills/building-loops/SKILL.md.
What does building-loops do?
It helps create Loops in PostHog Desktop. A schedule or event starts an AI task, with an optional Slack or email notification after it finishes.
What does building-loops require?
It requires PostHog Desktop. Code-related tasks also need access to the repository they use.