Github Pr.Pass Local Tests
БесплатноБез исполняемых скриптовНе проверенMake the local unit tests pass for a PR
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Run, monitor, and fix the local unit tests for a PR
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
github_pr.pass_local_tests.<INPUT_REF>.md, then stop without executing the skill- Stop after "Create and Update a Plan"
Workflow
Resolve the Input
- Resolve the argument following
.claude/skills/github_pr.rules.md## Resolve the PR Argument - Get the code following
.claude/skills/github_pr.rules.md## Get the Local Code of the PR
Create and Update a Plan
<INPUT_REF>isPR<PR_NUM>, as in.claude/skills/skill.rules.md### Name the Output File- Create
github_pr.pass_local_tests.<INPUT_REF>.md: a bullet list of actions - Keep it updated, marking each action
[.]in progress,[x]done,[F]failed
Run Local Regressions
- Run full test suite locally:
> pytest_multi_build.py --target . 2>&1 --timeout -1 | tee tmp.auto_task.pytest_multi_build.log - Wait for the script to terminate
Check Regressions to Complete
- Check the output of the local regressions with:
> pytest_failed_multi_build.py 2>&1 | tee tmp.auto_task.pytest_failed_multi_build.log
Report Status on the PR
- If local regressions are passing:
> gh pr comment <PR_NUM> --body "Local tests passing" - If any failures, document error and post:
> gh pr comment <PR_NUM> --body "Local test failures found: [error summary]. Investigating..."
Fix the Failures
- If failures were found, run
tmp.pytest_failed_multi_build.repro.shto understand what failed and use/pytest.fix_local_teststo analyze and fix them- If the fix is simple, just fix it and commit
- If the fix is not clear, stop and ask for the user to help
Never Commit Junk Files
- Never run
git add -Aorgit add .to stage a fix: they sweep in every untracked file (logs,tmp.*scratch files, test-run artifacts like.pkl/.jsoncaches), not just the intended files - Always stage files explicitly by path, e.g.
git add <file1> <file2> - Before committing, run
git status --shortand drop anything that is not part of the intended fix - If junk was already committed and pushed, amend the commit to hold only the
intended files and force-push (
git push --force-with-lease)
Loop
- Keep repeating until the PR is passing all the local tests
Constraints
- This skill runs both when executed locally on a dev computer and remotely on cloud (e.g., on GitHub or Anthropic infrastructure)
Verification
-
--only_plan(check only this item): the plan is ingithub_pr.pass_local_tests.<INPUT_REF>.mdin the current dir, has theGenerated byline, and nothing was executed - The output file is
github_pr.pass_local_tests.<INPUT_REF>.mdin the current dir -
pytest_failed_multi_build.pyreports no failing tests - A PR comment reports the final local test status
-
git status --shortshows only the intended files staged before commit
Установить Github Pr.Pass Local Tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Github Pr.Pass Local Tests?
Make the local unit tests pass for a PR
Как установить скилл Github Pr.Pass Local Tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Github Pr.Pass 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