Перевод: оболочка страницы на русском; тело навыка (SKILL.md) пока на английском — это исходные инструкции агента.
Pr Ready
Local diagnostics and tests before opening a PR.
Метаданные навыка
| Источник | Встроенный (установлен по умолчанию) |
| Путь | skills/software-development/pr-ready |
| Версия | 1.0.0 |
| Автор | VibeOS |
| Лицензия | MIT |
| Платформы | linux, macos, windows |
| Теги | project, pr, diagnostics, tests, ready, gate |
| Связанные навыки | change-impact, codebase-navigate, requesting-code-review, git-local-workflow, pr-babysit |
Справка: полный SKILL.md
к сведению
Ниже полное определение навыка, которое VibeOS загружает при активации. Это инструкции, которые видит агент.
PR Ready Skill
Local go/no-go before gh pr create / push. Uses Project Intelligence
CLI + discovered test commands — no new core tools. Drive with terminal.
Does not replace live review (requesting-code-review) or CI babysit
(pr-babysit). This is the offline gate on the operator machine.
When to Use
- User asks “ready for PR?”, “can we open a PR?”, “ship checklist”
- After
change-impactsummary looks acceptable - Before first push of a feature branch
Skip when: user forbids running tests; change is docs-only and they say skip.
Prerequisites
- Git repo; prefer clean index (or intentional staged set)
vibeos pack apply project-intelligence --applyonce per project- For this monorepo: prefer
scripts/run_tests.shover barepytest
How to Run
- Offline gate helper (same skill directory):
python3 skills/software-development/pr-ready/scripts/pr_ready_check.py
# JSON:
python3 skills/software-development/pr-ready/scripts/pr_ready_check.py --json
Exit 0 = index ok + diagnostics cache has zero errors (warnings OK).
Exit 1 = fix listed gaps first.
- Or run the probes manually:
vibeos doctor --project
vibeos project index status
vibeos project diagnostics
vibeos project commands
- Run the primary test command from
commands.json/ doctor hint. In VibeOS itself:
scripts/run_tests.sh <touched-tests> -q
- Optional pre-commit review skill: load
requesting-code-reviewon the diff. Then open PR viagithub-pr-workflow/ babysit withpr-babysit.
Quick Reference
| Goal | Command |
|---|---|
| Gate script | …/pr-ready/scripts/pr_ready_check.py |
| Doctor | vibeos doctor --project |
| Index | vibeos project index status |
| Diagnostics | vibeos project diagnostics --show |
| Test cmds | vibeos project commands |
| Blast radius | skill change-impact |
Procedure
- Fail closed on
PROJ.index_missing/PROJ.index_stale— rebuild first. - Fail closed on diagnostics errors (not warnings).
- Run at least
primary_test(or a focused subset for huge suites). - Confirm no secrets in the diff (
.env, credentials) before push. - Only then create the PR; CI failures →
pr-babysit.
Pitfalls
- Helper reads the cached diagnostics file — refresh with
vibeos project diagnosticsif the tree moved. - Unbounded test suites: use focused paths; do not burn the session.
- Push/PR still need user policy allow (
VIBEOS_POLICY_ALLOW_GITHUB).
Verification
python3 skills/software-development/pr-ready/scripts/pr_ready_check.py
vibeos doctor --project