# building-loops

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 122 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/building-loops/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/building-loops

## What it 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.

## Requirements
- Works with: GitHub, Slack

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-loops -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/building-loops/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/building-loops/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-loops -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/building-loops/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-loops -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/building-loops/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/building-loops
```

2. **Manually: put the files in place**
- File: `.github/skills/building-loops/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-loops -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/building-loops
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/building-loops/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-loops -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/building-loops/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [community-building](https://affpapa.org/en/nevibecode/skills/manojbajaj95-community-building.md) — skill · 246 installs
- [Nia](https://affpapa.org/en/nevibecode/skills/nia.md) — skill · 56300 installs
- [extension-http-endpoints](https://affpapa.org/en/nevibecode/skills/extension-http-endpoints.md) — skill · 7200 installs
- [chat-sdk](https://affpapa.org/en/nevibecode/skills/vercel-chat-sdk.md) — skill · 5500 installs
- [composio](https://affpapa.org/en/nevibecode/skills/starchild-ai-agent-composio.md) — skill · 4300 installs
- [base44-platform-connectors](https://affpapa.org/en/nevibecode/skills/base44-platform-connectors.md) — skill · 3000 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
