# authoring-error-tracking-alerts

authoring-error-tracking-alerts guides your agent in configuring PostHog error tracking notifications, selecting lifecycle triggers, and connecting them to Slack or webhooks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 209 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/authoring-error-tracking-alerts/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/authoring-error-tracking-alerts

## What it does

This skill frames error notification setup as a routing workflow rather than a metrics task. The agent inspects existing alerts using `posthog:error-tracking-alerts-list` to prevent noisy duplicates before generating new rules. Alerts are written as HogFunctions via `posthog:error-tracking-alerts-create`.

Routing relies on three core lifecycle events: brand-new errors (`$error_tracking_issue_created`), regressions on resolved bugs (`$error_tracking_issue_reopened`), and abnormal volume spikes (`$error_tracking_issue_spiking`). Whenever instructions lack specifics, the agent defaults to spike alerts because they yield the highest signal-to-noise ratio.

It does not tune spike detector thresholds or monitor simple counts of `$exception` events. Those mechanics sit outside the exposed MCP tools. Operating this skill requires an active PostHog MCP connection configured with alert and integration management permissions.

## Requirements
- Works with: Linear, Slack

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill authoring-error-tracking-alerts -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill authoring-error-tracking-alerts -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill authoring-error-tracking-alerts -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/authoring-error-tracking-alerts
```

2. **Manually: put the files in place**
- File: `.github/skills/authoring-error-tracking-alerts/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill authoring-error-tracking-alerts -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/authoring-error-tracking-alerts
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill authoring-error-tracking-alerts -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/authoring-error-tracking-alerts/SKILL.md

## When to use it
- route recurring PostHog exceptions to a specific Slack channel
- scan existing internal destinations to avoid duplicate alerts
- configure lifecycle-based notifications for newly opened issues
- wire error spike warnings to a team webhook without notification flood

## Example prompts
- Set up a PostHog alert in Slack when error spikes happen in production
- Notify me when this resolved issue gets reopened in PostHog
- Audit existing PostHog error alerts before creating a new webhook route

## Similar
- [authoring-log-alerts](https://affpapa.org/en/nevibecode/skills/authoring-log-alerts.md) — skill · 386 installs
- [instrument-error-tracking](https://affpapa.org/en/nevibecode/skills/instrument-error-tracking.md) — skill · 546 installs
- [sentry-create-alert](https://affpapa.org/en/nevibecode/skills/sentry-create-alert.md) — skill · 4400 installs
- [n8n-agents-official](https://affpapa.org/en/nevibecode/skills/n8n-agents-official.md) — skill · 2500 installs
- [cyrus-setup](https://affpapa.org/en/nevibecode/skills/cyrus-setup.md) — skill · 1300 installs
- [chat-sdk](https://affpapa.org/en/nevibecode/skills/vercel-chat-sdk.md) — skill · 5500 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
