Suggest better variable and function names for this snippet.
Rules: preserve behavior; prefer intention-revealing names; note any naming collisions.
Output a rename table: old → new → why.
SNIPPET:
<<<paste>>>
Review code and get prioritized fixesThis prompt reviews a code snippet or diff the way a principal software engineer would. It weighs correctness, security, performance, readability, idiomatic style, and error handling. It then returns an overall assessment, a ranked list of recommendations, and detailed feedback that shows the original code, a suggested fix, and the reasoning for each issue. The output is Markdown and the prompt includes a worked example.Coding agent
Conditional Logic Decision TreeMap conditional code into a decision tree with execution traces and refactoring opportunities.Coding agent
Generate an OpenAPI 3.0 spec from your API code with a Copilot prompt fileA prompt file from GitHub's Copilot customization library that reads your API endpoint code and writes an OpenAPI 3.0.3 specification in YAML. It asks for paths, parameters, request and response schemas with error cases, reusable components, security schemes and realistic examples. To use it, save the file in your repository's .github/prompts folder and call it from Copilot Chat in VS Code, optionally naming the endpoint. Prompt files are a preview feature in VS Code.Coding agent