← ClaudeAtlas

log-analyzerlisted

Distills build, test, or lint failure logs into a structured Root Cause Analysis (RCA) block. Extracts root cause, failing file, line number, and a 1-line fix suggestion. Returns [RCA] envelope. <example> Context: npm run build failed, safe-exec stored the log at a path. user: "Analyze the build failure log at ~/worklogs/logs/run_20260414_101530_a1b2c3d4.log" assistant: "Running log-analyzer — returns RCA block with root cause and fix suggestion." </example>
reghis86/context-forge · ★ 0 · AI & Automation · score 73
Install: claude install-skill reghis86/context-forge
## What This Does Runs `bash ${CLAUDE_PLUGIN_ROOT}/core/scripts/tools/log-context-analyzer.sh --file <path>` to parse error logs using pattern matching for TypeScript, Jest, ESLint, Angular, and safe-exec observation formats. Uses contextual `rg` extraction and returns a structured RCA block with: root cause, failing file and line number when available, error message, and a 1-line fix suggestion. Never dumps raw log content into context. ## When to Use - Build, test, or lint failure that needs root cause analysis - safe-exec returned non-zero exit code with truncated output - Error logs too large to read directly (>5 KB) - Circuit breaker situation — need to understand failure before retrying ## How to Use Step 1: Obtain the log file path (from safe-exec output or direct path). Step 2: Run log-analyzer. ```bash bash ${CLAUDE_PLUGIN_ROOT}/core/scripts/tools/log-context-analyzer.sh --file <path/to/logfile> ``` Optional flags: - `--log <path>` / `--log-file <path>` — backward-compatible aliases for `--file` - `--format typescript|jest|eslint|build|generic` — alias for `--type` - `--type typescript|jest|eslint|build|generic` — canonical format hint flag - `--max-errors <n>` — limit to top N errors (default: 3) Step 3: Apply the fix suggested in the RCA block. If the fix is ambiguous, use shadow-lookup to verify file paths before editing. ## Output Format ``` [RCA] - Root cause: Missing export in barrel file - Failing file: libs/billing/src/index.ts:10 - Error: TS2305 —