Перейти к основному содержимому

Перевод: оболочка страницы на русском; тело навыка (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-impact summary 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 --apply once per project
  • For this monorepo: prefer scripts/run_tests.sh over bare pytest

How to Run​

  1. 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.

  1. Or run the probes manually:
vibeos doctor --project
vibeos project index status
vibeos project diagnostics
vibeos project commands
  1. Run the primary test command from commands.json / doctor hint. In VibeOS itself:
scripts/run_tests.sh <touched-tests> -q
  1. Optional pre-commit review skill: load requesting-code-review on the diff. Then open PR via github-pr-workflow / babysit with pr-babysit.

Quick Reference​

GoalCommand
Gate script…/pr-ready/scripts/pr_ready_check.py
Doctorvibeos doctor --project
Indexvibeos project index status
Diagnosticsvibeos project diagnostics --show
Test cmdsvibeos project commands
Blast radiusskill change-impact

Procedure​

  1. Fail closed on PROJ.index_missing / PROJ.index_stale — rebuild first.
  2. Fail closed on diagnostics errors (not warnings).
  3. Run at least primary_test (or a focused subset for huge suites).
  4. Confirm no secrets in the diff (.env, credentials) before push.
  5. Only then create the PR; CI failures → pr-babysit.

Pitfalls​

  • Helper reads the cached diagnostics file — refresh with vibeos project diagnostics if 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