Coding & Development
Debugging, refactoring, docs, test scaffolding.
Prompts that turn an LLM into a useful pair programmer. Refactor patterns, bug isolation playbooks, code review templates, regex generation, SQL query design.
Binary-search a bug across recent changes
When a bug appeared 'sometime in the last week' and you have N suspects, binary search beats reading every diff. This prompt structures the search.
Extract a function with explicit boundary contract
Most 'refactor this' prompts produce noisy diffs. This one extracts one function with a written contract you can sanity-check before applying.
Translate a fuzzy business question into a runnable SQL query
Business stakeholders rarely ask precise questions. This prompt makes the model state its assumptions before writing the query, which catches misunderstandings cheaply.
Generate a regex with a built-in test matrix
Regex without test cases is a bug waiting to land. This prompt forces the model to produce a test matrix alongside the expression.
Run a PR through a 7-axis code review checklist
Code reviews drift when reviewers each check different things. This prompt produces a uniform review across correctness, security, performance, readability, testability, observability, and rollback.