parcadei/Continuous-Claude-v3 / .claude/skills/braintrust-analyze
braintrust-analyze
VerifiedAnalyze Claude Code sessions via Braintrust
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.7 KB |
| SKILL.md.bak | other | 2.7 KB |
| SKILL.v6.md | markdown | 1.8 KB |
SKILL.v6.md
View on GitHub---
name: braintrust-analyze
version: 6.0-hybrid
description: Analyze Claude Code sessions via Braintrust tracing
---
# Option: braintrust-analyze
## I (Initiation)
activate: [retrospective, debug_failure, weekly_review, skill_opportunity, token_analysis]
skip: [active_implementation, planning_phase]
## Y (Observation Space)
| signal | source | interpretation |
|--------|--------|----------------|
| session_id | Braintrust API | target session |
| spans | Braintrust traces | tool/agent/skill calls |
| token_usage | span metadata | consumption patterns |
## U (Action Space)
primary: [Bash]
forbidden: [Write, Edit]
## pi (Policy)
### P0: Mode Selection
```
eta |-> last_session if no_params
eta |-> specific_mode if param_provided
```
| action | Q | why | mitigation |
|--------|---|-----|------------|
| guess_session | -inf | Wrong data analyzed | use --last-session |
| skip_api_check | -inf | BRAINTRUST_API_KEY may be missing | check env first |
### P1: Execute Analysis
```
eta |-> run_script(mode) via Bash
mode in {--last-session, --sessions N, --agent-stats, --skill-stats, --detect-loops, --replay ID, --weekly-summary, --token-trends}
```
| action | Q | why |
|--------|---|-----|
| last_session | HIGH | Most common use case |
| detect_loops | HIGH | Finds inefficiencies |
| agent_stats | MED | Weekly review |
### Command Reference
```bash
uv run python -m runtime.harness scripts/braintrust_analyze.py [OPTIONS]
```
## beta (Termination)
```
beta(eta) = 1.0 if analysis_displayed OR api_error
```
success: [patterns_identified, loops_found, summary_generated]
failure: [api_key_missing, no_sessions_found]
## Output Schema
```yaml
sections: [session_id, tool_breakdown, agent_spawns, skill_activations, recommendations]
```
## Invariants
```
inv_1: never write files (read-only analysis)
inv_2: always check BRAINTRUST_API_KEY exists
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |