AI Prompts for Coding Agent

A list of 59 AI prompts for coding agent.

59 prompts · 41–59

Review code and get prioritized fixes

This 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.

Run a structured code review with a Copilot prompt file

A prompt file from GitHub's Copilot customization library that reviews selected code like a senior engineer would. It checks security, performance, code quality, architecture, testing and documentation, and sorts feedback into critical issues, suggestions and good practices, with line references and example fixes.

Set service level objectives in YAML

This prompt designs SLIs and SLOs for a service based on what users experience. It adds an error budget, alerts on how fast it burns, and a policy for when the budget runs out, all in a fixed YAML layout.

Six-part standing-instructions template for an AI agent

A template from fenbs.ai for the standing instructions an agent reads on every task, such as a system prompt or AGENTS.md file. It has six parts: the role, project context, rules each with a reason, tools, the points where it must pause for you, and what the final report should contain. The example is written for a coding agent, and you replace the angle-bracket placeholders with your own details. The example rules are samples, so replace them with your own.

System prompt for a coding agent fixing a repo issue

This prompt is a system prompt for a coding agent asked to fix an issue in an open-source repository. It lays out the work order: understand the issue, explore the code, plan, make small changes, debug, test, and confirm the fix. It comes from OpenAI's GPT-4.1 prompting guide and points to a /testbed folder you should swap for your repo path.

Turn a feature description into test cases

This prompt converts a described feature, a requirement, or a story from a user into structured test cases. It covers functional, positive, negative, edge, and non-functional scenarios, and each case has an ID, preconditions, steps, an expected result, and the related requirement. Gaps in the description are listed as questions instead of being guessed.

Turn a tutorial or transcript into rules for AI coding tools

This Fabric pattern turns a video transcript or written tutorial into a short list of rules for AI coding tools such as Cursor or Claude Code. It boils the material down to as few unique rules as possible, each written as a one-sentence direct instruction with no explanation, as Markdown bullets. You get a bullet list of coding rules you can paste into your agent's rules or instructions file.

Turn an idea into a developer-ready spec by answering questions

This prompt has the AI interview you about an idea, taking a single question per turn, with each one building on your last answer. The aim is a detailed step-by-step spec you could hand to a developer. Paste your idea where the placeholder sits. The author saves the result as spec.md and then plans the build from it.

Write a pull request description from code changes

This prompt reads the output of a git diff against the main branch and writes a PR description as Markdown. The description has a summary, a list of changed files, notable code changes, the reason, the impact, a test plan, and additional notes. The tone is plain and factual.

Write a README for your project with a Copilot prompt file

A prompt file from GitHub's Copilot customization library that reviews your whole workspace and writes a README. It covers what the project does, why it is useful, how to install and use it, where to get help and who maintains it, and leaves detailed API docs, licence text and contribution rules to separate files. Save it in your repository's .github/prompts folder and run it from Copilot Chat in VS Code.

Write an on-call runbook in YAML

This prompt builds an on-call runbook outline for a service in YAML. It includes severity tiers, alerts, triage steps, mitigation steps, rollback, message templates, escalation rules, and a checklist for after the incident.

Write unit tests for a chosen function with a Copilot prompt file

A prompt file from GitHub's Copilot customization library that studies the function or method you have selected and writes focused unit tests. It covers normal behaviour, invalid and boundary inputs, error handling and side effects, asking which function and test framework to use and aiming for 5 to 8 independent tests.

YAML plan for rolling out a feature flag

This prompt plans a staged rollout of a feature behind a flag, returned as YAML. It sets user cohorts, metrics that decide whether to continue or stop, how to switch the feature off fast, and when to remove the flag.

FAQ

What is an AI prompt?

A prompt is the text you give a language model so it generates a useful response — instructions, examples, constraints, and your content. Prompt engineering is the craft of writing those instructions clearly. This directory hosts ready-to-copy prompts on the page.

How do I use a prompt from this directory?

Open a prompt, copy the text, paste it into Claude, ChatGPT, Grok, Gemini, or another chat, fill the placeholders, and send. No account is required on this site.

Prompt vs skill vs method?

A prompt is copyable chat text. A skill is an agent pack, often a SKILL.md folder. A method is one way to solve a use case on Can AI? — it might be a prompt, skill, agent, tool, or stack. The same prompt can appear here and as a method on a use case.

Are these prompts free to copy?

Yes. The prompt text is on the page. If we show a source credit, keep that credit. There is no paywall in front of the text.

How do prompts get listed?

Someone submits a prompt, or it arrives as part of a method on a use case. An editor publishes it. There is no paid placement.

What kinds of prompts are here?

Standalone prompts for writing, research, coding, ops, and other outcomes, tagged with the same sitewide categories as the rest of the directory so you can browse by area.