AI Coding Prompt: The Best Template for ChatGPT & Claude
Code generation, Feature implementation and Code cefactoring
Implement [specific functionality] in [language/framework].
Requirements:
1. [Requirement 1]
2. [Requirement 2]
3. [Requirement 3]
Please:
- Modify only what is necessary
- Preserve existing code/comments unless changes are required
- Handle errors and edge cases properly
- Follow best practices for [language/framework]
- Keep performance and maintainability in mind
- Add clear comments where useful
- Mention any important assumptions before the code
Return:
1. Brief approach
2. Final code
3. Important notes (if any)
