pr-validate

Solid

PR-specific validation: isolation, upstream alignment, quality, scope creep. Triggers: "validate PR", "pr validation", "check PR scope", "scope creep check", "isolation check".

AI & Automation 458 stars 44 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 91/100

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

Skill Content

# PR Validate Skill PR-specific validation that ensures changes are clean, focused, and ready. ## Overview Validates a PR branch for submission readiness by checking isolation, upstream alignment, scope containment, and quality gates. **Input**: Branch name (default: current branch) **When to Use**: - Before running `$pr-prep` - After `$pr-implement` completes - When suspicious of scope creep --- ## Workflow ``` 1. Branch Discovery -> Identify branch and upstream 2. Upstream Alignment -> FIRST: Check rebase status (BLOCKING) 3. CONTRIBUTING.md -> Verify compliance (BLOCKING) 4. Isolation Check -> Single type, thematic files 5. Scope Check -> Verify changes match intended scope 6. Quality Gate -> Tests, linting (non-blocking) 7. Report Generation -> Summary with pass/fail ``` --- ## Phase 2: Upstream Alignment (BLOCKING - CHECK FIRST) ```bash # Fetch latest upstream git fetch origin main # How many commits behind? BEHIND=$(git rev-list --count HEAD..origin/main) echo "Behind upstream: $BEHIND commits" ``` | Check | Pass Criteria | |-------|---------------| | Minimal divergence | < 20 commits behind | | No conflicts | Merge/rebase would succeed | --- ## Phase 4: Isolation Check (BLOCKING) ```bash # Commit type analysis git log --oneline main..HEAD | sed 's/^[^ ]* //' | grep -oE '^[a-z]+(\([^)]+\))?:' | sort -u # File theme analysis git diff --name-only main..HEAD | cut -d'/' -f1-2 | sort -u ``` | Check | Pass Criteria...

Details

Author
boshu2
Repository
boshu2/agentops
Created
1 years ago
Last Updated
5 days ago
Language
Go
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category