Prompt library

341 prompts · last added

79 results for “fan-out-fan-in” · page 1 of 4

  • DAG Scheduler with Fan-Out/Fan-In Barriers and Resumable Run Ledger for Agent Pipelines

    Guides Claude Code to build or refactor a dependency-aware DAG scheduler for agent phases, with cycle validation, bounded parallelism, join policies, retries, and an append-only run ledger so interrupted runs resume without redoing finished nodes.

  • Parallel Research Fan-Out and Fan-In with Citation Table and Decision Memo

    Splits a research question across parallel research agents, defines source discovery and evidence review steps, merges findings into a citation table, and produces a decision memo without claiming live browsing.

  • Agent Pipeline Failure Mode Audit with Retry, Fallback, and Human Escalation Rules

    Audits an existing multi-agent pipeline for failure modes and produces retry limits, fallback paths, escalation triggers, and a test plan. Supports the decision on what to harden before wider rollout.

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

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

  • Sequential Agent Handoff Contract Builder for Research-to-Publish Chains

    Designs the handoff contracts, stop conditions, and review gates for a sequential chain such as researcher, writer, editor, and fact-checker. Helps you decide whether the chain is ready to run.

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

  • Subagent Fan-Out Plan for a Large Codebase Migration

    Plans a big migration so an orchestrating agent can split it into independent chunks for parallel subagents, each with a clear brief, a verification command and merge rules.

  • Characterization-Test-Backed Refactor with Incremental Commits

    Guides Claude Code to refactor a module safely by first pinning current behavior with characterization tests, then making small, reversible commits. Helps you decide whether the refactor preserved behavior and is worth merging.

  • Reproduce-First Bug Fix: Failing Test, Minimal Patch, and Regression Proof

    Directs Claude Code to reproduce a reported bug with a failing test, apply the smallest fix, and prove the fix with command output. Use it to decide whether a bug is fixed and safe to merge.

  • Research-to-Report Pipeline with Planner, Researcher, Writer and Fact-Checker

    Designs a four-agent pipeline for your report type with each agent's prompt, inputs, outputs and handoff format.

  • Typed Phase Handoff Contracts and Validator for Multi-Agent Pipelines

    Has Claude Code define schema-based handoff contracts between agent phases, generate a validator, and add contract tests. Supports the decision of which phase boundaries need strict contracts versus lightweight checks.

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

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

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

  • Brand Voice Guard Skill That Checks Drafts Against VOICE.md (SKILL.md)

    A SKILL.md that makes Claude write and edit in your brand's voice: it reads a VOICE.md in the project, or builds one from samples, then checks every draft against it.

  • Codex Exec CI Fixer: Diagnose, Minimal Fix, Rerun, Stop After 3 Attempts

    Gives codex exec a non-interactive procedure to diagnose a failing CI output, apply a minimal fix, rerun the checks and stop after three attempts with a clear report.

  • Recurring Workflow to SKILL.md with Trigger, Steps and Verification

    Claude Code interviews you briefly about a repeated workflow and writes a complete SKILL.md with a precise trigger description, steps, supporting files and a verification step.

  • Cursor Incremental Dependency Migration Plan and Codemod Execution

    Plans and executes a library or framework version migration in Cursor in small, verifiable batches, with an impact inventory, rollback points, and per-batch test gates instead of one risky bulk edit.

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

  • Interview Me Then Plan: Requirements Interview Before Any Code

    Claude Code questions you about a feature's requirements and edge cases, then delivers an implementation plan with acceptance criteria and test commands, without writing code first.

  • Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks

    Produces a set of testable guardrail rules for your coding agent, covering blocked commands, approval gates, secret handling and hook checks.

  • Pre-Merge Self-Review of a Git Diff: Correctness, Security, and Test Gaps

    Has Claude Code review a branch diff like a skeptical maintainer, producing severity-ranked findings with evidence and a clear merge, fix, or block recommendation. Use it before opening or approving a pull request.

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?

341 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 Claude Code (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.