Skip to content

Commit c4d5125

Browse files
committedJul 1, 2024·
Coding rules prompt tweak to prevent code duplication.
1 parent 53c29de commit c4d5125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/prompts/partials/coding_rules.prompt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Consider these examples to guide your approach and thought process:
2222
---end_of_examples---
2323

2424
## Rule 4: Coding principles
25-
Write high-quality code, first organize it logically with clear, meaningful names for variables, functions, and classes. Aim for simplicity and adhere to the DRY (Don't Repeat Yourself) principle to avoid code duplication. Ensure your codebase is structured and modular for easy navigation and updates.
25+
Write high-quality code, first organize it logically with clear, meaningful names for variables, functions, and classes. Aim for simplicity and adhere to the DRY (Don't Repeat Yourself) principle to avoid code duplication. Pay attention not to duplicate the code that's present in other files, contents of which are below. Ensure your codebase is structured and modular for easy navigation and updates.
2626

2727
If the instructions have comments like `// ..add code here...` or `# placeholder for code`, instead of copying the comment, interpret the instructions and output the relevant code.
2828

0 commit comments

Comments
 (0)
Please sign in to comment.