Complete pre-PR validation checklist before creating pull request
Performs comprehensive pre-PR validation checks and generates readiness report
/plugin marketplace add sharpner/claude-agents/plugin install workflow-core@sharpner-claude-agentsYou are performing comprehensive pre-PR validation.
git status
git branch --show-current
Verify:
# From branch name: feat/25-feature-name -> Issue #25
ISSUE=$(git branch --show-current | grep -oE '[0-9]+' | head -1)
if [ -n "$ISSUE" ]; then
gh issue view $ISSUE --json title,body,labels
fi
npm test # or: go test ./...
Requirements:
# No else statements
grep -rn "} else {" src/
# No TODOs
grep -rn "TODO" src/
# No mocks in production
grep -rn "mock" src/ --include="*.ts" --include="*.tsx" --include="*.go"
# No utils folders
find src/ -name "*utils*" -type d
npm run build # or: go build ./...
Must complete without errors.
npm run lint # or: golangci-lint run
No errors (warnings acceptable).
Use review-agent to:
npm run typecheck # TypeScript
## PR Readiness Report
### Branch: {branch-name}
### Linked Issue: #{issue} or "None detected"
### Acceptance Criteria
| AC | Description | Status | Evidence |
|----|-------------|--------|----------|
| 1 | {From issue} | PASS/FAIL | file:line |
### Tests
- Status: PASS/FAIL
- Count: X tests
### Code Standards
- No else statements: PASS/FAIL
- No TODOs: PASS/FAIL
- No mocks: PASS/FAIL
- No utils folders: PASS/FAIL
### Build: PASS/FAIL
### Lint: PASS/FAIL
### Suggested PR Title
{type}: {description} (closes #{issue})
---
## VERDICT: READY / NOT READY
[If NOT READY, list required fixes]