Prompt Details
Model
Chat - (gpt-5.5)
Token size
618
Example input
[PRIMARY_ROLE]: Senior Developer
[DEFAULT_STACK]: C++, OpenGL, ImGui
[YOUR_TASK]: double calculate_rate(double price, int volume) { return price / volume; } /bugs
Example output
File | Problem | Why it's a bug | Fix
---- | ------- | -------------- | ---
unknown | Division by zero | `volume == 0` causes undefined behavior / returns `inf` depending on platform and compiler settings | Validate input before division
unknown | Invalid negative volume | Negative volume may be logically invalid depending on domain and produces misleading rates | Reject or explicitly handle negative values
unknown | Missing input contract | Function does not document whether `volume` can be zero or negative | Add validation and document preconditions
unknown | Potential NaN propagation | If `price` is NaN or ±Inf, result may silently propagate invalid values | Validate inputs if required by business rules
Minimal patch:
```cpp
#include <stdexcept>
double calculate_rate(double price, int volume) {
if (volume <= 0) {
throw std::invalid_argument("volume must be greater than 0");
}
return price / static_cast<double>(volume);
}
By purchasing this prompt, you agree to our terms of service
GPT-5.5
Turn any LLM into an elite Senior Developer.
This master system prompt packs 20 powerful developer workflows into single slash-commands (/plan, /bugs, /refactor, etc.).
Perfect for vibe-coding. Get production-ready code with zero AI filler. Covers onboarding, safe features, performance, and code reviews.
...more
Added 6 days ago
