Ranked findings from this diff
Review this diff for #language#. Output ranked findings only: severity, file, what’s wrong, why it matters, and a concrete fix. Categories: correctness, edge cases, API shape, tes…
47 community prompts tagged “code” for ChatGPT, Claude, Gemini, and other assistants. Debugging, refactors, reviews, and implementation prompts for software work. Copy any template or import it into Open Prompt Manager.
47 prompts
Review this diff for #language#. Output ranked findings only: severity, file, what’s wrong, why it matters, and a concrete fix. Categories: correctness, edge cases, API shape, tes…
From this diff, list the tests that should exist and do not. For each: name, setup, assert, and the failure it would catch. Skip tests that only restyle. Language: #language#. Dif…
You are reviewing a pull request. Review the following #language# code for correctness, readability, maintainability, edge cases, and security concerns. Code: #code# Output: 1. Su…
Triage this bug report. Bug: #notes# Output: 1. Likely severity and why 2. Expected behavior 3. Actual behavior 4. Reproduction steps 5. Suspected root causes 6. Logs or data stil…
Generate debugging hypotheses for this issue. System or feature: #topic# Symptoms: #notes# Output a ranked list of hypotheses. For each hypothesis include: - Why it fits - What wo…
Review this API design. API description: #text# Consumers: #audience#. Evaluate: 1. Endpoint or method clarity 2. Request and response shape 3. Error handling 4. Versioning and co…
Create a safe refactor plan for this code or module. Current state: #notes# Goal: #goal# Constraints: #constraints# Output: 1. Refactor strategy 2. Step-by-step plan 3. Tests to a…
Generate test cases for #feature#. Requirements: #notes# Output: 1. Happy-path cases 2. Edge cases 3. Error cases 4. Regression cases 5. Suggested test data Keep each test case sp…
Review this feature for security risks. Feature: #notes# Output: 1. Assets and trust boundaries 2. Authentication and authorization risks 3. Input validation risks 4. Data exposur…
Write developer documentation for this #language# function or module. Code: #code# Output: 1. Purpose 2. Parameters or inputs 3. Return value or outputs 4. Side effects 5. Error b…
Build a regular expression for this matching task. Task: #goal# Examples that should match: #notes# Examples that should not match: #constraints# Output: 1. Regex 2. Explanation 3…
Review this SQL query. Query: #code# Database context: #notes# Check correctness, performance, indexing assumptions, null handling, and security. Output: 1. Summary 2. Problems fo…
Explain this error log. Log: #text# Context: #notes# Output: 1. Plain-English explanation 2. Most likely cause 3. What to check first 4. Possible fixes 5. When to escalate
Write a pull request description. Changes: #notes# Audience: reviewers. Output: 1. Summary 2. Motivation 3. Main changes 4. Testing performed 5. Risks or migration notes 6. Screen…
Draft an incident postmortem from these notes. Incident notes: #notes# Output: 1. Summary 2. Impact 3. Timeline 4. Root cause 5. Detection 6. Resolution 7. What went well 8. What…
Analyze architecture options for #system_or_feature#. Context: #notes# Options: #constraints# Output: 1. Evaluation criteria 2. Option comparison 3. Recommended option 4. Risks an…
Create a migration checklist for #migration#. Context: #notes# Constraints: #constraints# Output: 1. Preparation 2. Data or compatibility checks 3. Rollout steps 4. Monitoring 5.…
You are writing release-facing changelog notes. Convert the raw commit list into a clear changelog grouped by user impact. Input: Commit messages: #notes# Audience: #audience# Con…
You are planning a controlled feature rollout. Design a feature-flag rollout plan with validation gates and rollback conditions. Input: Feature: #feature# Risk level: #risks# User…
You are a TypeScript architect. Review the described data shape and propose type definitions that are safe, readable, and maintainable. Input: Data shape or API response: #text# U…
You review API contracts. Evaluate the API error format for consistency, debuggability, user safety, and client ergonomics. Input: Error contract: #text# Client context: #notes# C…
You are a database performance reviewer. Suggest indexes and query changes based on the schema and access patterns. Input: Schema: #schema# Queries: #queries# Constraints: - Do no…
You review production data migrations. Identify risks in the migration plan and suggest safer rollout steps. Input: Migration plan: #text# Data volume or constraints: #constraints…
You are diagnosing a CI failure. Analyze the log and propose the most likely causes with next debugging steps. Input: CI log: #logs# Recent changes: #notes# Constraints: - Focus o…
You design end-to-end tests. Create realistic E2E test scenarios for the user flow. Input: User flow: #text# Risk areas: #risks# Constraints: - Cover happy path, edge cases, permi…
You are designing observability for a service. Propose logs, metrics, traces, and alerts for the described system or feature. Input: System description: #text# Failure modes: #ris…
You analyze operational logs. Extract repeated patterns, likely root causes, and next actions from the logs. Input: Logs: #logs# Constraints: - Cluster similar errors. - Quote onl…
You are investigating performance problems. Analyze the code, logs, or description and identify likely bottlenecks. Input: Evidence: #text# Performance goal: #goal# Constraints: -…
You plan safe dependency upgrades. Create an upgrade plan for the dependency or framework change. Input: Dependency: #dependency# Current version context: #notes# Constraints: #co…
You clean up stale feature flags. Plan removal of feature flags after rollout is complete. Input: Flags: #text# Code areas: #notes# Constraints: - Avoid removing active safeguards…
You review asynchronous job design. Evaluate the background job design for reliability, retries, idempotency, and observability. Input: Job description: #text# Failure modes: #ris…
You are threat-modeling an authentication flow. Review the flow for security, privacy, abuse, and usability risks. Input: Flow description: #text# Assets to protect: #assets# Cons…
You review data models. Assess whether the model should be normalized, denormalized, or adjusted for the described use cases. Input: Data model: #schema# Access patterns: #queries…
You investigate cloud cost spikes. Analyze the usage notes and propose likely cost drivers plus a verification plan. Input: Usage notes: #notes# Billing symptoms: #text# Constrain…
You review browser extension manifests. Review the manifest for permission minimization, compatibility, and store-review risks. Input: Manifest or permission list: #code# Extensio…
You audit mobile privacy declarations. Compare app behavior notes against the privacy manifest or disclosure draft. Input: App behavior: #notes# Manifest or disclosure: #text# Con…
You review SwiftUI view state. Analyze the SwiftUI code for state ownership, redraw issues, data flow, and maintainability. Input: SwiftUI code: #code# Bug or concern: #notes# Con…
You plan SQL schema changes. Create a safe schema migration plan from the current schema to the desired schema. Input: Current schema: #schema# Desired change: #goal# Constraints:…
You design reliable webhook integrations. Review or create a checklist for receiving and processing webhooks safely. Input: Webhook context: #text# Failure modes: #risks# Constrai…
You design resilient API clients. Propose a rate-limit handling strategy for the client or integration. Input: API usage: #notes# Observed errors: #logs# Constraints: - Include ba…
You design caching behavior. Create a caching and invalidation plan for the feature or endpoint. Input: Feature or endpoint: #feature# Freshness needs: #constraints# Constraints:…
You tune operational alerts. Review alert rules or incident history and suggest how to reduce noise while preserving real coverage. Input: Alert rules or incidents: #text# Service…
You help engineers onboard to unfamiliar codebases. Turn the repository notes into a guided onboarding map. Input: Repository notes: #notes# Target task: #goal# Constraints: - Foc…
You explain command-line commands safely. Explain what the command does, which parts are risky, and how to run it more safely. Input: Command: #code# Context: #notes# Constraints:…
You design API pagination. Recommend a pagination approach for the endpoint and client use case. Input: Endpoint use case: #goal# Data characteristics: #notes# Constraints: - Comp…
You improve error message UX. Rewrite technical errors into useful user-facing messages and developer diagnostics. Input: Errors: #text# Audience: #audience# Constraints: - Do not…
You prepare rollback playbooks. Create a rollback playbook for a risky release. Input: Release notes: #notes# Known risks: #risks# Constraints: - Include decision triggers. - Assi…