yq-log-analysis

yq-log-analysis is a skill for Claude Code, Codex from rockyflux/yq-workflow. It costs 31 tokens per session (657 once invoked), scanned A, original, MIT.

A log analysis guide that turns application, system, or trace logs into an event timeline, important signals, suspicious patterns, and likely failure points. A trace ID or request ID is a label used to follow one operation across services.

In plain words
What is it for?
Use it to reconstruct requests or incidents, group repeated errors, find when a problem began, connect events across modules, and identify what to verify next.
Why use it?
It reduces the problem of scanning large amounts of noisy logs without reaching a useful conclusion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to reconstruct requests or incidents, group repeated errors, find when a problem began, connect events across modules, and identify what to verify next.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockyflux/yq-workflow/yq-log-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rockyflux/yq-workflow --skill yq-log-analysis
Clone the repo
git clone --depth 1 https://github.com/rockyflux/yq-workflow

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yq-log-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-log-analysis/github.svg)](https://agentmods.dev/skills/rockyflux/yq-workflow/yq-log-analysis)
Your own site
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-log-analysis"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-log-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yq-log-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-log-analysis"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-log-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00657
Opus 5.5 $0.00012 $0.00263
Sonnet 5.5 $0.00006 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 3mo ago against content hash 581c52dc4f9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yq-log-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/yq-skills/yq-log-analysis/SKILL.md · 86 lines

What it actually says

YQ Log Analysis

Overview

把原始日志转成可读的事件时间线、异常信号和排查线索,减少“看了很多日志但没有结论”的情况。

Core principle: 先提取信号和时间线,再推断根因。

When to Use

  • 用户给出大量日志,希望提炼异常点
  • 需要按时间线还原请求、任务或事故过程
  • 需要从 trace id、request id、错误堆栈里找线索
  • 你想先从日志证据收口,再进入 debug

Route Elsewhere

  • 主要是代码根因分析:转 yq-debug
  • 主要是性能基线和瓶颈:转 yq-performance-opt
  • 主要是安全异常和攻击迹象:转 yq-security-scan

Process

  1. 识别时间范围、环境、关键请求标识和上下文。
  2. 去噪并聚合同类错误、告警和状态变化。
  3. 还原关键时间线和跨模块链路。
  4. 提取异常模式、首次发生点和重复信号。
  5. 输出最值得验证的怀疑点和下一步动作。

Output

# Log Analysis
## Scope and Time Window
## Key Signals
## Timeline
## Suspicious Patterns
## Most Likely Failure Points
## Questions to Verify
## Recommended Next Step
  • 常作为 yq-debug 前置
  • 性能侧分析可继续接 yq-performance-opt
  • 涉及攻击或越权迹象时接 yq-security-scan
  • 默认交给 yq-debug,把时间线和异常信号转成根因假设验证
  • 如果日志已经明确指向资源瓶颈,改接 yq-performance-opt
  • 如果日志里出现越权、扫描或异常访问迹象,接 yq-security-scan

Common Mistakes

  • 只罗列报错,不做归并
  • 没有按时间和链路重建上下文
  • 把噪音日志误当关键证据
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 86 lines · 31 tokens per session scan A 581c52dc4f9b

Subscribe to this mod's changes

yq-log-analysis is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 657 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

yq-log-analysis compared with skills from other repositories

yq-log-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yq-log-analysisrockyflux/yq-workflowSkill21mo agoMITA31Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill343todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k3d agoApache-2.0A45Claude Code, Codex
loop-engineeringhuytieu/COG-second-brainSkill1.6kyesterdayMITA63Claude Code