Prompt library

336 prompts · last added

25 results for “legacy-code” · page 1 of 2

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

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

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

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

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

  • Write a SKILL.md From a Workflow You Keep Repeating

    Interviews you about a task you do over and over, then writes a complete, save-ready SKILL.md with a trigger description, steps, output format and stop conditions.

  • Cursor .mdc Rules to Portable AGENTS.md Converter

    Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.

  • Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps

    Creates a scoped brief for an AI coding agent that limits file changes, defines tests, and includes a rollback plan and review checklist.

  • Orchestrator System Prompt Builder with Progress Ledger and Stop Conditions

    Writes a ready-to-deploy orchestrator system prompt that delegates to your workers, tracks progress in a ledger, merges results and stops on defined conditions.

  • Parallel Git Worktree Task Split with Interface Contracts and Merge Order

    Turns a pasted feature spec into independent coding-agent tasks with file ownership, interface contracts, a merge order and a done command for each task.

  • Dependency Graph Planner for a Multi-Agent Software Release Workflow

    Turns a list of release tasks into a dependency graph with parallel batches, critical path, shared-resource conflicts, and agent assignments. Supports the decision on what to run now versus wait on.

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

  • Conventional Commit and PR Description from a Diff and Ticket

    Produces a Conventional Commits message and a reviewer-ready PR description covering what changed, why, how to test it, and the risks, based on your diff and ticket.

  • Research, Writer and Editor Agent Pipeline With a Handoff Schema

    Designs a three-agent content pipeline where a researcher, writer and editor pass structured handoffs, with the exact fields each agent receives and returns and checks between stages.

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

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

  • Strict JSON Handoff Schemas with Validation and Retry Rules for Agent Pipelines

    Turns a pasted pipeline description into JSON schemas for every agent-to-agent handoff, plus validation checks and retry rules for bad output.

  • Agent Run Pre-Mortem and Self-Correction Loop Designer

    Designs verification checks, error handling, and a self-correction loop for an agent task before it runs, based on likely failure modes.

  • Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build It

    Turns an agent idea into a build-ready design: the job, the tools with their inputs and permissions, guardrails, failure handling and a set of evaluation cases to test it.

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

  • Rewrite a Vague Issue into a Copilot Coding Agent-Ready Issue

    Turns a vague GitHub issue into a self-contained task with context, testable acceptance criteria, files to touch, and tests to add, so the Copilot coding agent can finish it.

  • Agent Tool Names, Descriptions and JSON Schemas from API Docs

    Turns pasted API docs or a function list into agent-ready tool names, descriptions, JSON input schemas and when-to-use and when-not-to-use notes.

  • Subagent Roster Designer for Your Coding Project

    Produces a 3-5 subagent roster with system prompts, minimal tool permissions, model tiers and explicit handoff rules for your project.

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

Guide

Using the library

  1. Narrow the list by type, tool or topic, or search for the task you have.
  2. Copy a prompt from its card, or open it to read it in full and fill in the blanks first.
  3. Paste it into your AI tool and check the answer against the format the prompt asks for.

Nothing that fits? Write a prompt with AI.

What is in the prompt library?

336 copy-ready prompts for productivity, writing, business and coding and more. Each one sets the role, the steps and the output format, and marks the parts you fill in with curly brackets.

Which AI tools are the prompts written for?

Most are written for ChatGPT (285), Gemini (260), Claude (217) and Midjourney (42); the number is how many prompts list that tool. Each prompt page lists its tools, and most text prompts also work in any capable chat model.

What are the highlighted blanks?

Words in curly brackets, such as {audience}, are the parts you replace with your own details. Choose “Ready to use (no blanks)” in the filters to see prompts you can paste as they are.

How are the prompts sorted?

By how often they are copied, unless you choose another order. Newest shows the latest additions first. Trending ranks prompts by copies, opens and saves over the last two weeks.

Do I need an account?

No. Every prompt is free to copy or open in your AI tool. A free account lets you save prompts to your vault.

Can I write my own prompt?

Yes. Write with AI asks what you need, builds a short form for it, and writes the prompt as you fill it in.