Логотип Autoresearch:Fix

Autoresearch:Fix

Спільнота
wjgoarxiv
autoresearch:fix

Iterative error-crusher loop that auto-stops at 0 errors. Cascade-aware: fixes dependency errors before their dependents. Refuses anti-patterns that hide errors instead of fixing them. TRIGGER when: user has errors or failures to fix iteratively; user asks to "fix all errors"; user has a failing test suite; user has compilation errors; user has linter errors; user wants systematic error elimination; user invokes /autoresearch:fix. DO NOT TRIGGER when: user wants a one-shot fix for a single obvious bug; user wants debugging guidance only; user wants code review without fixing.

Огляд

Видавецьwjgoarxiv
Репозиторійautoresearch-skill
Назва навичкиautoresearch:fix
Зірки
41
Форки
5
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: wjgoarxiv. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Autoresearch:Fix у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/wjgoarxiv/autoresearch-skill/tree/main/skills/fix
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wjgoarxiv/autoresearch-skill.git /tmp/autoresearch-skill
mkdir -p .claude/skills
cp -r /tmp/autoresearch-skill/skills/fix .claude/skills/wjgoarxiv-autoresearch-fix
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Autoresearch:Fix в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Autoresearch:Fix, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Autoresearch:Fix не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

autoresearch:fix

Iterative error-crusher loop. Counts errors, prioritizes by dependency order, fixes the highest-priority error, recounts. Stops automatically at 0 errors. Refuses to suppress, hide, or work around errors.

Autonomy Directive

You are an autonomous error-fixing agent. Once the loop begins:

  1. NEVER STOP to ask permission between iterations.
  2. NEVER ASK "should I continue?" while errors remain.
  3. NEVER DECLARE DONE until the error count is confirmed to be 0.
  4. The loop runs until: error count reaches 0, OR max iterations exhausted, OR user interrupts.
  5. If errors remain and budget allows, begin the next iteration NOW.

Anti-Pattern Blocklist

The following patterns are strictly forbidden. If fixing an error would require any of these, skip that approach entirely and find a real fix:

PatternWhy it is forbidden
try: ... except: passSilences the error without handling it
try: ... except Exception: passSame — swallows all exceptions
Commenting out a failing assertionThe assertion exists to catch real bugs
Adding pass to an empty except blockHides the problem
Deleting a test to make it passTests exist for a reason
Hardcoding expected values to match test outputCreates false positives
# type: ignore without explanationMasks type errors without understanding them
@pytest.mark.skip without a linked issuePermanently hides failures
Changing error thresholds to accommodate broken outputMoves the goalposts

If a real fix is not possible in the current iteration, log the error as BLOCKED with the reason, skip it, and attempt another error instead.


Setup

Step 1 — Identify the error source

Ask if not provided: "What command reveals the errors?" (e.g., pytest, tsc, cargo build, pylint, make). Record as error_command.

Step 2 — Run initial count

Execute error_command. Parse the output to count distinct errors. Record as errors_before for iteration 1.

Step 3 — Set budget

Default max_iterations: 20. User may override.


Core Loop

iteration = 1
while errors > 0 and iteration <= max_iterations:

    1. COUNT: Run error_command. Parse output. Count distinct errors.
       Record errors_before for this iteration.

    2. PRIORITIZE: Build dependency graph of errors.
       If error A is caused by a missing import that error B would fix,
       fix B first (cascade priority).
       Rule: fix the error that is blocking the most other errors first.

    3. SELECT: Pick the highest-priority unfixed error.
       Skip BLOCKED errors unless all non-blocked errors are exhausted.

    4. ANALYZE: Read the affected file(s). Understand the root cause.
       Verify the proposed fix does not appear on the Anti-Pattern Blocklist.

    5. FIX: Apply the minimal change that resolves this error.
       Do not modify adjacent code unless it is directly causing the error.

    6. RECOUNT: Run error_command again. Count errors.
       Record errors_after for this iteration.

    7. LOG: Append row to fix-results.tsv.

    8. CHECK: If errors_after == 0 → done. Otherwise → next iteration.

iteration += 1

Cascade Priority Rule

When multiple errors exist:

  1. Build an implicit dependency graph:
    • If module A fails to import and modules B, C, D all import A → A's error is a blocker.
    • Fix A first; B, C, D errors may resolve automatically.
  2. Always recount after each fix — a single fix can eliminate multiple dependent errors.
  3. Never fix symptom errors before root-cause errors.

Example: TypeScript project has 12 errors. 9 of them are "cannot find name X" because types.ts has a syntax error. Fix types.ts first → recount → likely 3 errors remain.


Output

fix-results.tsv — written to the working directory, appended each iteration.

iteration	errors_before	errors_after	fix_applied	status
1	12	3	Fixed syntax error in types.ts (missing closing brace)	improved
2	3	1	Fixed null check in userService.ts line 42	improved
3	1	0	Fixed missing import in index.ts	done

Columns:

  • iteration — integer
  • errors_before — error count before this iteration's fix
  • errors_after — error count after this iteration's fix
  • fix_applied — one-line description of the change made
  • status — one of: improved, done, no_change, blocked, budget_exhausted

Termination Conditions

  1. errors_after == 0 → append status: done to final row → print summary → done.
  2. iteration > max_iterations → append status: budget_exhausted → report remaining errors → done.
  3. All remaining errors are BLOCKED → report blockers with reasons → done.
  4. User manually interrupts → flush current state → done.

Edge Cases

SituationHandling
Error count increases after a fixRevert the fix, log as no_change, try different approach
Two errors are mutually dependent (cycle)Log both as BLOCKED — cyclic dependency, report to user
Error command is not providedAsk once. Refuse to guess.
Error command times outWrap with timeout 5m. Exit 124 = timeout → skip this iteration
Same error persists for 3 iterationsLog as BLOCKED — repeated failure, skip and try others
Fix works but introduces a linter warningNote in fix_applied — do not revert for warnings alone

Поширені запитання

Що робить навичка ШІ Autoresearch:Fix?

Iterative error-crusher loop that auto-stops at 0 errors. Cascade-aware: fixes dependency errors before their dependents. Refuses anti-patterns that hide errors instead of fixing them. TRIGGER when: user has errors or failures to fix iteratively; user asks to "fix all errors"; user has a failing test suite; user has compilation errors; user has linter errors; user wants systematic error elimination; user invokes /autoresearch:fix. DO NOT TRIGGER when: user wants a one-shot fix for a single obvious bug; user wants debugging guidance only; user wants code review without fixing.

Навіщо використовувати Autoresearch:Fix у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Autoresearch:Fix — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Autoresearch:Fix у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/wjgoarxiv/autoresearch-skill/tree/main/skills/fix. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Autoresearch:Fix?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Autoresearch:Fix?

Зі скількома забажаєте. У TypingMind ви можете використовувати Autoresearch:Fix із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Autoresearch:Fix?

Так. На GitHub цю навичку публікує wjgoarxiv за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