All Prompts
Coding
advanced
Claude

Architecture Decision Record

Write a proper ADR for a technical decision so the reasoning survives team turnover.

Intended Use Case

Write a proper ADR for a technical decision so the reasoning survives team turnover.

prompt.txt
Decision: {{DECISION}}
Write an Architecture Decision Record:
1. **Context** — the situation and constraints forcing the decision.
2. **Options** — 3 alternatives, with pros/cons each.
3. **Decision** — what we chose, in one sentence.
4. **Rationale** — why, tied to the constraints.
5. **Consequences** — positive, negative, and neutral.
6. **Revisit trigger** — the one signal that should make us reopen this ADR.
Keep it under 400 words.

Variables to Replace

{{DECISION}}

Example Usage

Document the decision to move from a monolith to a modular monolith.

#architecture
#adr
#documentation

More Coding Prompts

Optimize a slow query and explain each change in terms a DBA would respect.

Slow query:
{{QUERY}}
Table sizes & indexes: {{SCHEMA}}
1. Identify the likely bottlenecks (full scans, N+1, non-sargable predicates, etc.).
2. Rewrite the query for performance.
3. Suggest indexes (with the exact column order) and explain why that order.
4. Note any query-shape changes that alter results.
5. If the query can't be fixed in SQL alone, say so and suggest where the logic should move.
Variables:{{QUERY}}{{SCHEMA}}
Coding
advanced
Claude
Details

Build a regex from plain English and get a line-by-line explanation.

I need a regex that matches: {{DESCRIPTION}}
Should match: {{SHOULD_MATCH}}
Should NOT match: {{SHOULD_NOT_MATCH}}
1. Write the regex.
2. Explain each token on its own line.
3. Provide 3 match examples and 3 non-match examples.
4. Note any edge cases the regex doesn't handle and whether the language's regex flavor matters.
Variables:{{DESCRIPTION}}{{SHOULD_MATCH}}{{SHOULD_NOT_MATCH}}
Coding
intermediate
ChatGPT
Details

Onboard a new engineer to a codebase's architecture and conventions.

Codebase summary (key files, entry points, main modules):
{{SUMMARY}}
Write an onboarding guide for a new developer joining tomorrow:
1. **Mental model** — the 3 layers/parts and how they talk.
2. **Where to start reading** — the 3 files to read first and why.
3. **The conventions** that aren't written anywhere (the 'tribal knowledge').
4. **The trap doors** — 2 places where it's easy to break something without realizing.
5. **First task** — a good first PR that touches one layer safely.
Keep it practical, not a directory listing.
Variables:{{SUMMARY}}
Coding
intermediate
Claude
Details
base44
Edit with Base44