# soundsguyza/exploring-llm-traces

ABSOLUTE MUST to debug and inspect LLM/AI agent traces using PostHog's MCP tools. Use when the user pastes a trace or session URL (e.g. /ai-observability/traces/<id> or /ai-observability/sessions/<id>), asks to debug a trace, figure out what went wrong, check if an agent used a tool correctly, verify context/files were surfaced, inspect subagent behavior, investigate LLM decisions, or analyze token usage and costs. Also use when raw SQL/HogQL against `events.properties.$ai_input` / `$ai_output_choices` returns empty — message content lives only on the dedicated `posthog.ai_events` table.


- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (14824 bytes)
- references/events-and-properties.md (8117 bytes)
- references/example-llm-trace.md.j2 (1442 bytes)
- references/example-llm-traces-list.md (4029 bytes)
- scripts/extract_conversation.py (4055 bytes)
- scripts/extract_span.py (2454 bytes)
- scripts/print_summary.py (5727 bytes)
- scripts/print_timeline.py (2214 bytes)
- scripts/search_traces.py (1685 bytes)
- scripts/show_structure.py (1435 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/exploring-llm-traces
3. Load it with the get_skill tool: `get_skill("soundsguyza/exploring-llm-traces")`, then follow its instructions.
