Skip to content

Conversation

riqueufmg
Copy link
Contributor

@riqueufmg riqueufmg commented Oct 4, 2025

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, or chat mode with GitHub Copilot.
  • I have run node update-readme.js and verified that README.md is up to date.

Description


Type of Contribution

  • New instruction file.
  • [ x ] New prompt file.
  • New chat mode file.
  • Other (please specify):

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.

@Copilot Copilot AI review requested due to automatic review settings October 4, 2025 17:38
Copy link
Contributor

@Copilot Copilot AI left a 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

Copy link
Contributor

@aaronpowell aaronpowell left a 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

@riqueufmg
Copy link
Contributor Author

Dear @aaronpowell,

It is done. Thank you!

Best regards.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@aaronpowell aaronpowell merged commit 230c081 into github:main Oct 9, 2025
2 checks passed
@aaronpowell
Copy link
Contributor

@all-contributors please add @riqueufmg for code

Copy link
Contributor

@aaronpowell

I've put up a pull request to add @riqueufmg! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants