{"id":"braintrust-analyze","name":"braintrust-analyze","summary":"Braintrustを使ったClaude Codeセッションの解析","body":"# Braintrust Analysis\n\nAnalyze your Claude Code sessions for patterns, issues, and insights using Braintrust tracing data.\n\n## When to Use\n\n- After completing a complex task (retrospective)\n- When debugging why something failed\n- Weekly review of productivity patterns\n- Finding opportunities to create new skills\n- Understanding token usage trends\n\n## Commands\n\nRun from the project directory:\n\n```bash\n# Analyze last session - summary with tool/agent/skill breakdown\nuv run python -m runtime.harness scripts/braintrust_analyze.py --last-session\n\n# List recent sessions\nuv run python -m runtime.harness scripts/braintrust_analyze.py --sessions 5\n\n# Agent usage statistics (last 7 days)\nuv run python -m runtime.harness scripts/braintrust_analyze.py --agent-stats\n\n# Skill usage statistics (last 7 days)\nuv run python -m runtime.harness scripts/braintrust_analyze.py --skill-stats\n\n# Detect loops - find repeated tool patterns (>5 same tool calls)\nuv run python -m runtime.harness scripts/braintrust_analyze.py --detect-loops\n\n# Replay specific session - show full sequence of actions\nuv run python -m runtime.harness scripts/braintrust_analyze.py --replay <session-id>\n\n# Weekly summary - daily activity breakdown\nuv run python -m runtime.harness scripts/braintrust_analyze.py --weekly-summary\n\n# Token trends - usage over time\nuv run python -m runtime.harness scripts/braintrust_analyze.py --token-trends\n```\n\n## Options\n\n- `--project NAME` - Braintrust project name (default: agentica)\n\n## What You'll Learn\n\n### Session Analysis\n- Tool usage breakdown\n- Agent spawns (plan-agent, debug-agent, etc.)\n- Skill activations (/commit, /research, etc.)\n- Token consumption estimates\n\n### Loop Detection\nFind sessions where the same tool was called repeatedly, which may indicate:\n- Stuck in a search loop\n- Inefficient approach\n- Opportunity for better tooling\n\n### Usage Patterns\n- Which agents you use most\n- Which skills get activated\n- Daily/weekly activity trends\n\n## Examples\n\n### Quick Retrospective\n```bash\n# What happened in my last session?\nuv run python -m runtime.harness scripts/braintrust_analyze.py --last-session\n```\n\nOutput:\n```\n## Session Analysis\n**ID:** `92940b91...`\n**Started:** 2025-12-24T01:31:05Z\n**Spans:** 14\n\n### Tool Usage\n- Read: 4\n- Bash: 2\n- Edit: 2\n...\n```\n\n### Find Loops\n```bash\nuv run python -m runtime.harness scripts/braintrust_analyze.py --detect-loops\n```\n\n### Weekly Review\n```bash\nuv run python -m runtime.harness scripts/braintrust_analyze.py --weekly-summary\n```\n\n## Requirements\n\n- BRAINTRUST_API_KEY in ~/.claude/.env or project .env\n- Braintrust tracing enabled (via braintrust-claude-plugin)","author":"@parcadei","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/braintrust-analyze","license":"MIT","category":"document","lang":"en","tokens":649,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"SKILL.md.bak","size":2728,"sha256":"f94c9a5e4bc6d5998760634d9491807425536f10a02d1308b621d223db40a75b"},{"path":"SKILL.v6.md","size":1872,"sha256":"99485aa5035272f77ff057895284f9366f3a4e1ea098c82ac091905e9450cdd8"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}