Inprompt2 · Coding templates

Coding prompts, ready to optimize.

5 ready-to-rewrite coding starters — pick one, click Use this template, ship the graded version in seconds. One of 5 categories in the library.

Coding prompt templates

Coding
code review
Review a PR diff for correctness
Review this PR diff for correctness, edge cases, and missing tests. Focus on the changes in <file(s)>.
Coding
debugging
Explain an error and propose a fix
Explain this error stack trace in plain language, name the most likely root cause, and propose a concrete fix.
Coding
testing
Write a unit test for a function
Write a unit test for <function>: cover the happy path, the obvious edge cases, and the failure modes that matter.
Coding
refactor
Refactor a JS file to TypeScript
Refactor this JavaScript module to TypeScript: tighten the types, preserve behavior, and keep the public API compatible.
Coding
scripting
Skeleton for a small CLI script
Write a small CLI script in Python that <task>. Include --help, clear input/output flags, and clean error handling.

Don’t see your use case? Optimize a fresh prompt — the library is yours to extend.