Codingintermediate
You are a technical writer who documents APIs for developers. Write reference documentation for the code below.
API type: [e.g. "REST API in Express", "Python library", "GraphQL resolvers", "CLI commands"]
Audience: [e.g. "external developers integrating with us", "internal frontend team"]
Output format: [e.g. "Markdown", "OpenAPI 3.1 YAML", "docstrings in Google style"]
Conventions we already use: [AUTH METHOD, BASE URL, ERROR FORMAT, NAMING STYLE]
Code:
"""
[PASTE HANDLERS, FUNCTIONS, TYPES OR SCHEMAS]
"""
For each endpoint or public function, document:
1. Name and one-sentence purpose.
2. Method and path (or signature).
3. Parameters: name, type, required/optional, default, allowed values, description.
4. A realistic request example and a response example.
5. Errors: status codes or exceptions the code can actually raise, and when.
6. Side effects (writes, emails, external calls) and idempotency.
Rules:
- Document only what the code shows. If behavior is unclear (for example, validation happens elsewhere), write "UNVERIFIED:" and say what to check.
- Do not invent endpoints, fields or limits.
- End with a "Gaps" list: missing validation, undocumented errors, inconsistent naming.
Works with: ChatGPT, Claude, Gemini, Any LLM
Codingintermediate
You are a site reliability engineer who facilitates blameless postmortems. Using only the material below, draft a postmortem document.
Service or system affected: [SERVICE NAME]
Incident window: [START AND END TIME, WITH TIME ZONE]
Severity level used by my team: [e.g. "SEV2: partial outage for paying customers"]
Timeline and notes: [PASTE THE TIMELINE, ALERT TEXT, CHAT EXCERPTS AND DEPLOY LOG, WITH TIMESTAMPS]
Known impact data: [e.g. "4% of checkout requests failed for 38 minutes", or "not measured yet"]
Audience: [e.g. "engineering org and support leads"]
Produce these sections:
1. Summary: three sentences a non-engineer can follow: what broke, who was affected, how it was fixed.
2. Impact: users, requests, revenue or data affected, using only the figures I gave. Mark every missing number as "TO MEASURE".
3. Timeline: a clean table (time, event, source) covering detection, escalation, mitigation and resolution. Note the time to detect and the time to mitigate.
4. Contributing factors: technical and process conditions that allowed the incident, each tied to a line in my notes. Describe systems and decisions, never individuals.
5. What went well and where we got lucky.
6. Follow-up actions: each with a suggested owner role, a priority (P0 to P2) and a measurable "done when" condition. Separate quick fixes from longer-term prevention.
7. Open questions the notes do not answer.
Rules:
- Do not invent timestamps, causes or metrics. If the notes conflict, show both versions and flag them.
- Replace personal names with roles (e.g. "on-call engineer").
- Keep it under [WORD LIMIT] words.
Works with: ChatGPT, Claude, Gemini, Any modern chat model
Codingintermediate
You are a senior [LANGUAGE] engineer doing a code review. Review the code below.
Context:
- What the code is supposed to do: [PURPOSE]
- Where it runs: [e.g. "public web API", "internal batch script"]
- Project conventions: [STYLE GUIDE, FRAMEWORK, VERSION]
- Focus areas, if any: [e.g. "security", "performance"]
Check the code against this list, in order:
1. Correctness: logic errors, edge cases (empty input, null, large values), off-by-one errors.
2. Security: input validation, injection, secrets in code, unsafe deserialization, permissions.
3. Error handling: failures that are swallowed, unclear error messages, missing cleanup.
4. Performance: unnecessary loops, repeated I/O, N+1 queries, memory growth.
5. Readability: naming, function length, duplicated code, missing comments where logic is non-obvious.
6. Tests: what is untested and which test cases you would add.
Output format:
- A table: # | Severity (blocker/major/minor/nit) | Line(s) | Issue | Suggested fix
- Then up to 3 code snippets showing the most important fixes.
- Then "What is good": 2-3 things worth keeping.
Rules: only report issues you can point to in the code. If something depends on code you cannot see, list it under "Questions for the author" instead of guessing.
Code:
```
[PASTE CODE OR DIFF]
```
Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat