[prompt-analysis] Copilot PR Prompt Analysis - November 19, 2025 #4325
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it was created by an agentic workflow more than 1 week ago. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 Copilot PR Prompt Pattern Analysis - November 19, 2025
This analysis examines 1,000 Copilot-generated PRs from the last 30 days in githubnext/gh-aw, identifying patterns that correlate with successful merges versus closed PRs.
Key Findings
Success Rate: 76.9% - Copilot PRs show a strong merge rate, with 684 of 890 completed PRs merged (206 closed without merge, 2 still open).
The analysis reveals that prompt clarity and action verb choice are strong indicators of success. PRs starting with "update", "fix", and "remove" show higher merge rates, while overly short prompts (< 5 words) or vague directives correlate with closures.
Detailed Analysis Report
Summary Statistics
Analysis Period: Last 30 days
Total PRs Analyzed: 892 PRs with extractable prompts
Completed PRs: 890 | Merged: 684 (76.9%) | Closed: 206 (23.1%)
Still Open: 2
Prompt Categories and Success Rates
Analysis of prompt types shows refactoring and documentation changes have the highest success rates:
Key Insight: Refactoring prompts show a 90% success rate, while feature additions and tests have lower rates (~71-72%), suggesting that well-scoped maintenance tasks are more likely to succeed than new functionality additions.
Prompt Characteristics Analysis
Length Analysis
Merged PRs: Average 10.2 words (median: 7 words)
Closed PRs: Average 10.7 words (median: 9 words)
Insight: Both successful and unsuccessful prompts average around 10 words. Length alone is not a strong predictor, but prompts under 5 words show higher failure rates.
Action Verb Analysis
Top verbs in MERGED PRs:
Top verbs in CLOSED PRs:
Insight: "update" is the most common verb in both categories, but merged PRs show more diverse action verbs. The ratio of "fix" prompts is higher in merged PRs (38 vs 7), suggesting bug fixes are well-suited for Copilot.
Specificity Indicators
File references (mentions of .go, .js, file paths):
Code references (backticks, function names, code patterns):
Insight: PRs with specific file or code references show slightly higher merge rates (+2-3%), suggesting that specificity helps but is not required for success.
Example Prompts
✅ Successful Prompts (Merged)
1. Short and clear (PR #4311, 10 words)
2. Medium with file reference (PR #4297, 23 words)
3. Update directive (PR #4304, 10 words)
❌ Unsuccessful Prompts (Closed)
1. Too vague (PR #4300, 2 words)
2. Complex bug fix (PR #4237, 12 words)
Key Insights
Based on pattern analysis across 892 prompts:
Refactoring > Features: Refactoring and documentation updates (85-90% success) outperform feature additions (72% success), likely because they have clearer success criteria.
Action verb matters: "update", "fix", and "remove" appear frequently in merged PRs, while closed PRs show more "create" and "add" (which may be more complex).
Specificity helps but isn't required: Only 13.5% of merged PRs explicitly mention files, suggesting Copilot can work effectively with general descriptions when the action is clear.
Sweet spot length: 7-10 words appears optimal - enough to be clear, concise enough to avoid ambiguity.
Bug fixes succeed: 79.5% success rate for bug fixes suggests Copilot excels at corrective tasks with clear problems to solve.
Recommendations
✅ DO:
❌ AVOID:
💡 BEST PRACTICES:
Template for high-success prompts:
Examples:
Historical Trends
Trend: Success rate ↓ 0.1 percentage points from previous analysis
Summary
Copilot PRs show a strong 76.9% merge rate when prompts are clear and action-oriented. The data suggests that:
The patterns suggest developers should favor focused, single-purpose prompts over broad directives, and choose corrective/maintenance tasks over complex feature additions for highest success rates.
Generated by Copilot PR Prompt Analysis Agent
Beta Was this translation helpful? Give feedback.
All reactions