AgentStack
SKILL verified MIT Self-run

Log Pattern Scan

skill-gertsylvest-meta-team-log-pattern-scan · by gertsylvest

Scan Claude Code JSONL session transcript files for behavioral patterns — loops, errors, expensive turns, trial-and-error signatures. Returns structured findings for the improvement-analyst agent.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-gertsylvest-meta-team-log-pattern-scan

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-gertsylvest-meta-team-log-pattern-scan)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Log Pattern Scan? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Log Pattern Scan

Scan one or more Claude Code JSONL session transcript files for behavioral inefficiency patterns.

Instructions

Arguments are in $ARGUMENTS:

  • First arg: path to a .jsonl file, or a project root path (scans all sessions for that project)
  • Second arg (optional): scan type — all (default), errors, loops, expensive, trialerror, summary

If no arguments are provided, ask the user before proceeding.

When given a project root, the scan recurses into subagent sidechains (/subagents/agent-*.jsonl, marked isSidechain: true) as well as the top-level session transcripts. This matters: the orchestrator/main transcript records only ~15% of tool activity — the bulk of tool calls, errors, and loops happen inside subagents. Scanning only the top level can undercount errors by an order of magnitude. Each finding is headed by its path relative to the project folder, so sidechain findings are attributable to the agent that produced them.

Run the scan

The scan script lives alongside this file. Run it directly:

bash "$(dirname "$0")/scan.sh"  

Scan types

| Type | What it detects | |---|---| | summary | Total lines, tool calls, errors, token totals per session | | errors | Tool calls that returned is_error: true | | loops | Same tool called 3+ times consecutively, or same tool+input repeated 3+ times across the session | | expensive | Turns with >2000 output tokens (EXPENSIVE-OUTPUT) or >10000 new cache tokens (EXPENSIVE-CONTEXT) | | trialerror | 3+ edits to the same file (CHURN), 3+ identical bash commands (REPEAT-CMD), sessions >200 messages (LONG SESSION) | | all | All of the above |

Output prefixes

Each finding is prefixed for easy parsing:

| Prefix | Meaning | |---|---| | ERROR | Failed tool call | | LOOP | Consecutive same-tool repetition | | REPEAT | Same tool+input repeated across session | | EXPENSIVE-OUTPUT | High output token turn | | EXPENSIVE-CONTEXT | Large new context loaded in one turn | | CHURN | Repeated edits to same file | | REPEAT-CMD | Repeated identical bash command | | LONG SESSION | Session exceeds 200 messages | | OK | No issues found for that scan type |

Return to caller

Return the full script output. The improvement-analyst agent will interpret the findings and write suggestions to the project's self-improvement log.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.