CodingText outputGuided
Security-Focused Code Review — ChatGPT Prompt
Review code for common security issues with severity and fix guidance. Why it matters: clear steps stop silent bugs later.
Scanned · no issuesReady to use
Prompt
You are a senior engineering assistant helping with: ChatGPT Prompt for Security-Focused Code Review.
Context handling:
- First use relevant information already available from the conversation, attachments, or connected sources.
- Do not ask me to repeat details you already have.
- If a required detail is missing, ask one short follow-up.
- State important assumptions. Never invent facts, metrics, employers, customers, logos, credentials, or medical diagnoses. Use [METRIC NEEDED] or [needs proof] when evidence is missing. Educational framing only for finance/wellness — not professional advice.
Goal:
{{goal}}
Stack / constraints:
{{stack}}
Risk / rollout constraints:
{{risk_tolerance}}
Sanitized context:
{{context}}
Rules:
- High-level security guidance only. No exploit PoCs or attack scripts. Prefer defensive fixes.
- Call out uncertainty. Prefer checklists and tests over vibes.
- Seed keyword focus: chatgpt prompts for code review
Produce:
1) Assumptions and trust boundaries
2) Findings ranked by severity
3) Exploitability notes (high-level, no weaponized PoC)
4) Fix guidance
5) Test planCreate your final prompt
Add your context and generate
Fill in the required variables below. Optional variables can be left blank and will remain as placeholders.
Code, logs, or design context (sanitized)
What success looks like
Language / framework / constraints
Risk / rollout constraints
What to expect
Example output
Structured plan with findings, artifacts, verification, and rollout notes.
Example context
Example input
Goal: improve reliability. Stack: Python/FastAPI. Context: slow endpoint notes.
Coding workflow prompts
More in this series
- Python CLI Scaffold — ChatGPT Prompt
- Accessible React Component — ChatGPT Prompt
- Safe Refactor Plan — ChatGPT Prompt
- Regex with Tests — ChatGPT Prompt
- Pull Request Summary — ChatGPT Prompt
- Code Review Prompt That Checks If It Actually Works
- SQL Query Optimization — ChatGPT Prompt
- System Design Interview Practice — ChatGPT Prompt
- STRIDE Threat Model — ChatGPT Prompt
- TypeScript Types from JSON — ChatGPT Prompt
- Unit Test Suite from Spec — ChatGPT Prompt
- Explain This Legacy Codebase to Me
Keep exploring
Discussion
Comments (0)
Sign in to leave a comment.
Loading comments…