gza-log-insights

审查 · 59
已收录

Analyze gza run logs to find recurring anti-patterns, wasted effort, and suggest AGENTS.md or workflow improvements

Verified installs0
Stars11
版本1.0.0
质量57/100 · 有潜力
信任59/100 · Do not auto-install
审计73/100 · 需审查

供给资产档案

编程与开发 Agent

代码审查、仓库分析、测试、CI、GitHub、DevOps 与开发工作流 Skill。

浏览赛道

场景

GitHub automation

I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.

适配 Agent

Claude Code + CLI + Codex

适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。

安装

就绪

npx skills add mhawthorne/gza --skill gza-log-insights

维护状态

新鲜

距上次推送 1 天

风险

需审查

Permission surface may require sandboxing

GitHub 质量

11

57/100 质量 · 67/100 信任

覆盖标签

编程GitHub automation自动化agent-skill

审查说明

Permission surface may require sandboxing · No critical security, quality, usefulness, or compliance issues found.

Agent 采用评分卡

一眼查看信任、审计与安装准备度

这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。

质量

有潜力
57

有用的候选项,但采用前应与替代方案比较。

信任

Do not auto-install
59

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

审计

需审查
73

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

OpenAgentSkill 信任评分 v5

安装前需人工审查

Choose a stronger alternative or inspect the source manually before any install attempt.

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

11 个 GitHub Stars

仓库活跃度

11 个 Star,1 个 Fork

维护状态

距上次推送 1 天

许可证

MIT

安装

npx skills add mhawthorne/gza --skill gza-log-insights

安装安全性

标准软件包或运行时安装路径

权限范围

shell or command execution, filesystem or document access

Agent 结果

暂未有 Agent 结果数据

文档

README/SKILL.md 上下文充分

风险摘要

生产前审查

  • No critical security, quality, usefulness, or compliance issues found.
  • Low GitHub adoption signal
  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access

安装准备度

安装路径可用

  • 安装路径可用
  • 仓库证据可用
  • 已声明许可证
  • 暂无 Agent 验证结果证据

Agent 可读元数据

这个 Skill 的机器可读决策数据。

使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。

打开 JSON

适用任务

  • Browser automation 工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects
  • Navigate pages

适用 Agent

CodexClaude CodeCursorOpenAgentSkill CLICLI

安装决策

命令
npx skills add mhawthorne/gza --skill gza-log-insights
策略
审查
人工审查

信任与风险

信任
59/100
审计
73/100
风险级别
需审查

结果闭环

端点
/api/agent/outcome
事件 ID
resolve
结果
5

安装命令

npx skills add mhawthorne/gza --skill gza-log-insights

不适用场景

  • 需要厂商支持 SLA 的团队
  • production agents without a repository review
  • Low GitHub adoption signal
  • No critical security, quality, usefulness, or compliance issues found.
  • 高风险权限提示:Shell 或命令执行

Agent 安全 v2

41/100 · 避免自动安装

实验性审查

Sparse or mixed signals. Useful for discovery, but not for autonomous installation.

Test manually in an isolated workspace and compare against safer alternatives.

通过 API 解析

Shell 或命令执行

Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。

网络访问

Skill 可能访问远程页面、API、仓库或外部服务。

文件系统访问

Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。

数据库访问

Skill 可能检查 Schema、查询数据库或处理持久化存储。

  • 高风险权限提示:Shell 或命令执行
  • Permission surface may require sandboxing

安装目标

在你的 Agent 工作流中安装此 Skill

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install mhawthorne-gza-log-insights

Agent 解析计划

让 Agent 在安装前验证匹配度。

Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。

打开文本计划

Agent 应检查

  • 从 Resolve API 检查任务匹配与替代方案。
  • 检查审计评分、信任评分和安全策略警告。
  • 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。

复制提示词

Task: Use gza-log-insights in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20gza-log-insights%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/mhawthorne-gza-log-insights/install
Install command: npx skills add mhawthorne/gza --skill gza-log-insights
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent 交接

把安装路径交给 Agent,而不是再给一个目录页。

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

打开安装 API

Agent 提示词

Use gza-log-insights for this task. Review https://www.openagentskill.com/api/skills/mhawthorne-gza-log-insights/install, then install with: npx skills add mhawthorne/gza --skill gza-log-insights

Registry 元数据

用于自动选择 Skill 的 Agent 可读档案。

本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。

打开 Manifest

适配 Agent

57/100

Browser automation

平台

Claude Code

审计报告

需审查 · 73/100

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

查看审计报告查看评估报告

Agent 决策面板

Needs validation for Browser automation

在将它加入 Agent 工作流前先人工审查仓库。

57
就绪度
审查
阶段

