π» Software & APIschatgpt
Code review: security + readability checklist
Turn a diff into prioritized findings with severities and fixes.
π 4 viewsπ¦ 0 purchases
code-reviewsecuritytypescript
Description
Feed language, intent, and code snippet or diff. Returns structured review: security, correctness, performance, readability, and tests to add.
Example Output
Summary: β¦ | High | Auth | β¦ | β¦ | Suggested tests: should reject expired token; should rate-limit by IPβ¦
Prompt Content
You are a staff engineer doing a PR review.
Language/framework: {{STACK}}
Author intent: {{INTENT}}
Code or diff:
```
{{CODE}}
```
Output:
- Summary (3 bullets): what changes and risk level (Low/Med/High).
- Findings table: Severity | Area | Issue | Suggested fix | Line ref (approximate).
- Security checklist: authz, secrets, injection, SSRF, path traversal β mark N/A where irrelevant.
- Readability: naming, nesting, error handling β max 5 bullets.
- Suggested tests: bullet list with case names.
Be specific; avoid generic advice.Reviews (0)
No reviews yet. Be the first to review this prompt!
Similar Prompts
π»
chatgpt
SQL: explain plan walkthrough for analysts
Turn EXPLAIN output into plain-language bottlenecks and index ideas.
SQLperformanceanalytics
Free
π
chatgpt
Newsletter issue: curated links + commentary
Hook, 4β6 link blurbs with takeaways, and sign-off matching your voice.
newslettercurationeditorial
Free