A prompt library worth reusing

20 prompts for common engineering and writing tasks - each one a copy-ready template, not just a one-liner, with notes on when to use it and why it works. Model-agnostic: nothing here depends on quirks of one specific model.

Coding

API design review

Review a proposed API (REST, RPC, or library interface) for consistency, evolvability, and the mistakes that are expensive to fix after ship.

api-designarchitecturereview
Coding

Code review

A structured review of a diff or file that separates correctness bugs from style nits, instead of one flat list.

reviewqualitydiffs
Writing

Commit message from a diff

Write a commit message that explains why a change was made, not just a restatement of the diff.

gitcommitswriting
Debugging

Explain a stack trace

Turn an unfamiliar error and stack trace into a plain explanation of what broke and where to start looking.

debuggingerrorstroubleshooting
Learning

Explain like I'm new to this

Get a concept explained at the right depth for where you actually are, with the gaps in your understanding checked rather than assumed.

learningexplainingonboarding
Writing

Incident post-mortem draft

Turn a timeline of raw notes into a blameless post-mortem draft that focuses on systemic fixes, not who to blame.

incidentspost-mortemswriting
Learning

Learning a new codebase

Turn an unfamiliar codebase (or a big chunk of one) into a mental map you can navigate, instead of reading file by file with no structure.

onboardingcodebaseslearning
Career

Mock behavioral interview

Practice behavioral/'tell me about a time' interview questions with real follow-up pressure, not just a list of questions to prep answers for.

interview-prepbehavioralpractice
Writing

PR description

Turn a diff and some context into a PR description reviewers can actually use to review faster.

gitpull-requestswriting
Data

RAG answer with citations

A grounded-answer prompt template for a retrieval-augmented system, so answers cite their sources and admit gaps instead of blending in unsourced claims.

ragllmretrieval
Coding

Refactoring plan

Break a risky refactor into small, independently-shippable steps instead of one big rewrite.

refactoringplanningarchitecture
Coding

Regex from examples

Build a regex from concrete match/non-match examples so the pattern is tested against your real edge cases, not just the obvious case.

regexparsing
Career

Resume bullet from a real achievement

Turn a rough description of something you actually did into a sharp resume bullet, without inventing numbers you don't have.

resumecareerwriting
Data

SQL from a schema

Get a correct query against your actual schema, with the reasoning shown, instead of a plausible-looking guess.

sqldatabasesqueries
Data

Structured JSON extraction

Extract structured data from messy text into a schema you define, with missing fields left null instead of guessed.

extractionjsonstructured-output
Writing

Summarising a long document

A summary structured for a specific reader and decision, instead of a generic shorter version of the whole document.

summarizationwritingreading
Career

System design interview practice

Practice a system design interview with a model acting as interviewer, pushing back the way a real one would instead of just agreeing.

interview-prepsystem-designpractice
Coding

Threat-model a feature

A lightweight STRIDE-style pass over a new feature before it ships, catching the security questions that are cheap to ask now and expensive later.

securitythreat-modelingdesign
Writing

Writing a runbook

Turn tribal knowledge about handling an operational task into a runbook someone unfamiliar with it could actually follow at 3am.

runbooksoperationsdocumentation
Coding

Writing tests for a function

Generate a test suite that covers edge cases you'd likely forget, not just the happy path.

testingqualitytdd