# analyzing-task-runs

analyzing-task-runs — a Claude Code skill that breaks down a completed task run from its log and records the activities. It starts when asked to analyze a run or review an attached log.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 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/analyzing-task-runs/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/analyzing-task-runs

## What it does

The skill divides a task log into activities, capturing the agent’s goal, outcome, any blocker, and supporting lines. It submits each record through `report_activity`, then lists the recorded activities and calls `finish` with status `completed`.

It needs an attached `.jsonl` run log under `.posthog/attachments`. The skill identifies the log format and uses bounded `jq` queries; it handles pi and ACP schemas. The log must be queried in capped sections rather than read unfiltered. Records contain facts, not repair suggestions.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/analyzing-task-runs
```

2. **Manually: put the files in place**
- File: `.github/skills/analyzing-task-runs/SKILL.md`

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill analyzing-task-runs -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/analyzing-task-runs/SKILL.md

## When to use it
- split an agent run into goal-based activities
- record each activity’s outcome and blocker
- attach log lines as evidence for an activity
- mark where a user redirect changes the task

## Example prompts
- Analyze the completed run from the attached log and record its activities.
- Review this run log, noting the agent’s actions and any blockers.
- Break down the attached `.jsonl` task log into activities.

## Similar
- [data-enrichment](https://affpapa.org/en/nevibecode/skills/data-enrichment.md) — skill · 1900 installs
- [triaging-visual-review-runs](https://affpapa.org/en/nevibecode/skills/triaging-visual-review-runs.md) — skill · 398 installs
- [analyzing-experiment-session-replays](https://affpapa.org/en/nevibecode/skills/analyzing-experiment-session-replays.md) — skill · 463 installs
- [crontap-debug-failed-runs](https://affpapa.org/en/nevibecode/skills/crontap-debug-failed-runs.md) — skill · 1300 installs
- [testdino-runs](https://affpapa.org/en/nevibecode/skills/testdino-runs.md) — skill · ★ 4931 repo stars
- [testdino-manual-runs](https://affpapa.org/en/nevibecode/skills/testdino-manual-runs.md) — skill · ★ 4931 repo stars

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
