[prompt-analysis] Copilot PR Prompt Analysis - 2025-12-13 #6328
Closed
Replies: 2 comments 1 reply
-
|
/q update the agentic workflow to create a pull request to maintain spec file with the recommendations at specs/agentic-task-best-practices.md The file should be formatted so that is can be consumed by an agent. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
⚓ 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 Summary
Analyzed 1000 Copilot-generated PRs from the last 30 days to identify prompt patterns that lead to successful merges.
Key Results:
🎯 Critical Success Factors
Prompts that got merged were significantly more likely to include:
Prompt Categories Performance
Category Success Rates
Top Performers:
Lower Success Rates:
Successful vs Unsuccessful Prompt Patterns
✅ Merged PR Characteristics
Prompt Structure:
Top Action Verbs:
update: 129xadd: 105xfix: 61xcreate: 33xchange: 13x❌ Closed PR Characteristics
Prompt Structure:
Key Difference: Closed PRs lack specificity and context despite using similar action verbs.
Real Examples: What Works vs What Doesn't
✅ Successful Prompts
Example 1: PR #4218
Title: Fix JavaScript test assertions for loadAgentOutput error handling
Length: 10 words
Prompt:
Example 2: PR #5017
Title: Add temporary ID support for create-discussion safe output
Length: 14 words
Prompt:
Example 3: PR #6075
Title: Document agentic-workflows tool requires actions: read permission
Length: 18 words
Prompt:
❌ Unsuccessful Prompts
Example 1: PR #5228
Title: Refactor Octokit client calls to use helper
Length: 18 words
Prompt:
Example 2: PR #6173
Title: [WIP] Update CLI version check for Copilot commands
Length: 40 words
Prompt:
Example 3: PR #4470
Title: Update github.com/spf13/cast from v1.7.0 to v1.10.0
Length: 198 words
Prompt:
This section details on the original issue you should resolve
(issue_title)[Dependabot] Update github.com/spf13/cast from v1.7.0 to v1.10.0(/issue_title)
(issue_description)## Summary
Update
github.com/spf13/castdependency from v1.7.0 to v1.10.0Current State
📋 Recommendations for Better Prompts
✅ DO
Include File References (4x higher success rate)
Provide URL Context (4x higher success rate)
Add Code Examples (4x higher success rate)
Write ~110 Words (optimal length)
Use Specific Action Verbs
❌ AVOID
Vague Instructions
Missing Context
Too Brief
📝 High-Success Prompt Template
Historical Trends
Last 7 Days
Trend: ➡️ Success rate stable
Methodology: Analyzed 1000 Copilot PRs from last 30 days by extracting original prompts and categorizing by outcome. Measured prompt characteristics (length, file refs, URLs, code snippets) to identify success patterns.
References:
Beta Was this translation helpful? Give feedback.
All reactions