Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Github Pr.Pass Local Tests

БесплатноБез исполняемых скриптовНе проверен

Make the local unit tests pass for a PR

gpsaggeseот 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.md section "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> is PR<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.sh to understand what failed and use /pytest.fix_local_tests to 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 -A or git add . to stage a fix: they sweep in every untracked file (logs, tmp.* scratch files, test-run artifacts like .pkl/.json caches), not just the intended files
  • Always stage files explicitly by path, e.g. git add <file1> <file2>
  • Before committing, run git status --short and 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 in github_pr.pass_local_tests.<INPUT_REF>.md in the current dir, has the Generated by line, and nothing was executed
  • The output file is github_pr.pass_local_tests.<INPUT_REF>.md in the current dir
  • pytest_failed_multi_build.py reports no failing tests
  • A PR comment reports the final local test status
  • git status --short shows only the intended files staged before commit
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Github Pr.Pass Local Tests с