Create pull requests with pre-flight verification, PR body generation, reviewer suggestion, comprehension narrative, and label selection. Handle push and PR creation as Tier 2 operations. Use when preparing or creating a pull request.
From flownpx claudepluginhub synaptiai/synapti-marketplace --plugin flowThis skill is limited to using the following tools:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Domain skill for the full PR creation process.
NO PR WITHOUT VERIFICATION. Every PR must have proof that quality checks pass. "I think it works" is not a PR description.
If you can't show test results, lint output, or verification evidence in the PR body, the PR is not ready.
All checks run in parallel:
# 1. Not on default branch
BRANCH=$(git branch --show-current)
DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null || echo "main")
[ "$BRANCH" = "$DEFAULT_BRANCH" ] && echo "ERROR: On default branch" && exit 1
# 2. Commits ahead
git rev-list --count "$DEFAULT_BRANCH"..HEAD
# 3. No uncommitted changes
git status --porcelain
# 4. No existing PR
gh pr list --head "$BRANCH" --state open --json number
Fail if: on default branch, no commits ahead, or PR already exists.
Warn if: uncommitted changes (offer to commit first).
Generate from template + review findings + decision journal:
## Summary
{2-3 sentence description of what changed and why}
Closes #{issue_number}
## Changes
{Bullet list of key changes, grouped by area}
## Comprehension Report
{Generated narrative: what was built, why, architecture decisions}
### Requirements Adherence
| # | Criterion | Status | Evidence |
|---|-----------|--------|----------|
| 1 | {criterion} | Met | {file:line} |
### Key Decisions
{From decision journal — public entries only, internal redacted}
## Review Findings
{P1/P2/P3 summary from code review}
## Verification
- [ ] Quality checks pass (lint, test, typecheck)
- [ ] Self-review completed
- [ ] Runtime verification (if applicable)
## Files Changed
{Grouped by area with brief description per group}
Before creating the PR, confirm ALL of these. If any fail, stop:
This gate is mandatory. Skipping it to "get the PR up quickly" creates reviewer burden.
Algorithm: CODEOWNERS match → file expertise → recent activity → workload balancing.
# Get contributors for changed files
git log --format='%an' --since='30 days ago' -- $(git diff --name-only $DEFAULT_BRANCH...HEAD) | sort | uniq -c | sort -rn | head -5
# Check CODEOWNERS
cat .github/CODEOWNERS 2>/dev/null
Present top 2-3 suggestions with rationale.
Both are Tier 2 (journal-and-proceed):
# Push (Tier 2)
git push -u origin $BRANCH
# Create PR (Tier 2)
gh pr create --title "$TITLE" --body "$BODY" --label "$LABELS"
gh pr view --json number,url,state,title
Display PR URL and suggest: /flow:review {number} for self-review or share with team.
| Excuse | Response |
|---|---|
| "I'll fix it after the PR is up" | Fix it now. Draft PRs accumulate, they don't improve. |
| "The reviewer will catch any issues" | You are the first reviewer. Don't outsource your job. |
| "It's a small change, no need for full pre-flight" | Small changes, same process. |
| "CI will validate it" | CI validates what it tests. Pre-flight validates what it doesn't. |