l1vein/nanobot-auto/log-miner

Claude Code and agent skill by l1vein/nanobot-auto

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze log files in a target directory to detect errors, anomalies, and improvement opportunities. Discovers log format automatically. Always produces at least one issue.

Install

npx vskill@latest install l1vein/nanobot-auto/log-miner

SKILL.md

The same SKILL.md was published earlier as l1vein/nanobot-auto/log-miner.

Log Miner

Analyze log files to detect problems and improvement opportunities. You must always produce at least one issue per run — either a bug report, an enhancement proposal, or a research task.

Target directory: ~/.nanobot/sessions

Governed by [CONSTITUTION.md](../../CONSTITUTION.md) — Articles 5, 7, 8.

Philosophy

You are not just an error scanner. You are an intelligence analyst. Your job is to find opportunities for improvement from operational data. If you find nothing wrong, that itself is a signal — either things are genuinely perfect (unlikely), or your analysis methods are too shallow.

Step 1: Gather data

First, run the log digest script to get a compact summary (avoids reading raw logs and blowing up context):

bash
bash nanobot/skills/log-miner/scripts/log-digest.sh 24

This gives you: file count, deduplicated errors, session activity, and tool usage stats — all in ~50 lines.

Only if the digest reveals something interesting, read specific raw log lines for context:

bash
head -50 ~/.nanobot/sessions/<specific_file>.jsonl

Never read entire raw log files. Use targeted reads.

Step 1.5: Explore log format

Before analysis, understand the format of the logs you're dealing with:

bash
head -3 ~/.nanobot/sessions/<any_recent_file>

Determine: Is it JSON/JSONL? Plain text? CSV? What fields exist? What does each line represent?

Adapt your analysis strategy to the discovered format. Don't assume — verify.

Step 2: Multi-layer analysis

Analyze logs at three levels:

Level A — Errors (surface)

Scan for explicit failures: error, failed, timeout, traceback, exception, panic.

Level B — Behavioral patterns (deeper)

Look for signals that don't appear as errors but indicate problems:

  • Abandoned conversations: user started a task but never completed it
  • Repeated attempts: user asked the same thing multiple times (bot didn't solve it)
  • Frustration signals: user said "never mind", "forget it", "I'll do it myself"
  • Long response times: conversations where the bot took unusually long
  • Tool failures: tools that were called but produced unhelpful results
  • Missing capabilities: user asked for something the bot couldn't do
Level C — Improvement opportunities (deepest)

Even if everything works fine, look for:

  • Code quality: are there modules that lack tests, documentation, or type hints?
  • Performance: are there operations that could be optimized?
  • Security: are there potential security concerns in how tools operate?
  • Skill gaps: what skills could be added to make the bot more useful?

Step 3: Check for duplicates

bash
gh issue list --repo l1veIn/nanobot-auto --label auto-report --state open --json number,title --jq '.[].title'

Skip any issue that already exists.

Step 4: Create issues

Create at least one issue per run. Use the appropriate label:

For bugs (Level A findings):
bash
gh issue create --repo l1veIn/nanobot-auto \
--title "[bug] <description>" \
--body "<analysis>" \
--label "auto-report"
For enhancements (Level B/C findings):
bash
gh issue create --repo l1veIn/nanobot-auto \
--title "[enhance] <description>" \
--body "<analysis and proposed approach>" \
--label "auto-report"

Step 5: Self-reflection

If after all analysis you found nothing actionable from the logs, you MUST create a research task — not a code change request, but an investigation into why the analysis came up empty:

bash
gh issue create --repo l1veIn/nanobot-auto \
--title "[research] Investigate: why did log-miner find nothing on <date>?" \
--body "## Context
log-miner ran on <date> and was unable to extract useful insights.
## What was analyzed
<summary of log files examined, number of lines, sessions covered>
## Hypotheses to investigate
<list possible reasons, e.g.>
- Logs are too sparse — bot isn't being used enough to generate useful data
- Analysis is too shallow — only surface-level keyword matching, missing behavioral patterns
- Log format lacks useful signals — JSONL structure doesn't capture what we need
- Everything genuinely works fine — should we look at enhancement opportunities instead?
## Suggested investigation approach
<concrete next steps: read the JSONL schema, compare with what other log analysis tools look for, interview the log structure to find hidden signals>" \
--label "auto-report"

The research task lets auto-dev investigate first, then decide whether code changes are needed — rather than blindly modifying log-miner without understanding the root cause.

This ensures the system always has work to do and always learns.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/l1vein/nanobot-auto/log-miner/badge)](https://verified-skill.com/skills/l1vein/nanobot-auto/log-miner)

Something wrong with this skill or its page? Tell us.