yq-debug

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

A debugging guide for investigating incorrect behavior, failed tests, incidents, and confusing runtime problems. It focuses on reproducing the issue, collecting evidence, finding the underlying cause, and choosing a safe fix.

In plain words
What is it for?
Use it to narrow down triggers, compare expected and actual behavior, test possible causes, assess the affected area, and plan regression protection.
Why use it?
It helps avoid changing code based only on the visible error, which may be a symptom rather than the real cause.

Skill for Claude CodeCodex

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

Good fit Use it to narrow down triggers, compare expected and actual behavior, test possible causes, assess the affected area, and plan regression protection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockyflux/yq-workflow/yq-debug
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-debug
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-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-debug/github.svg)](https://agentmods.dev/skills/rockyflux/yq-workflow/yq-debug)
Your own site
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-debug"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-debug/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-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-debug"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 674 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.00038 $0.00674
Opus 5 $0.00019 $0.00337
Sonnet 5 $0.00008 $0.00135
Haiku 4.5 $0.00004 $0.00067

Measured 8d ago against content hash e663ccfa830e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yq-debug 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-debug/SKILL.md · 88 lines

What it actually says

YQ Debug

Overview

从“现象”走到“根因”和“修复方向”,强调复现、证据链、影响范围和结论可信度。

Core principle: 先找根因,再讨论修复。

When to Use

  • 用户要排查问题、定位 bug、解释异常行为
  • 测试失败、线上报错、状态不一致或任务执行异常
  • 现象存在,但根因不明确
  • 需要给出可信的下一步,而不是猜测式修复

Route Elsewhere

  • 主要是读懂代码结构:转 yq-code-explain
  • 已知根因,只差落地修复:转 yq-code-gen
  • 输入主要是日志集合:先转 yq-log-analysis

Process

  1. 明确现象、预期差异和触发条件。
  2. 缩小范围:输入、环境、模块、时间点和最近变更。
  3. 收集证据:日志、堆栈、状态、配置和复现结果。
  4. 建立并验证单一假设,区分确认项与高概率怀疑。
  5. 输出根因、影响范围、修复建议和防回归动作。

Output

# Debug Report
## Symptom
## Trigger Conditions
## Evidence
## Root Cause or Best Hypothesis
## Impact Scope
## Fix Recommendation
## Regression Prevention
## Recommended Next Step
  • 常与 yq-log-analysisyq-code-explain 配合
  • 下游通常接 yq-code-genyq-test-gen
  • 排障过程建议参考 superpowers:systematic-debugging
  • 已确认根因后,默认交给 yq-code-gen 落地修复
  • 如果需要用测试锁住复现路径和回归风险,接 yq-test-gen
  • 如果当前证据仍然以日志为主,先补 yq-log-analysis

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 · 88 lines · 38 tokens per session scan A e663ccfa830e

Subscribe to this mod's changes

yq-debug is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 674 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