You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Average prompt length: 435 words (similar to merged!)
File references: 78.4% (slightly lower)
Code examples: 90.8% (noticeably lower - 8% gap)
Specificity score: 2.92/5 (marginally lower)
Top keywords in closed PRs: copilot, agent, github, workflow, coding, githubnext, details, workflows, actions, summary, original, issue, prompt, tips, files
Example unsuccessful prompts:
PR #13221: Split handler configs into regular and project handlers → Closed ❌
Pattern: Unclear motivation, no specific problem stated
PR #13182: Refactor compiler to use grouped shell redirects (fix SC2129) → Closed ❌
Pattern: May have been redundant or not aligned with current approach
PR #13181: [WIP] Add explicit minimal permissions to workflows with risky triggers → Closed ❌
Pattern: WIP tag - indicates incomplete work, low confidence
PR #13180: [WIP] Add secret setup guide with screenshots to documentation → Closed ❌
Pattern: WIP tag again - incomplete deliverable
Key Insights
🎯 Insight 1: Removal/Cleanup PRs Have Highest Success Rate (77%)
PRs that remove code, dependencies, or deprecated features have the highest success rate. This suggests:
Code deletion is lower risk than additions
Cleanup work is well-scoped and easier to validate
Less room for introducing new bugs
Recommendation: Frame prompts as "remove unused X" or "clean up deprecated Y" when possible.
🔧 Insight 2: Code Examples Correlate Strongly With Success
Merged PRs include code blocks 98.8% of the time vs 90.8% for closed PRs (8% gap). This is the strongest differentiator between successful and unsuccessful prompts.
Recommendation: Always include code examples, expected outputs, or existing code snippets in your prompt. Use markdown code blocks generously.
🚧 Insight 3: [WIP] Tags Predict Failure
Multiple closed PRs have "[WIP]" (Work In Progress) tags. This indicates:
Incomplete implementations being submitted
Low confidence in the solution
Potential for duplicated effort
Recommendation: Avoid submitting PRs marked as WIP. Let Copilot complete the task fully before creating the PR.
📊 Insight 4: Success Rates Are Consistent Across Most Categories
Feature additions (68%), bug fixes (67%), and documentation (66%) all hover around the overall success rate. This suggests:
Copilot performs consistently across different PR types
Success depends more on prompt quality than task type
Even complex features have good success rates when prompted correctly
Recommendations
Based on today's analysis, here are actionable guidelines for writing successful prompts:
✅ DO:
Include code examples - 98.8% of merged PRs have code blocks
Fix the authentication handler in `auth.go`:
```go// Current code that's brokenfuncauthenticate(tokenstring) error { ... }
Reference specific files/functions - 81% of merged PRs mention file paths
"Update pkg/compiler/validator.go" not "fix the validator"
Frame as removal/cleanup when possible - 77% success rate
"Remove deprecated X" instead of "Replace X with Y"
Be clear about the problem - State what's broken or missing
"Lock files are rewritten even when unchanged, breaking timestamps"
Provide context - Explain why the change matters
"This breaks CI caching because timestamps always change"
❌ AVOID:
Submitting incomplete work - Don't use [WIP] tags
Vague problem statements - "Improve the code" is too general
Skipping code examples - 9% lower success rate without them
Omitting file references - Reduces specificity by 3%
📝 Prompt Template for Success:
## Problem[Clear description of what's broken or missing]## Solution[Specific action to take]## Files to modify-`path/to/file1.go`-`path/to/file2.js`## Example```language[Code showing current behavior or expected change]
Why this matters
[Context on impact/importance]
## Historical Trends
| Date | PRs | Success Rate | Top Category |
|------|-----|--------------|--------------|
| 2026-02-02 | 1,000 | **68.4%** | Feature (866 PRs) |
| 2026-02-01 | 1,000 | 66.9% | — |
| 2026-01-31 | 1,000 | 66.8% | — |
**Trend**: Success rate increased by **1.5 percentage points** from Jan 31 to Feb 2. This represents approximately **15 additional merged PRs** out of 1,000 attempts.
**Notable**: The dataset size has remained constant at 1,000 PRs over the 30-day window, suggesting high Copilot adoption and consistent PR velocity.
## Statistical Notes
- **Sample size**: 1,000 PRs analyzed (statistically significant)
- **Completed PRs**: 997 (682 merged + 315 closed)
- **Time frame**: 30-day rolling window
- **Category overlap**: PRs can match multiple categories (e.g., "Add test for bug fix")
## Methodology
This analysis uses:
- Keyword pattern matching to categorize prompts
- Success rate calculated as `merged / (merged + closed)`
- Text analysis for prompt characteristics (length, specificity, code presence)
- Historical comparison across last 7 days
---
**Next Steps**:
1. Share these recommendations with the team
2. Monitor if success rates improve with updated prompt patterns
3. Identify specific unsuccessful prompts for deeper analysis
_Analysis generated by Copilot PR Prompt Analysis · [Run §21589262834](https://github.com/githubnext/gh-aw/actions/runs/21589262834)_
> AI generated by [Copilot PR Prompt Pattern Analysis](https://github.com/githubnext/gh-aw/actions/runs/21589262834)
> - [x] expires <!-- gh-aw-expires: 2026-02-09T12:07:09.860Z --> on Feb 9, 2026, 12:07 PM UTC
<!-- gh-aw-workflow-id: copilot-pr-prompt-analysis -->
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 Copilot PR Prompt Pattern Analysis - February 2, 2026
Summary
Analysis Period: Last 30 days (January 3 - February 2, 2026)
Total PRs: 1,000 | Merged: 682 (68.4%) | Closed: 315 (31.6%) | Open: 3 (0.3%)
Prompt Categories and Success Rates
Note: Categories overlap - a single PR can match multiple categories (e.g., "Add tests and fix bug").
Prompt Analysis
✅ Successful Prompt Patterns
Common characteristics in merged PRs:
Top keywords in merged PRs:
copilot,agent,workflow,github,coding,test,summary,workflows,prompt,original,actions,tips,issue,changes,filesExample successful prompts:
PR #13259: Fix dispatch_workflow MCP handler to wrap inputs per schema → Merged ✅
PR #13251: Skip lock file write when content unchanged to preserve timestamps → Merged ✅
PR #13226: Fix dispatch_workflow tool registration with explicit type validation → Merged ✅
❌ Unsuccessful Prompt Patterns
Common characteristics in closed PRs:
Top keywords in closed PRs:
copilot,agent,github,workflow,coding,githubnext,details,workflows,actions,summary,original,issue,prompt,tips,filesExample unsuccessful prompts:
PR #13221: Split handler configs into regular and project handlers → Closed ❌
PR #13182: Refactor compiler to use grouped shell redirects (fix SC2129) → Closed ❌
PR #13181: [WIP] Add explicit minimal permissions to workflows with risky triggers → Closed ❌
PR #13180: [WIP] Add secret setup guide with screenshots to documentation → Closed ❌
Key Insights
🎯 Insight 1: Removal/Cleanup PRs Have Highest Success Rate (77%)
PRs that remove code, dependencies, or deprecated features have the highest success rate. This suggests:
Recommendation: Frame prompts as "remove unused X" or "clean up deprecated Y" when possible.
🔧 Insight 2: Code Examples Correlate Strongly With Success
Merged PRs include code blocks 98.8% of the time vs 90.8% for closed PRs (8% gap). This is the strongest differentiator between successful and unsuccessful prompts.
Recommendation: Always include code examples, expected outputs, or existing code snippets in your prompt. Use markdown code blocks generously.
🚧 Insight 3: [WIP] Tags Predict Failure
Multiple closed PRs have "[WIP]" (Work In Progress) tags. This indicates:
Recommendation: Avoid submitting PRs marked as WIP. Let Copilot complete the task fully before creating the PR.
📊 Insight 4: Success Rates Are Consistent Across Most Categories
Feature additions (68%), bug fixes (67%), and documentation (66%) all hover around the overall success rate. This suggests:
Recommendations
Based on today's analysis, here are actionable guidelines for writing successful prompts:
✅ DO:
Include code examples - 98.8% of merged PRs have code blocks
Reference specific files/functions - 81% of merged PRs mention file paths
pkg/compiler/validator.go" not "fix the validator"Frame as removal/cleanup when possible - 77% success rate
Be clear about the problem - State what's broken or missing
Provide context - Explain why the change matters
❌ AVOID:
📝 Prompt Template for Success:
Why this matters
[Context on impact/importance]
Beta Was this translation helpful? Give feedback.
All reactions