Loading...
Loading...
Forensic diagnostic report for LOCI — collects environment state, runs health checks, and writes a timestamped report when analysis fails or doesn't trigger. Invoke when: "bug report", "LOCI isn't working", "exec-trace didn't run", "skill didn't trigger", "MCP not connecting", "results are wrong", "results missing", "generate diagnostic", "something is broken", "debug LOCI", or any LOCI failure the user wants investigated.
npx skill4agent add auroralabs-loci/loci-claude bug-report.mdasm-analyze command: <path><asm-analyze-cmd>venv python: <path><venv-python>plugin dir: <path><plugin-dir>plugin dir:CLAUDE_PLUGIN_ROOT<user-description>claude --version 2>/dev/null || echo "unknown"<plugin-dir>/../../../.claude-plugin/marketplace.json.claude-plugin/marketplace.jsonplugins[0].version<plugin-dir>/../../marketplace.jsonuname -auname -s | tr '[:upper:]' '[:lower:]'<plugin-dir>/state/project-context.json<plugin-dir>/state/loci-paths.jsoncat <plugin-dir>/.setup-complete 2>/dev/null || echo "MISSING"git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown"git log --oneline -3 2>/dev/null || echo "no git history"<plugin-dir>/hooks/hooks.json| # | Check | How to test | PASS when |
|---|---|---|---|
| 1 | MCP tools visible | Check if | Tool is listed |
| 2 | Session context exists | | File exists with key |
| 3 | Compiler detected | | Has a value |
| 4 | Architecture detected | | Has a value |
| 5 | LOCI target supported | | Value in set |
| 6 | Python venv working | | Exit code 0 |
| 7 | asm-analyze installed | | Exit code 0 |
| 8 | Setup complete | | File exists |
| 9 | Build artifacts exist | Glob for | At least one found |
| 10 | c++filt available | Read | Exit code 0 |
| 11 | session-init executable | | Exit code 0 |
| 12 | hooks.json valid | | Valid JSON |
<venv-python>loci-paths.json<venv-python> <plugin-dir>/lib/loci_stats.py summary
<venv-python> <plugin-dir>/lib/loci_stats.py global-summarywhen_to_useloci-post-editloci-preflight/planAvailable:loci:loci-post-editloci:loci-preflightwhich <compiler>extract-assemblyextract-cfgtiming_csv_chunkstiming_architectureexecution_time_ns.o.prevdiff-elfshooks → setup → venv → asm-analyze → project-context → MCP → compilation → analysisreport-<YYYY-MM-DD>-<os-short>.md# LOCI Diagnostic Report
Generated: <YYYY-MM-DD HH:MM:SS UTC>
## Versions
| Component | Version |
|-----------|---------|
| Claude Code | <claude --version output> |
| Claude model | <model ID, e.g. claude-opus-4-6> |
| LOCI plugin | <plugin version> |
| OS | <uname -a output> |
## User Description
<user-description>
## Environment
| Field | Value |
|-------|-------|
| Project root | <project_root or cwd> |
| Git branch | <branch> |
| Compiler | <compiler or "unknown"> |
| Build system | <build_system or "unknown"> |
| Architecture | <architecture or "unknown"> |
| LOCI target | <loci_target or "unknown"> |
| MCP status | <connected / not authorized> |
| asm-analyze | <command path or "unavailable"> |
| venv python | <path or "unavailable"> |
## Diagnostics Checklist
| # | Check | Status | Detail |
|---|-------|--------|--------|
| 1 | MCP tools visible | <PASS/FAIL> | <detail> |
| 2 | Session context exists | <PASS/FAIL> | <detail> |
| 3 | Compiler detected | <PASS/FAIL> | <detail> |
| 4 | Architecture detected | <PASS/FAIL> | <detail> |
| 5 | LOCI target supported | <PASS/FAIL> | <detail> |
| 6 | Python venv working | <PASS/FAIL> | <detail> |
| 7 | asm-analyze installed | <PASS/FAIL> | <detail> |
| 8 | Setup complete | <PASS/FAIL> | <detail> |
| 9 | Build artifacts exist | <PASS/FAIL> | <detail> |
| 10 | c++filt available | <PASS/FAIL> | <detail> |
| 11 | session-init executable | <PASS/FAIL> | <detail> |
| 12 | hooks.json valid | <PASS/FAIL> | <detail> |
**Result: <N>/12 checks passed.**
## Reasoning
### What the user was trying to do
<describe the intent and expected behavior>
### What should have happened
<which skill should have triggered, with trigger conditions from when_to_use>
### What actually happened
<what Claude did instead — answered directly, wrong skill, error, silence>
### Why it failed
<root cause reasoning chain, referencing specific checklist failures>
### Skill trigger analysis
<for each relevant skill, did the trigger conditions match?>
## Diagnosis
**Root cause:** <one-sentence root cause>
**Contributing factors:** <any additional FAIL checks>
**Suggested fix:**
<numbered actionable steps to resolve>
## Stats
### Branch stats
<loci_stats.py summary output, or "no stats recorded">
### Global stats
<loci_stats.py global-summary output, or "no stats recorded">
## Raw Data
<details>
<summary>project-context.json</summary>
```json
<full contents or "MISSING"><full contents or "MISSING"><full contents or "MISSING">## LOCI Diagnostic Summary
<N>/12 checks passed.
**Root cause:** <one-sentence diagnosis>
**Suggested fix:**
<numbered steps>
Share this file when reporting issues, or open it in a new Claude Code
session for further investigation.
─── LOCI · bug-report ─────────────────
Report: <absolute-path-to-report-file>
────────────────────────────────────────