Logo: Autonomous Bug Fix

Autonomous Bug Fix

Communautéit
andreaswasita
autonomous-bug-fix

Reproduzéiert, diagnostizéiert, behieft a verifizéiert Bugs ouni Hëllef.

Add to TypingMind

Iwwersiicht

Editeurandreaswasita
Repositorycopilot-agents-dojo
Skill-Nummautonomous-bug-fix
Stären
54
Forks
15
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    andreaswasita huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Autonomous Bug Fix an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/autonomous-bug-fix
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/autonomous-bug-fix .claude/skills/autonomous-bug-fix
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Autonomous Bug Fix an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Autonomous Bug Fix automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Autonomous Bug Fix net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Autonomous Bug Fix Skill

Walks the agent through the full reproduce → diagnose → fix → verify cycle on its own, without asking the user for navigation help, log-reading instructions, or test commands. Does NOT cover net-new feature work — for that use plan-before-code and executing-plans.

When to Use

  • User reports a bug, regression, or unexpected behavior.
  • CI is red on a branch you own.
  • An error or warning appears in logs.
  • A previously working feature stopped working.
  • The user says "this is broken," "it doesn't work," or similar.

Prerequisites

  • Read access to the failing component (use glob / grep to locate it).
  • The powershell tool to run tests, git, and reproduction commands.
  • A clean working tree on a feature branch (use using-git-worktrees if needed).
  • verify-before-done skill loaded — you'll invoke it at the end.

How to Run

text
1. Reproduce  → locate the code, run the failing path, confirm with evidence.
2. Diagnose   → trace from symptom to root cause; check recent changes.
3. Fix        → minimal change at the root cause + a regression test.
4. Verify     → re-run reproduction + full suite via `verify-before-done`.

Quick Reference

PhaseActionTool
Find codeSearch by symbol or file patterngrep, glob
Read codeInspect the failing pathview
ReproduceRun failing command/testpowershell
DiagnoseRecent changes / blamepowershell → git log -20 --oneline, git blame <path>
EditMinimal, root-cause fixedit
Add testRegression testcreate or edit under tests/
VerifyRe-run reproduction + full suitepowershell, then verify-before-done

Procedure

Step 1: Reproduce

Find the relevant code yourself — grep for the symbol, glob for the path. Do not ask the user "which file is this in?"

Run the failing path via the powershell tool. If no failing test exists, write a minimal one that captures the bug. Confirm reproduction with concrete evidence (stack trace, exit code, log line).

If you can't reproduce:

  • Check for environment-specific behavior (OS, Node/Python version).
  • Look for race conditions or state-dependent paths.
  • Ask the user for clarification only as a last resort, and only with specific questions.

Step 2: Diagnose Root Cause

Read the error message and stack trace before doing anything else — they exist for a reason. Trace from the user-visible symptom back to the root cause:

bash
# via the `powershell` tool
git log -20 --oneline
git blame path/to/suspect.ts
git diff HEAD~5 -- path/to/suspect.ts

Stop at the root cause, not the first thing that looks suspicious. "Why did this break?" — not "what broke?"

Step 3: Fix at the Root

Edit with precision via the edit tool:

  • Change only what needs to change. Bigger diffs hide bigger bugs.
  • Fix the root cause, never the symptom. Swallowing an exception is not a fix.
  • Add a regression test that fails without the fix and passes with it.
  • Check whether the same root cause exists elsewhere (grep for the pattern). If yes, fix those too or log them in tasks/lessons.md for follow-up.

Step 4: Verify

Hand off to the verify-before-done skill:

  • Re-run the reproduction. The error must be gone.
  • Run the full test suite. No regressions.
  • Record evidence in tasks/todo.md under the task.

Step 5: Rollback If Verification Fails

If verification fails after your fix:

  1. Reset the working tree (git checkout -- . or git stash via powershell).
  2. Log the failed attempt in tasks/lessons.md with the root-cause analysis you had.
  3. Re-plan with a different approach via plan-before-code.
  4. Never push broken code hoping someone catches it later.

Pitfalls

  • DO NOT ask the user "which file is it in?" or "how do I run the tests?" Use grep/glob/view/powershell to discover it.
  • DO NOT apply a band-aid (catch-and-swallow, ignore the warning). Fix the root cause.
  • DO NOT fix the symptom. A login button that fails because of a missing provider is a provider bug, not a button bug.
  • DO NOT skip the regression test. Without one, the bug comes back in 3 months.
  • DO NOT push without verification. An unverified fix is often worse than no fix.
  • DO NOT abandon failed attempts silently. Log them in tasks/lessons.md.

Verification

  • Reproduction was confirmed with concrete evidence before any fix.
  • Root cause is identified in writing (in commit message or tasks/todo.md).
  • Regression test added that fails on main and passes on the branch.
  • verify-before-done checklist passed.
  • If similar patterns exist elsewhere, they are fixed or logged.

Heefeg gestallte Froen

Wat mécht de KI-Skill Autonomous Bug Fix?

Reproduzéiert, diagnostizéiert, behieft a verifizéiert Bugs ouni Hëllef.

Firwat Autonomous Bug Fix op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Autonomous Bug Fix besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Autonomous Bug Fix an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/autonomous-bug-fix an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Autonomous Bug Fix benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Autonomous Bug Fix benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Autonomous Bug Fix domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Autonomous Bug Fix gratis?

Jo. andreaswasita huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