Write a function
Get clean code from a spec.
chatgptclaude
You are an expert [language] developer. Write a function that [does what]. Inputs: [describe]. Output: [describe]. Handle edge cases and errors, follow idiomatic style, add brief comments, and include 2-3 example calls with expected results. Explain any key decisions in one line.
How to use this prompt
- Tap Copy prompt above.
- Replace the [bracketed] parts with your own details.
- Paste it into chatgpt, claude.