栈中角色

需要验证

主要匹配

Browser automation

信任标签

需要人工审查

安装路径

命令已就绪

适用场景

  • Browser automation 工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects

证据

  • 仓库近期活跃
  • 已提供安装命令或 GitHub 仓库
  • 57/100 质量档案
  • 2 个 OpenAgentSkill 交互事件

先审查

  • Low GitHub adoption signal
  • No critical security, quality, usefulness, or compliance issues found.

实施路径

  1. 1在沙盒 Agent 中安装它,并端到端完成一次Browser automation任务。
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

信任档案

Do not auto-install

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

59
OpenAgentSkill 信任评分

GitHub 采用度

修复

11 个 GitHub Stars

Star/Fork 活跃度

修复

11 个 Star,1 个 Fork; 当前元数据中没有议题活跃度信息

近期维护

通过

距上次推送 1 天

许可证清晰度

通过

MIT

积极信号

  • AI 审查已通过
  • 安装路径可用
  • 仓库证据可用
  • 近期维护的仓库
  • 安装命令未发现明显高风险模式
  • 结果闭环已就绪,但需要首次真实 Agent 运行

安装前审查

  • No critical security, quality, usefulness, or compliance issues found.
  • Low GitHub adoption signal
  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access
  • GitHub adoption: 11 GitHub stars
  • Stars/forks activity: 11 stars, 1 forks; issue activity unavailable in current metadata
  • Permission surface: shell or command execution, filesystem or document access
  • 暂未有真实 Agent 结果报告
  • 无人值守安装前需要人工审查

建议操作

Choose a stronger alternative or inspect the source manually before any install attempt.

质量档案

有潜力 适用于 Agent 工作流的候选

有用的候选项,但采用前应与替代方案比较。

57
GitHub Stars
11
新鲜度
1 天前
安装就绪
许可证
MIT
安装前审查: Low GitHub adoption signal · No critical security, quality, usefulness, or compliance issues found.

工作流匹配

在这些场景使用此 Skill

工作流匹配

加入完整工作流

替代方案短名单

安装前对比

可能适合该任务的相近 Skill。

对比全部

概览

--- name: gza-log-insights description: Analyze gza run logs to find recurring anti-patterns, wasted effort, and suggest AGENTS.md or workflow improvements allowed-tools: Read, Bash(uv run python -c:*), Bash(wc:*), Bash(ls:*), Bash(head:*), Bash(tail:*) version: 1.0.0 public: false ---

# 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_distribution = Counter() # overall tool usage skill_errors = Counter() # failed skill executions import_errors = Counter() # Python import errors file_too_large = 0 # Read tool file-too-large errors no_module_pytest = 0 # 'No module named pytest' sqlite_not_found = 0 # sqlite3 not available worktree_git_errors = 0 # git fails in cleaned-up worktrees test_runs_per_log = [] # (filename, count) for test-heavy logs result_subtypes = Counter() # success vs error_max_turns etc costs = [] # per-log costs high_cost_logs = [] # logs with cost info repeated_patterns = Counter() # any command run 5+ times in a single log

BARE_PREFIXES = ['gza ', 'pytest', 'mypy ', 'python ']

for logfile in log_files: tool_uses_in_log = {} # tool_use_id -> command test_runs = 0 bash_cmds_in_log = Counter() fname = logfile.name

with open(logfile) as f: for line in f: line = line.strip() if not line: continue try: entry = json.loads(line) except (json.JSONDecodeError, ValueError): continue

etype = entry.get('type', '')

# --- System init: skip ---

# --- Assistant messages: extract tool calls --- if etype == 'assistant': msg = entry.get('message', {}) for c in msg.get('content', []): if c.get('type') == 'tool_use': tool = c.get('name', '') inp = c.get('input', {}) tid = c.get('id', '') tool_distribution[tool] += 1

if tool == 'Bash': cmd = inp.get('command', '').strip() tool_uses_in_log[tid] = cmd bash_cmds_in_log[cmd[:80]] += 1

# Check bare commands for prefix in BARE_PREFIXES: if cmd.startswith(prefix) and not cmd.startswith('uv run'): bare_commands[cmd[:100]] += 1

# Count test/lint runs if 'pytest' in cmd or 'mypy' in cmd: test_runs += 1

# --- User messages: extract tool results --- if etype == 'user': msg = entry.get('message', {}) for c in msg.get('content', []): if c.get('type') != 'tool_result': continue tid = c.get('tool_use_id', '') is_err = c.get('is_error', False) content = str(c.get('content', ''))

