Pytest.Fix Local Tests
БесплатноБез исполняемых скриптовНе проверенAnalyze and fix failure of local tests
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Given info about failed tests
<FAILURE_INFO>, run the tests, find the root cause, and fix them
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
pytest.fix_local_tests.<INPUT_REF>.md, then stop without executing the skill- Run the skill through "Prepare A Plan to Fix Failures", and stop before "Implement and Verify the Fix"
Workflow
Run Tests
The input
<FAILURE_INFO>can be:- A failing pytest test
- E.g.,
dev_scripts_helpers/documentation/test/test_notes_to_pdf.py
- E.g.,
- A repro generated by
pytest_failed_multi_build.py- E.g.,
tmp.pytest_failed_multi_build.repro.sh
- E.g.,
- A failing pytest test
Gather information about the failing tests by:
- Reading the code
- Inspecting the content of
<FAILURE_INFO> - Running the tests locally, if needed
- E.g.,
> pytest_log `<FAILURE_INFO>` > tmp.pytest_failed_multi_build.repro.sh
- E.g.,
Analyze Failures
Read
.claude/skills/pytest.rules.mdto learn how to diagnose issuesCollect the failing tests from the run
> i pytest_failed ... Failed tests: 25/7 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_actions::test1 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_actions::test2 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test1 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test2 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test3 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test4 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test1 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test2 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test3 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test4 dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test5 ... 13:07:36 - WARN lib_tasks_pytest.py pytest_failed:1745 To run the failed tests run: tmp.pytest_failed.sh ...For tests that run Docker / Apple containers, run them with different builds, per
## Analyze the Effect of Container Buildsin.claude/skills/pytest.rules.mdCheck whether the root cause and the solution are the same for all 3 builds
Prepare A Plan to Fix Failures
- Prepare a plan following
# Format for Unit Test Fixing Planin.claude/skills/pytest.rules.md - Save it in
pytest.fix_local_tests.<INPUT_REF>.mdin the current dir<INPUT_REF>comes from<FAILURE_INFO>, as in.claude/skills/skill.rules.md### Name the Output File
- Do not print the plan on screen: print only its path
Implement and Verify the Fix
- If the root cause and the fix are clear, implement the fixes directly
- If the root cause or the fix is unclear, stop and ask the user before implementing anything
- Verify the fixes as per
# Verification of the Fixin.claude/skills/pytest.rules.md
Verification
-
--only_plan(check only this item): the plan is inpytest.fix_local_tests.<INPUT_REF>.mdin the current dir, has theGenerated byline, and nothing was executed - The output file is
pytest.fix_local_tests.<INPUT_REF>.mdin the current dir -
pytest.fix_local_tests.<INPUT_REF>.mdlists a fix for every failing test - Every fix follows
# Verification of the Fixin.claude/skills/pytest.rules.md - The failing tests pass locally after the fix
Установить Pytest.Fix Local Tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Pytest.Fix Local Tests?
Analyze and fix failure of local tests
Как установить скилл Pytest.Fix Local Tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Pytest.Fix Local Tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic