← ClaudeAtlas

gza-log-insightslisted

Analyze gza run logs to find recurring anti-patterns, wasted effort, and suggest AGENTS.md or workflow improvements
mhawthorne/gza · ★ 11 · AI & Automation · score 80
Install: claude install-skill mhawthorne/gza
# Gza Log Insights Analyze gza execution logs to find recurring anti-patterns, wasted compute, and actionable improvements. This skill scans task transcript logs (`*.log`) and paired ops logs (`*.ops.jsonl`), aggregates patterns across many runs, and produces recommendations for AGENTS.md updates, prompt improvements, or workflow changes. ## Process ### Step 1: Locate and inventory logs Find the log directory and count available logs: ```bash uv run python -c " from gza.config import load_config cfg = load_config() log_dir = cfg.get_log_dir() print(str(log_dir)) " ``` Then list and count: ```bash ls <log_dir> | wc -l ``` If no logs exist, report that and stop. ### Step 2: Run the analysis script Run the following comprehensive analysis across all log files. This script extracts patterns from the JSONL log format (where each line is a JSON entry with types: system, assistant, user, result). ```bash uv run python -c " import json, os, re, sys from collections import Counter, defaultdict from pathlib import Path from gza.config import load_config cfg = load_config() log_dir = cfg.get_log_dir() log_files = sorted(log_dir.glob('*.log')) ops_log_files = sorted(log_dir.glob('*.ops.jsonl')) if not log_files: print('No log files found.') sys.exit(0) # --- Counters --- bare_commands = Counter() # commands missing 'uv run' failed_bash = Counter() # bash commands that failed git_errors = Counter() # git-specific errors tool_distributio