specrail-pr-gate

Solid

Use before reporting a SpecRail PR as merge-ready. Collects read-only PR evidence, runs the offline PR gate, checks linked work, current head SHA, CI, review decision, review threads, merge state, and human merge authorization without merging.

Code & Development 30 stars 4 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
50
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SpecRail PR Gate Use this skill before saying a PR is merge-ready. ## Steps 1. Collect current PR evidence. Prefer the read-only adapter when available: ```sh python3 checks/github_pr_evidence.py --github-repo <owner/repo> --pr <pr-number> --review-source independent_lane --json > <evidence.json> ``` For a partial slice with a standalone `Refs #<issue-number>` directive, pass the expected issue explicitly: ```sh python3 checks/github_pr_evidence.py --github-repo <owner/repo> --pr <pr-number> --issue <issue-number> --review-source independent_lane --json > <evidence.json> ``` The expected issue must exist in the same repository and remain open. Other closing references may coexist; the adapter records all of them without redirecting the explicit target. A verified `partial` relation satisfies only linked-work evidence and never authorizes final completion or issue closure. 2. Run the offline gate: ```sh python3 checks/pr_gate.py --repo . --evidence <evidence.json> --json ``` 3. Confirm evidence includes linked issue and, for new adapter output, a self-consistent `issue_reference`; also confirm current PR head SHA, gate-query completion timestamp, gate-query head SHA, CI/check rollup, review decision, review source, lane failures, review-thread resolution, merge state, and human merge authorization. 4. Interpret decisions precisely: - `allowed`: evidence satisfies the local merge-readiness policy. - `needs_human`: deterministic evidence passed, but...

Details

Author
majiayu000
Repository
majiayu000/vibeguard
Created
5 months ago
Last Updated
1 weeks ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category