prompt-evaluation-runn…
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls.
Use when diagnosing agent session history, interrupted tool loops, missing tool results, timing bottlenecks, or subagent trace correlation.
$ npx -y skills add yeaight7/agent-powerups --skill agent-session-forensics --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-session-forensicsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when diagnosing agent session history, interrupted tool loops, missing tool results, timing bottlenecks, or subagent trace correlation.
name: agent-session-forensics description: Use when diagnosing agent session history, interrupted tool loops, missing tool results, timing bottlenecks, or subagent trace correlation.
1. **Inventory session files** — find metadata, current history, rotated previous history, and related subagent histories.
2. **Count and list last turns**:
jq 'length' history.json # total messages
jq '.[-10:] | .[] | {role, stop_reason}' history.json # last 10 turns
jq '.[] | select(.role=="assistant") | .tool_calls[].id' history.json # tool call IDs
jq '.[] | select(.role=="user") | .tool_results[]?.tool_call_id' history.json # results3. **Correlate tool call IDs** — every `tool_call` in an assistant turn must have a matching `tool_result` in the immediately following user turn. Find the first gap.
4. **Check timing for slow calls**:
jq '.[] | select(.timing) | {role, duration_ms: .timing.duration_ms}' history.json5. **Identify failure pattern** — see table below.
6. **Repair (if approved)** — write a backup first (`cp history.json history.json.bak`), then make the smallest possible fix at the last valid correlation boundary.
| Symptom | Likely cause | Repair | |---|---|---| | Tool call with no result turn | Session interrupted mid-tool | Truncate after last matched pair | | Two consecutive user turns | Duplicate message insertion | Remove the duplicate | | `tool_result` with no prior `tool_call` | Corrupted or manually edited history | Remove orphan result | | Empty `content` on assistant turn | Model returned no text + no tools | Usually safe to truncate | | Session loops without progress | Missing result causes re-prompt | Inject minimal synthetic result |
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
Repo: yeaight7/agent-powerups
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls.
Use when creating or reviewing red-team eval plugins, attack templates, grader rubrics, safety fixtures, or model-risk test metadata.
Use when designing, running, debugging, or hardening deterministic eval suites for agent skills, prompts, tool workflows, or MCP-backed cases.
Use when designing tool definitions for a new agent or subagent, an agent shows high retry rates, ambiguous tool invocations, or silent failures, or an…
Use when routing a prompt to a local provider CLI for a second opinion, review, or plan -- you are about to call a provider directly, need the response saved…
Use when starting work in an unfamiliar area of a codebase, spawning a subagent that needs targeted file context, a first search pass missed the relevant file,…