Agent skill

pr-ready

Run validation, post a summary, and flip a PR from draft to ready.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-ready

SKILL.md

PR Ready

Validate and mark a PR ready for review. Run quality gates before flipping.

Inputs

PR number or URL. Optional: -Fast (lint + unit tests only), -DryRun (print actions only).

Workflow

  1. Run validation — Use project placeholder mappings to extract:

    • {{LINT_COMMAND}}
    • {{RUN_UNIT_TESTS_COMMAND}}
    • {{RUN_ALL_TESTS_COMMAND}}
    • {{SMOKE_TEST_COMMAND}} (optional)

    Default: lint + all tests + smoke (if defined). -Fast: lint + unit tests only.

  2. Check CI — Run gh pr checks <pr> --watch. Wait for green.

  3. Post summary — Comment on the PR with what ran and whether it passed:

    gh pr comment <pr> --body "..."
    
  4. Mark ready — Only if all gates pass and CI is green:

    gh pr ready <pr>
    

Notes

  • If any gate fails, post a failing summary. Do not mark ready.
  • If CI is not green, do not mark ready. Wait or report the failure.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results