ahyatt/ekg/ekg-agent-debug-analyzer

Claude Code and agent skill by ahyatt/ekg

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze EKG agent debug JSON exports produced by `ekg-agent-export-debug-json`; use when investigating slow, looping, failed, or inefficient ekg-agent sessions and when deciding whether to improve prompts, tool descriptions, tool schemas, result truncation, guardrails, or add/remove ekg-agent tools.

Install

npx vskill@latest install ahyatt/ekg/ekg-agent-debug-analyzer

SKILL.md

EKG Agent Debug Analyzer

Use this skill to turn an ekg-agent-export-debug-json file into concrete agent improvements. The goal is not just to summarize the session; identify where the agent wasted turns, failed, chose the wrong tool, received bad tool output, or lacked the right tool affordance, then make the smallest effective change.

Workflow

  1. Run the bundled analyzer:

``sh python3 path/to/ekg-agent-debug-analyzer/scripts/analyze_debug_json.py /tmp/ekg-agent-debug-....json ``

  1. Read the generated findings, then inspect the JSON directly for the cited

interaction indexes, tool names, log markers, and result sizes.

  1. Classify each issue:
  • Prompt issue: the instructions or completion blockers nudge the agent into

the wrong behavior.

  • Tool description/schema issue: the correct tool exists, but the model does

not know when or how to call it.

  • Tool output issue: a tool returns too much text, too little structure, or

errors that are hard to recover from.

  • Missing tool issue: the agent repeatedly tries to compose an operation that

should be one safe, explicit tool.

  • Bad tool issue: a tool is consistently unused, dangerous for the workflow,

or attracts wrong calls.

  1. Prefer changes in this order:
  • Tighten ekg-agent-instructions-intro or completion blocker messages.
  • Improve existing make-llm-tool descriptions and argument metadata.
  • Add result limits, paging, summaries, or structured return data to noisy

tools.

  • Add a new tool only when the transcript shows repeated failed composition.
  • Remove or hide tools only when evidence shows they hurt the task class.
  1. When editing EKG itself, update focused tests in ekg-agent-test.el. Run:

``sh eldev test ekg-agent-test.el eldev compile ``

JSON Fields

Important fields in the export:

  • prompt.interactions: the conversation in prompt order. Each item has

role, content_type, content, tool_uses, tool_results, and multi_turn_plist.

  • prompt.tools: the tool surface available to the model, including names,

descriptions, args, and async flags.

  • tool_call_history: successful tools recorded by EKG in chronological order.

Errors are usually visible in prompt.interactions[*].tool_results and log.text.

  • session.completion_requirements: inferred requirements that can block an

attempted end tool.

  • configuration: relevant limits and retry/status settings.
  • log.text: user-visible log lines, including timeout, cancellation, LLM

error, and completion-blocked markers.

Report Format

When reporting back, lead with findings ordered by severity. For each finding, include the evidence path, such as prompt.interactions[7].tool_results[0], the tool name, and the observed consequence. Then list proposed code or tool changes and the tests that cover them.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ahyatt/ekg/ekg-agent-debug-analyzer/badge)](https://verified-skill.com/skills/ahyatt/ekg/ekg-agent-debug-analyzer)

Something wrong with this skill or its page? Tell us.