[prompt-analysis] Copilot PR Prompt Analysis - 2025-12-09 #5933
Closed
Replies: 1 comment
-
|
⚓ Avast! This discussion be marked as outdated by Copilot PR Prompt Pattern Analysis. |
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.
-
Analysis of 1,000 Copilot-generated PRs from the last 30 days reveals that successful prompts focus on workflow-level features and GitHub integration (78.8% merge rate), while unsuccessful prompts tend to deal with internal implementation details. The type of task matters less than how the prompt is written - all categories show 72-83% success rates.
Key finding: Bug fix prompts have the highest success rate (82.5%) when they include clear problem statements, while documentation-only and vague "suggestions" prompts correlate with closed PRs.
Full Analysis Report
Analysis Period
Last 30 days (Data as of 2025-12-09)
Summary Statistics
Completed PRs: 997 (merged + closed)
Prompt Categories and Success Rates
Analysis based on 580 PRs with extractable prompts (460 merged, 120 closed).
Key Insight: All categories show similar success rates (72-83%), suggesting task type matters less than prompt quality.
Prompt Characteristics Analysis
Length Analysis
Finding: Prompt length and file references don't strongly correlate with success.
Action Verbs Distribution
Merged PRs (Top 5):
update- 134 occurrences (29.1%)add- 129 occurrences (28.0%)fix- 55 occurrences (12.0%)create- 41 occurrences (8.9%)remove- 28 occurrences (6.1%)Closed PRs (Top 5):
add- 46 occurrences (38.3%)update- 27 occurrences (22.5%)create- 15 occurrences (12.5%)remove- 10 occurrences (8.3%)fix- 9 occurrences (7.5%)Keyword Pattern Analysis
Keywords More Common in MERGED PRs
logsrunworkflowsissuessafeagenticrunsgithubPattern: Successful prompts focus on workflow-level features and GitHub integration points.
Keywords More Common in CLOSED PRs
suggestionspatternenginestringdocumentationerrorPattern: Unsuccessful prompts deal with internal implementation details and exploratory requests.
Example Prompts
✅ Successful (Merged)
1. PR #5918 - Add compile-time validation for script runtime
2. PR #5912 - Add labels field for workflow categorization
3. PR #5911 - Add minimize-comment safe output type
4. PR #5908 - Implement dependency graph for compile --watch
5. PR #5907 - Implement AI moderator workflow
❌ Unsuccessful (Closed)
1. PR #5913 - Add Absurd durable execution spec
2. PR #5903 - Add api.github.com network domain
3. PR #5888 - Add --deny-tool option
4. PR #5810 - Hardcode safeinputs MCP server port
5. PR #5801 - Fix environment variable expansion
Key Insights
1. 🎯 Task Type Matters Less Than Prompt Quality
All categories show 72-83% success rates - the consistency suggests that how you write the prompt is more important than what type of task you're requesting.
2. 📏 Length ≠ Success
Both merged and closed PRs average ~41-42 words. Conciseness and verbosity don't correlate with outcomes.
3. 🔗 Workflow-Level Focus = Higher Success
Prompts mentioning
workflows,runs,logs,issues,github, andagenticare 1.5-2.8× more common in merged PRs. These focus on user-facing workflow features rather than internal implementation.4. 🐛 Bug Fixes Win with Clear Problem Statements
Bug fix prompts have the highest success rate (82.5%), suggesting that clear problem statements lead to better outcomes than exploratory or vague requests.
5. ⚙️ Internal Implementation = Lower Success
Keywords like
engine,pattern,error,pkg, anddocumentationare 3-100× more common in closed PRs, indicating these prompts may be too implementation-focused or exploratory.6. 📝 Documentation-Only Prompts Struggle
The
documentationkeyword is 4.2× more common in closed PRs, suggesting doc-only changes may not align with Copilot's code-generation strengths.Recommendations
✅ DO
1. Focus on workflow-level features and GitHub integration
2. Write clear problem statements for bug fixes
3. Reference GitHub integration points
github,workflow,issues,runsmore successful4. Be specific about user-facing impact
❌ AVOID
1. Prompts about internal engine/configuration details
engine,error,pkgcorrelate with closed PRs2. Documentation-only requests
documentationkeyword 4.2× more common in closed PRs3. Vague suggestions or exploratory patterns
suggestionskeyword 100× more common in closed PRs4. Pure configuration fixes without clear user impact
Historical Trends (Last 7 Days)
Trend: Success rate stable around 78-80% over the past week, with consistent patterns across days.
Prompt Writing Template
Based on this analysis, here's a template for high-success prompts:
Example:
References:
/tmp/gh-aw/cache-memory/prompt-analysis/history.jsonBeta Was this translation helpful? Give feedback.
All reactions