Skip to content

Conversation

riqueufmg
Copy link

@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

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