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 $0.00015 $0.00329
Sonnet 5 $0.00006 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 8d ago against content hash 581c52dc4f9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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. 8d 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 yesterday), licensed MIT. It adds 31 tokens to every session and 657 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens