-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Create java-refactoring-extract-method.prompt.md #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new Java refactoring prompt that demonstrates the Extract Method technique using few-shot and chain-of-thought approaches. The prompt provides structured guidance for identifying and extracting methods from complex Java code to improve code quality.
- Creates a specialized agent-mode prompt for Java Extract Method refactoring
- Includes two comprehensive examples showing before/after refactoring scenarios
- Provides clear task instructions with specific complexity thresholds and step-by-step guidance
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run the update script to ensure that the README is updated appropriately
Dear @aaronpowell, It is done. Thank you! Best regards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best to add either a level 1 heading (single #
) at the start of the file, or add title
to the front matter, so that it provided a more accurate title in the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! I already did it!
Please, check it out.
@all-contributors please add @riqueufmg for code |
I've put up a pull request to add @riqueufmg! 🎉 |
Pull Request Checklist
node update-readme.js
and verified thatREADME.md
is up to date.Description
Type of Contribution
Additional Notes
I added an Extract Method prompt using few-shot and chain-of-thought techniques for Java.
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.