# Skill errors — 'Execute skill: X' with is_error=True is NORMAL # in headless mode (skill loaded successfully). Only count as # error if the content indicates a real failure (e.g. 'Unknown skill'). if is_err and 'skill' in content.lower(): if 'Execute skill' in content: pass # Normal headless behavior, not an error elif 'Unknown skill' in content: skill_name = content.split('Unknown skill:')[-1].strip()[:40] if 'Unknown skill:' in content else content[:60] skill_errors[skill_name] += 1 else: skill_errors[content[:60]] += 1

# File too large if 'exceeds maximum allowed' in content: file_too_large += 1

# Specific error categories if 'not a git repository' in content: worktree_git_errors += 1 if 'sqlite3: command not found' in content: sqlite_not_found += 1 if 'No module named pytest' in content: no_module_pytest += 1 if 'ImportError' in content: idx = content.find('ImportError') import_errors[content[idx:idx+80]] += 1

# Failed bash commands if tid in tool_uses_in_log: cmd = tool_uses_in_log[tid] exit_match = re.search(r'Exit code (\d+)', content[:30]) if exit_match and exit_match.group(1) != '0': short = cmd[:60] failed_bash[short] += 1 if cmd.strip().startswith('git'): git_errors[short] += 1

# --- Result entry --- if etype == 'result': result_subtypes[entry.get('subtype', '?')] += 1 cost = entry.get('total_cost_usd', 0) if cost: costs.append(cost) high_cost_logs.append((fname, cost, entry.get('num_turns', 0)))

if test_runs > 0: test_runs_per_log.append((fname, test_runs))

# Repeated commands in single log for cmd, count in bash_cmds_in_log.items(): if count >= 5: repeated_patterns[cmd] += 1

# ========== OUTPUT ========== print('=' * 70) print('GZA LOG INSIGHTS REPORT') print(f'Analyzed {len(log_files)} transcript logs and {len(ops_log_files)} ops logs') print('=' * 70)

# Section 1: Outcome summary print('\n## Task Outcomes') for st, count in result_subtypes.most_common(): print(f' {st}: {count}') if costs: print(f' Total spend: \${sum(costs):.2f} across {len(costs)} tasks') print(f' Average cost: \${sum(costs)/len(costs):.2f}/task')

# Section 2: Bare commands if bare_commands: print(f'\n## Bare Commands (missing uv run) — {sum(bare_commands.values())} total') print('These commands were invoked without \"uv run\" prefix, which may fail in') print('environments without the package installed globally.') for cmd, count in bare_commands.most_common(15): print(f' {count}x: {cmd}')

# Section 3: Git errors if worktree_git_errors or git_errors: print(f'\n## Git Errors — {worktree_git_errors} "not a git repository" + {sum(git_errors.values())} failed git commands') print('Includes stale worktrees, missing repos, and other git failures.') for cmd, count in git_errors.most_common(10): print(f' {count}x: {cmd}')

# Section 4: Missing tools/modules missing = [] if no_module_pytest: missing.append(f'\"No module named pytest\": {no_module_pytest} occurrences') if sqlite_not_found: missing.append(f'\"sqlite3: command not found\": {sqlite_not_found} occurrences') if file_too_large: missing.append(f'Read tool file-too-large errors: {file_too_large} occurrences') if import_errors: for err, count in import_errors.most_common(5): missing.append(f'{err}: {count}x') if missing: print(f'\n## Missing Dependencies / Environment Issues') for m in missing: print(f' - {m}')

# Section 5: Skill resolution errors (not counting normal 'Execute skill' responses) if skill_errors: print(f'\n## Skill Resolution Errors — {sum(skill_errors.values())} total') print('Note: \"Execute skill: X\" with is_error=True is normal in headless mode.') print('Only \"Unknown skill\" and other genuine failures are counted here.') for skill, count in skill_errors.most_common(): print(f' {count}x: {skill}')

# Section 6: Test-heavy logs (potential loops) heavy = [(f, c) for f, c in test_runs_per_log if c >= 8] if heavy: print(f'\n## Test-Heavy Runs (8+ test/lint invocations — possible loops)') for fname, count in sorted(heavy, key=lambda x: -x[1])[:10]: print(f' {count} runs: {fname[:70]}')

# Section 7: Repeated commands within single logs if repeated_patterns: print(f'\n## Repeated Commands (same command 5+ times in one session)') for cmd, num_logs in repeated_patterns.most_common(10): print(f' in {num_logs} log(s): {cmd}')

# Section 8: Failed bash commands if failed_bash: print(f'\n## Most Common Bash Failures — {sum(failed_bash.values())} total') for cmd, count in failed_bash.most_common(15): print(f' {count}x: {cmd}')

