Fix a bug with root-cause analysis
Makes the agent find the cause before patching symptoms.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Library / Coding & Technology / Performance
Measure first, then optimise the real bottleneck.
[Page/endpoint] is slow (~[time]). Investigate: 1. Measure: list how you will measure (query log, profiler, timing logs) and do it. 2. Identify the top bottleneck with evidence (queries, payload size, external calls, rendering). 3. Propose up to 3 fixes ranked by impact/effort. 4. Implement the top fix and show before/after measurements. No speculative changes without measurements.
Copies your prompt and opens the official site in a new tab. You may need to paste it yourself (Ctrl/⌘ + V). Nothing is sent to the AI by us.
Replace [bracketed] parts with your own details before sending. Want it tailored? Build a custom coding assistant prompt.
A typical one-line request compared with this prompt. We only show sample responses where we've written an illustration.
Prompt
performance
1 words · no role, context, format or constraints
Prompt
[Page/endpoint] is slow (~[time]). Investigate: 1. Measure: list how you will measure (query log, profiler, timing logs) and do it. 2. Identify the top bottleneck with evidence (queries, payload size, external calls, rendering). 3. Propose up to 3 fixes ranked by impact/effort. 4. Implement the top fix and show before/after measurements. No speculative changes without measurements.
56 words · generated instantly from templates, no AI called
What we added
Makes the agent find the cause before patching symptoms.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Behaviour-preserving refactor with tests as a safety net.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Covers happy path, edge cases and failures without testing implementation details.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1