This prompt

Extract Functions / Modules
Refactor this code by extracting clearer functions or modules:
[Paste code]
Focus on single responsibility and readability.

Related prompt

Complete this partially written code:
[Paste incomplete code]

Keep the existing structure and style.
Only add what is necessary to make it work correctly.

All Coding prompts

Bug Diagnosis Prompt

Give the model the error, the code and what you expected. It ranks likely causes by evidence, tells you how to confirm each, and proposes a minimal fix.

View prompt →

Security Review

Review this code for common security issues. Focus on input validation, injection risks, secrets handling and unsafe defaults.

View prompt →

Unit Test Writing Prompt

Produces a case inventory first, then readable tests that check behavior at the boundaries, with suspected bugs flagged instead of encoded as passing.

View prompt →