agentleFS
AlekseiULAlekseiUL/sprut-agent-kit/skills/systematic-debugging/SKILL.md

systematic-debugging

Skill66 starsChanged 15 days agoMITView on GitHub

Систематическая отладка при любых багах, ошибках, неожиданном поведении. Используй ПЕРЕД предложением фиксов. Триггеры: 'не работает', 'баг', 'ошибка', 'сломалось', 'debug', 'почему не', 'странное поведение', 'крон не запустился', 'скрипт падает'.

190 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 20 projects that use this

  • mjunaidcaSkill

    building-chatgpt-apps

    Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).

    Also in 4 projects that use this

  • mjunaidcaSkill

    building-chat-interfaces

    Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.

    Also in 4 projects that use this

  • +2 more from Leodorareluctant259
  • +5 more from mjunaidca

The file

Files
SKILL.md

Систематическая отладка

Железное правило

НИКАКИХ ФИКСОВ БЕЗ ПОНИМАНИЯ ПРИЧИНЫ

Рандомные фиксы тратят время и создают новые баги. Если не прошёл Фазу 1 - нельзя предлагать решения.

Когда использовать

Любая техническая проблема:

  • Крон не запустился / выдал ошибку
  • Скрипт падает
  • Gateway не отвечает
  • Docker контейнер упал
  • Память не ищет нужное
  • Бот не отправляет сообщения
  • Любое "раньше работало, теперь нет"

Особенно когда: под давлением, "очевидный фикс" напрашивается, уже пробовал 2+ решения.

Четыре фазы

Фаза 1: Расследование причины

ПЕРЕД любым фиксом:

  1. Прочитай ошибку целиком
    • Не пропускай стектрейсы и warnings
    • Часто ответ прямо в тексте ошибки
    • Запиши: файл, строка, код ошибки
  2. Воспроизведи
    • Можешь повторить проблему?
    • Какие точные шаги?
    • Если не воспроизводится - собирай больше данных, не гадай
  3. Что изменилось?
    • git diff, последние коммиты
    • Обновление платформы? (проверь версию)
    • Новые зависимости, конфиг?
    • memory/progress-log.md - что делалось недавно
  4. Проследи поток данных Для многокомпонентных систем (крон → gateway → агент → tool → результат):
    На каждом стыке:
    - Что входит?
    - Что выходит?
    - Где ломается?

Фаза 2: Анализ паттерна

  1. Найди рабочий пример - похожий скрипт/крон который работает
  2. Сравни - что отличается между рабочим и сломанным?
  3. Проверь зависимости - всё ли на месте (docker, npm, пути, права)?

Фаза 3: Гипотеза и тест

  1. Сформулируй гипотезу - "Я думаю причина в X потому что Y"
  2. Минимальный тест - ОДНО изменение, ОДНА переменная
  3. Проверь - сработало → Фаза 4. Нет → новая гипотеза
  4. НЕ лепи фиксы поверх - если не сработало, откати и думай заново

Фаза 4: Реализация фикса

  1. Фикси причину, не симптом
  2. Одно изменение за раз
  3. Проверь - проблема ушла? Ничего другого не сломалось?
  4. Запиши - bash scripts/progress-log.sh + daily notes если важное
  5. Если 3+ фикса не сработали - СТОП. Проблема архитектурная. Обсуди с Алексеем.

Красные флаги - ОСТАНОВИСЬ

Если ловишь себя на мысли:

  • "Быстрый фикс, потом разберусь"
  • "Попробую поменять X, вдруг поможет"
  • "Добавлю несколько изменений сразу"
  • "Не совсем понимаю, но может сработает"
  • "Ещё один фикс..." (когда уже 2+ не сработали)

→ СТОП. Вернись к Фазе 1.

Наши типичные проблемы и где искать

ПроблемаПервым делом проверь
Крон не запустилсяПроверь cron list → consecutiveErrors, lastStatus
Gateway не отвечаетПроверь gateway status, порт
Скрипт не найденПуть, chmod +x, shebang
Docker упалdocker ps -a, docker logs <name>
Память не ищетsqlite3 <path>/memory.sqlite "SELECT count(*) FROM chunks;"
Бот молчитmessage tool → проверь to, channel
После обновленияПроверь health-check, перезапусти сервисы

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.