fix-failing-tests
Diagnose and fix test failures from saved test output. Use when the user shares test output or says "tests fail".
от Integralist★ 31 звезда на GitHub
Установить fix-failing-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Find the failures in a test-output file, have a read-only subagent diagnose their root causes, then apply the fixes in the main thread, where the user can redirect or stop any fix before work piles up.
Find the output. Use the path the user gave, else
/tmp/output. Read it; if it's missing or empty, ask the user where the output is. Done when you have a non-empty file.Search for failures. Search for markers rather than reading, because failures slip past in long output mixed with passing lines and infra logs:
rg -n 'FAIL|--- FAIL|^panic:|DATA RACE|^not ok|Error Trace|build failed' <path>If nothing matches, report "no failures found" with the command you ran, and stop. Done when you have the list of failures, or have reported none.
Diagnose in a read-only subagent. Follow the completion and retry rules in the shared subagent policy. Tell the subagent to:
- read the output file and the failures you found, then the relevant source, before reasoning about causes;
- find the root cause from evidence, saying so when evidence is missing instead of guessing;
- stay read-only: no edits, no
make test, no workspace changes; - prefer fixing the implementation over weakening an assertion;
- note any
docs/**/*.mdor**/README.mda fix would touch if it changes behaviour, public APIs, or usage; - note that
e2eor integration failures need a running stack formake test-integration; - follow the project's AGENTS.md;
- return, per failure, the test, the root cause, and the proposed fix.
Done when every failure has a root cause and a proposed fix.
Fix in the main thread. Show the root causes and fixes, then apply them, flagging any you're unsure of so the user can redirect, skip, or stop. Never weaken an assertion to make a test pass. Update the docs a fix affects. Rerun the original failing cases with their required flags and environment, and run
make testfor regressions. Integration failures needmake test-integrationagainst a running stack. Reuse a passing run that covers both. If a fix doesn't hold, re-diagnose rather than guess. After 3 runs that still fail, stop editing, name the assumption you haven't verified, and ask one diagnostic question. Leave committing to the user. Done when the original failing cases and regression checks pass, or you've stopped and reported what failed or couldn't be verified.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fix-failing-tests?
Diagnose and fix test failures from saved test output. Use when the user shares test output or says "tests fail".
Как установить скилл fix-failing-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fix-failing-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…