coach_pr
Assess whether a pull request is safe to submit: returns a pass/fail decision with blocking issues and recommended actions based on repo and maintainer policies.
Instructions
Agent PR Dojo: quick pass/fail gate. Use coach_pr for go/no-go decision, analyze_pr for detailed analysis.
Use this as a final gate before opening a PR. Returns pass=true if safe to submit, pass=false if there are blocking issues to fix first.
Combines repo profile analysis, anti-pattern matching, and maintainer policy checks into a single go/no-go decision.
Args: title: PR title repo: Target repo (org/name) body: PR body/description description: Extended description author: PR author username author_association: Author's association (NONE/CONTRIBUTOR/etc.) labels: PR labels star_count: Repo star count (>= 0) repo_merge_rate: External PR merge rate (0.0-1.0) mergeable: Mergeable state (MERGEABLE/CONFLICTING/UNKNOWN) diff_stat: git diff --stat output (populates impact/review)
Returns: dict with pass (bool), tier, signals, checklist, recommended_action
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| repo | Yes | ||
| title | Yes | ||
| author | No | ||
| labels | No | ||
| diff_stat | No | ||
| mergeable | No | MERGEABLE | |
| star_count | No | ||
| description | No | ||
| repo_merge_rate | No | ||
| author_association | No | NONE |