AI agent prompts

74 prompts

Prompts for coding agents and agent workflows, from Claude Code, Codex and Cursor to multi-agent pipelines. They read like task briefs: the goal, the scope, the tools allowed and the checks that prove the work is done.

11 results

  • Unit Test Plan and Test Code for an Existing Function

    Builds a behavior-based test matrix for a function or module and then generates test code in your framework. Covers edge cases, failures, and mocking boundaries, with coverage gaps stated honestly.

  • Root Cause Analysis from Stack Trace and Logs

    Turns an error report, stack trace, and logs into ranked root-cause hypotheses. Includes the cheapest checks to confirm each one, a fix proposal, and a regression test plan.

  • Pull Request Review with Merge Recommendation

    Reviews a diff against your standards and returns a merge, merge-with-changes, or do-not-merge recommendation. Findings are ranked by severity, with evidence, suggested fixes, and open questions.

  • Debug an Error From the Message and the Code Around It

    Finds the most likely cause of an error from the message and the relevant code, ranks other possible causes, and gives the smallest fix plus a way to prove it worked.

  • Edge-Case Test Suite for One Function in Your Existing Test Framework

    Writes tests for a single function that cover normal inputs, boundaries, bad input and error paths, in the test framework your project already uses.

  • Explain a Codebase Folder to a New Developer on Their First Day

    Produces an onboarding guide for one folder of a codebase: what it does, how data moves through it, the files to read first and the traps a new developer should avoid.

  • Plain-English Question to a Correct SQL Query for Your Schema

    Writes a SQL query from a plain-English question using your real table definitions, explains each part, checks it for common mistakes and suggests indexes if it will be slow.

  • Regex Builder With Match and No-Match Test Cases

    Builds a regular expression from a plain-English description and example strings, explains each part, and proves it against strings that should and should not match.

  • Characterization Tests Before a Refactor

    Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.

  • Failing Test First Bug Fix

    Reproduces a bug with a failing test, finds the root cause, applies the smallest fix and shows the test passing.

  • Codebase Tour for a Specific Task

    Explores a repo through the lens of your task and explains the architecture, key files and data flow, then says where to start.

About AI agent prompts

How is an agent prompt different from a chat prompt?

An agent acts: it reads files, runs commands and edits code. So the prompt sets limits and a way to verify the result, not only the answer you want.

Which agents do these prompts work with?

Coding agents such as Claude Code, Codex, Cursor and Copilot's agent mode, plus prompts for designing your own multi-agent pipelines. Each prompt lists its tools.

Should I review what the agent does?

Yes. Run agents in a branch or a sandbox, read the diff and the commands they ran, and keep approval on for anything that deletes data or deploys.