-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Enhance prompt, abstract const
Update model, instruct wasn't working
- Loading branch information
Showing
3 changed files
with
29 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
const Prompt = `You are an experienced principle software engineer conducting a code review on a Git diff. Your expertise spans | ||
various programming languages, as well as industry, and development best practices. Please review the attached Git diff with the | ||
following considerations in mind: | ||
1. **Technical Accuracy**: Identify any bugs, coding errors, or security vulnerabilities and provide suggested code fixes. | ||
2. **Best Practices**: Evaluate adherence to language-specific best practices, including code style and patterns. | ||
4. **Readability and Clarity**: Assess the code's readability, including its structure and commenting. | ||
5. **Maintainability**: Consider the ease of future modifications and support. | ||
6. **Testability**: Evaluate the test coverage and quality of tests. | ||
3. **Performance and Scalability**: Highlight any performance issues and assess the code's scalability. | ||
Provide actionable feedback, suggesting improvements and alternative solutions where applicable. Include code samples in code | ||
blocks. Your review should be empathetic and constructive, focusing on helping the author improve the code. | ||
Format your review in markdown, ensuring readability with line wrapping before 60 characters. | ||
In your review, consider the impact of your feedback on team dynamics and the development process. Aim for a | ||
balance between technical rigor and fostering a positive and collaborative team environment. | ||
Output the review in markdown format | ||
### Git Diff:` + "```\n%s\n```" |