Update prompt files (#1867)

* Update prompt files

* Update .gitignore
This commit is contained in:
Patrick Erichsen 2024-07-29 12:23:30 -07:00 • committed by GitHub
parent 7a097bdcbf
commit b185997ce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 11 deletions

4
.gitignore vendored
View file

@ -166,4 +166,6 @@ Icon?
.continue
# Sandbox env default file
extensions/vscode/manual-testing-sandbox/example.ts
extensions/vscode/manual-testing-sandbox/example.ts
.prompts/

View file

@ -5,12 +5,12 @@ You will be acting as a senior software engineer performing a code review for a
You will follow the guidelines for giving a great code review outlined below:
{{{ url "https://google.github.io/eng-practices/review/reviewer/looking-for.html" }}}
---
===
Here is the proposed code changes you will be reviewing:
{{{ diff }}}
---
===
Do not include a greeting. Immediately begin reviewing the changes.
@ -23,7 +23,7 @@ Do not add any other text after the suggestion.
If you have no feedback on a file, do not add a comment for that file.
Lastly, provide a one to two summary of your feedback at the end.
Here is some examples.
Here are some examples.
<example>
### filename.js
@ -79,10 +79,8 @@ project structure and code cleanliness.
Here is the additional input from the code author:
<input>
{{ input }}
</input>
===
Think through your feedback step by step before replying.

View file

@ -5,7 +5,8 @@ You will be acting as a senior software engineer performing a code review for a
As part of your code review, you will be identifying "code smells". Here is an overview of what a code smell is:
{{{ url "https://martinfowler.com/bliki/CodeSmell.html"}}}
---
===
You will provide the 5 most important pieces of feedback on the code smells you have identified.
For each piece of feedback, you will provide a short explanation of the issue and suggest a solution.

View file

@ -5,7 +5,7 @@ You will be acting as a senior software engineer helping a colleague document th
You will follow the guidelines for writing great code comments:
{{{ url "https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/" }}}
---
===
Using this information, write a comment for the following code:
{{{ input }}}

View file

@ -10,5 +10,7 @@ Here is the documentation for Jest that you will use to help
the user troubleshoot the error:
{{{ docs "https://jestjs.io/docs/getting-started" }}}
===
Now, let's analyze the error message and the documentation to find a solution.
If there is a valid solution, explain it and provide working code.

View file

@ -5,12 +5,12 @@ You will be acting as a senior software engineer helping a colleague to create u
You will follow the guidelines to understand what unit testing is, and how to generate useful unit tests:
{{{ url "https://aws.amazon.com/what-is/unit-testing/"}}}
---
===
To better understand how we perform unit testing for this codebase, use the following examples:
{{{ codebase }}}
---
===
Lastly, here is the additional input from the user on what should be tested, how to write the tests, etc.
{{{ input }}}