prompt-evaluation-runn…
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost…
Use when debugging complex runtime failures, distributed systems, or issues where a local debugger cannot be attached.
Claude Code
$ npx -y skills add yeaight7/agent-powerups --skill log-driven-diagnosis --agent claude-code
Codex
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a codex -y
Cursor
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a cursor -y
Gemini CLI
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a gemini-cli -y
GitHub Copilot
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a github-copilot -y
OpenCode
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a opencode -y
Windsurf
$ npx skills add yeaight7/agent-powerups --skill log-driven-diagnosis -a windsurf -y
name: log-driven-diagnosis description: Use when debugging complex runtime failures, distributed systems, or issues where a local debugger cannot be attached.
When you cannot step through code, logs are your only visibility. Be methodical about extracting signal from noise — never dump whole log files into context.
1. **Time-bound the search.** Never dump the whole log file — always `grep` for timestamps around the reported incident, or use `tail`:
tail -n 200 app.log # most recent context grep -n "2026-06-06T14:0" app.log # window around the incident awk '/14:02:00/,/14:05:00/' app.log # bounded slice between timestamps
2. **Identify the request ID.** If the system uses distributed tracing or request IDs, find the ID associated with the error, then search the log corpus for *only* that ID to trace the complete lifecycle of the failed request:
grep -n "ERROR" app.log | head -5 # find the failing entry and its ID grep -n "<request-id>" app.log # full lifecycle of that request # structured (JSON) logs: jq -c 'select(.request_id == "<request-id>")' app.log.json
3. **Look for preceding warnings.** The `ERROR` log is usually just the final crash. The actual root cause is often a `WARNING` or unexpected `INFO` log that occurred milliseconds earlier (e.g., a connection retry failing, or an empty array being returned):
grep -n -B 20 "<error-text>" app.log | grep -inE "warn|retry|timeout|empty"
4. **Add missing logs.** If the logs do not provide enough visibility, your first action must be to *add temporary logging* to the application, reproduce the bug, and gather the new signals. Do not guess blindly if the logs are insufficient.
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost…
Use when creating or reviewing red-team eval plugins, attack templates, grader rubrics, safety fixtures, or model-risk test…
Use when designing, running, debugging, or hardening deterministic eval suites for agent skills, prompts, tool workflows, or…
Use when designing tool definitions for a new agent or subagent, an agent shows high retry rates, ambiguous tool invocations, or…
Use when routing a prompt to a local provider CLI for a second opinion, review, or plan -- you are about to call a provider…
Use when starting work in an unfamiliar area of a codebase, spawning a subagent that needs targeted file context, a first search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.