# Section 9: Cost outliers if high_cost_logs: expensive = sorted(high_cost_logs, key=lambda x: -x[1])[:5] print(f'\n## Most Expensive Runs') for fname, cost, turns in expensive: print(f' \${cost:.2f} ({turns} turns): {fname[:60]}')

# Section 10: Tool distribution print(f'\n## Tool Usage Distribution') for tool, count in tool_distribution.most_common(): print(f' {tool}: {count}')

print() " ```

### Step 3: Read AGENTS.md for current guidance

Read the project's AGENTS.md to understand what instructions agents already have. This helps identify gaps — patterns in the logs that aren't addressed by existing documentation.

### Step 4: Synthesize recommendations

Based on the analysis, produce actionable recommendations in these categories:

#### A. AGENTS.md Updates For each anti-pattern found in logs, suggest a specific line to add to AGENTS.md that would prevent the issue. Examples:

- If bare `pytest`/`mypy`/`gza` commands are common: > Add to AGENTS.md: "Always use `uv run pytest`, `uv run mypy`, `uv run gza` — never bare commands. The project uses uv for dependency management."

- If git worktree errors are frequent: > Add to AGENTS.md: "When running in a worktree, verify git works before running git commands. If the worktree's .git file is stale, do not attempt git init or repair — report the issue instead."

- If `python -m pytest` is used instead of `uv run pytest`: > Add to AGENTS.md: "Use `uv run pytest` (not `python -m pytest` or bare `pytest`). The uv tool manages the virtual environment."

- If sqlite3 is used directly: > Add to AGENTS.md: "Do not use the `sqlite3` CLI — it may not be installed. Use `uv run python -c 'from gza.db import ...'` to query the database."

- If the Read tool hits file-too-large errors:

技术详情

版本
1.0.0
许可证
MIT
最近更新
2026年8月21日
发布时间
2026年8月21日

决策摘要

需要验证

57
就绪
审查
阶段

仓库近期活跃

审计

安装审查

安装与采用审查

73
需审查
安全性
74/100
维护状态
100/100
安装
92/100
打开完整审计查看评估报告

Agent 验证证据

Agent 验证证据

来自解析、审查、安装和一次小范围运行后的结果报告。

0
已验证
Needs first agent run自动安装: 先审查最近: 未知
成功率
近期失败
结果
0
输出质量
失败
0
不相关
0
安装次数
0
风险拦截
0
需要配置
0
生产环境
0

暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。

安装

加入 Agent 工作流

免费且开源. 在生产 Agent 中安装前请先审查报告。

增长闭环

分享工具包

X

为 gza-log-insights 准备的场景化草稿,可手动发布到 X。

策展说明
gza-log-insights: Analyze gza run logs to find recurring anti-patterns, wasted effort, and suggest AGENTS.md or...

11 stars

https://www.openagentskill.com/skills/mhawthorne-gza-log-insights?ref=x
打开 X 草稿
可选:带安装命令的回复
Listing + install path for gza-log-insights:
https://www.openagentskill.com/skills/mhawthorne-gza-log-insights?ref=x

Install: npx skills add mhawthorne/gza --skill gza-log-insights
打开回复草稿

收录来源

Registry 收录

可认领

此列表来自公开来源,维护者认领获批前不会标记为官方。

创作者
mhawthorne
收录方
OpenAgentSkill 社区索引

归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。

认领此 Skill

所有者认领

认领此 Skill 页面

这条 Registry 收录 列表归属于 mhawthorne,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。

创作者外链工具包

将证据徽章加入你的 README

在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/mhawthorne-gza-log-insights?metric=listed&label=Listed)](https://www.openagentskill.com/skills/mhawthorne-gza-log-insights)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/mhawthorne-gza-log-insights?metric=trust&label=Trust)](https://www.openagentskill.com/skills/mhawthorne-gza-log-insights)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/mhawthorne-gza-log-insights?metric=audit&label=Audit)](https://www.openagentskill.com/skills/mhawthorne-gza-log-insights/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/mhawthorne-gza-log-insights?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/mhawthorne-gza-log-insights)

作者

M

mhawthorne

@mhawthorne

平台适配

健康信号

GitHub Stars
11
质量评分
31/100
最近 GitHub 推送
2026年8月21日
框架提示
未知
OpenAgentSkill 浏览量
2
复制安装命令
0
跳转点击
0

社区信号

告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。

信任与安全

Do not auto-install

59
  • GitHub 采用度11 个 GitHub Stars修复
  • Star/Fork 活跃度11 个 Star,1 个 Fork; 当前元数据中没有议题活跃度信息修复
  • 近期维护距上次推送 1 天通过
  • 许可证清晰度MIT通过
  • README/SKILL.md 完整度元数据包含足够的用法与工作流上下文通过
  • 依赖与运行时风险command execution surface, database surface信息