mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-03 09:54:58 +01:00
Adding code monkey prompts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
You need to implement the current changes into a codebase:
|
||||
-- INSTRUCTIONS --
|
||||
{{ instructions }}
|
||||
-- END OF INSTRUCTIONS --
|
||||
|
||||
Here is the current folder tree:
|
||||
```
|
||||
{{ directory_tree }}
|
||||
```
|
||||
|
||||
First, you need to break down these instructions into actionable steps that can be made. There are 2 types of steps. If a step requires a change in a file content, that step is of a type `code_change` and if a change requires a command to be run (eg. to create a file or a folder), that step is of a type `run_command`.
|
||||
For a step to be actionable, it cannot have a vague description but a clear explanation of what needs to be done to finish that step. Here are a couple of examples of good and bad steps:
|
||||
BAD STEP: `Set up mongo database`
|
||||
GOOD STEP: `Inside db.js, add the following code: {code that needs to be added to the file}`
|
||||
|
||||
When thinking about steps, first think about what files need to changed to finish this task. When you determine what changes need to be done, put all changes for each file in a single step of type `code_change`.
|
||||
|
||||
So, each step of type `code_change` can contain ALL changes that need to be made to a single file. If changes need to be made to multiple different files, they need to be split across multiple steps where each step contains all changes that need ot be made to a single file.
|
||||
|
||||
Now, think step by step and return a list of steps that need to be run.
|
||||
@@ -0,0 +1,16 @@
|
||||
You need to implement the current changes into a codebase:
|
||||
-- INSTRUCTIONS --
|
||||
{{ instructions }}
|
||||
-- END OF INSTRUCTIONS --
|
||||
|
||||
Here is the current folder tree:
|
||||
```
|
||||
{{ directory_tree }}
|
||||
```
|
||||
|
||||
You are currently working on this step from the instructions above:
|
||||
```
|
||||
{{ step_description }}
|
||||
```
|
||||
|
||||
I will give you each file that needs to be changed and you will implement changes from the instructions. To do this, you will need to see the currently implemented files so first, filter the files outlined above that are relevant for the instructions. Then, tell me files that you need to see so that you can make appropriate changes to the code. If no files are needed (eg. if you need to create a file), just return an empty array.
|
||||
Reference in New Issue
Block a user