Debug Agent Failures logo

Debug Agent Failures

Community
bikeread
debug-agent-failures

Use proactively when an agent repeats a failure, loops, or degrades and needs a local root-cause check before redesign.

Overview

Publisherbikeread
Repositorypromethos
Skill namedebug-agent-failures
Stars
33
Forks
2
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bikeread on GitHub. Read the source before you install it.

Installation

Install the Debug Agent Failures AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bikeread/promethos/tree/main/skills/debug-agent-failures
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bikeread/promethos.git /tmp/promethos
mkdir -p .claude/skills
cp -r /tmp/promethos/skills/debug-agent-failures .claude/skills/debug-agent-failures
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Debug Agent Failures in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Debug Agent Failures on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Debug Agent Failures is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Goal

Move from a vague symptom to a defensible root-cause hypothesis and a small next fix.

Inputs

  • Failure symptom or transcript
  • Relevant logs, prompts, traces, or outputs
  • Current implementation context

Non-Goals

  • Jumping straight to fixes because they sound plausible
  • Rewriting large parts of the system without isolating the failure mode

Workflow

Trigger signals (for proactive recognition)

  • The same tool call fails more than once
  • The agent loops back to a step it already tried
  • The user says "又出错了" or "it broke again"
  • The user says "it keeps looping", "it got worse after the change", or "the same failure keeps coming back"
  • Output quality degrades after a change
  • A hallucination appears in tool-calling arguments

1. Reproduce and classify the symptom

State what went wrong, under what conditions it happens, and whether it looks like a planning, context, tool, permission, memory, or orchestration failure. Success criteria: The bug is framed as a reproducible failure class rather than a vague impression.

2. Collect the smallest decisive evidence

Inspect the transcript, prompts, tool calls, logs, state transitions, and input artifacts needed to narrow the search space without drowning in noise. If the current workspace does not actually contain the target system's code, logs, traces, config, or transcripts, stop and ask for the real evidence source before widening the search. Do not substitute broad searches across unrelated repositories for the missing local evidence. Success criteria: The likely causes are constrained by actual evidence.

3. Form competing root-cause hypotheses

List the smallest plausible explanations and note what evidence would confirm or disprove each one. Success criteria: Debugging has explicit hypotheses rather than a single unchallenged guess.

4. Test the leading hypothesis with the smallest intervention

Choose the least invasive change, probe, or experiment that can separate the best explanation from the rest. Success criteria: There is a clear next action tied to the strongest hypothesis.

5. Re-check the symptom after the intervention

Verify whether the failure changed, disappeared, or exposed a different layer of the problem. Success criteria: The debugging loop updates the theory based on fresh evidence instead of assuming success.

6. Decide the reusable follow-through

If the intervention confirms the root cause or fixes a real defect, decide whether the result must produce a regression case, an eval update, or a postmortem entry so the same failure mode is less likely to return silently. Success criteria: A durable follow-through action is recorded whenever the debugging outcome changes expected behavior or closes a real defect.

Output Contract

A debugging brief containing:

  • the symptom and reproduction conditions,
  • the evidence collected,
  • the leading and rejected hypotheses,
  • the chosen intervention,
  • the observed result after that intervention,
  • any required regression, eval, or postmortem follow-through.

Escalation

Pause when:

  • the symptom cannot be reproduced at all,
  • key evidence is unavailable,
  • multiple independent failures are overlapping,
  • the active workspace does not contain the system being debugged and the next move would be to search unrelated repositories instead of asking for the real repo, file path, log, or transcript,
  • proposed fixes would rewrite a large subsystem before a hypothesis is tested.

Common Failure Modes

  • Treating symptoms as causes
  • Fixing the most visible layer instead of the failing layer
  • Debugging from intuition alone
  • Replacing missing local evidence with broad cross-repo pattern hunting
  • Expanding scope before the first hypothesis is tested

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Debug Agent Failures AI skill do?

Use proactively when an agent repeats a failure, loops, or degrades and needs a local root-cause check before redesign.

Why use Debug Agent Failures on TypingMind?

Because you install it once and use it with any model. Debug Agent Failures is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Debug Agent Failures in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bikeread/promethos/tree/main/skills/debug-agent-failures. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Debug Agent Failures?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Debug Agent Failures?

As many as you like. As long as a model supports skills, you can use Debug Agent Failures with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Debug Agent Failures AI skill free?

Yes. It is published on GitHub by bikeread under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