Top 10 AI agents prompts at a glance
20 Best AI Prompts for Building AI Agents: the top prompts and what you get from each
PromptWhat you get
Threat Model an AI Agent for Prompt Injection Attacks Through Its ToolsGet a prompt injection threat model for your AI agent: entry points, attack scenarios tied to real tool calls, risk ratings, concrete defenses and safe test cases.
Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build ItTurns 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.
Agent Tool Names, Descriptions and JSON Schemas from API DocsTurns 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.
Tool Permission Matrix and Function Spec for a Tool-Using AgentProduces a least-privilege tool inventory, function definitions, and approval rules for an agent that calls APIs or internal systems.
Orchestrator System Prompt Builder with Progress Ledger and Stop ConditionsWrites a ready-to-deploy orchestrator system prompt that delegates to your workers, tracks progress in a ledger, merges results and stops on defined conditions.
Create Error Handling Contracts for AI AgentsThis prompt transforms raw stack traces into structured error envelopes that provide agents with specific remediation steps and valid parameter constraints for self-correction.
Sequential Agent Handoff Contract Builder for Research-to-Publish ChainsDesigns 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.
Model Tier Budget and Latency Breakdown for Multi-Turn AgentsGenerates a structured cost and p95 latency trade-off table across small, mid-tier, and flagship models based on context accumulation across multi-turn agent runs.
Agent Pipeline Failure Mode Audit with Retry, Fallback, and Human Escalation RulesAudits 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.
Feature idea to spec and tickets: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPTGrills a feature idea with recommended answers, pauses for you to confirm or correct them, writes a spec with numbered acceptance criteria, splits it into vertical-slice tickets in parallel, checks that every criterion is covered and every ticket is small and testable, and exports for your tracker.

Design and system prompts

6 prompts

Define the job, write the system prompt and describe each tool the agent can call.

  1. #1Agentic AIClaude

    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.

    Preview prompt
    Act as an AI engineer who has shipped production agents. Help me design an agent that will {what the agent should do}. First ask me up to three short questions: who uses it, what systems it can touch, and what a costly mistake would look like.
    
    Rules:
    1. Start by asking whether a fixed workflow would do the job; recommend an agent only if the steps really vary per task.
    2. Define the smallest set of tools. For each: name, purpose, inputs, outputs, and permission level (read only, write, or needs human approval).
    3. Write guardrails: what the agent must never do, spending and step limits, and when it must stop and ask a human.
    4. Plan for failure: tool errors, bad data, loops, and prompt injection from content the agent reads.
    5. Write evaluation cases before any code: normal, edge and adversarial.
    
    Output format: a one-paragraph scope; a tools table (Tool, Purpose, Inputs, Outputs, Permission); the system prompt draft; a guardrails list; a failure-handling table; 10 eval cases (Input, Expected behaviour, Pass criteria); and the risks, assumptions and next actions for a first prototype.
  2. #2Agentic AI

    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.

    Preview prompt
    Act as a developer experience engineer who writes tool definitions for LLM agents. I will paste API docs or a function list below. If you don't know which format I need (OpenAI function calling, Anthropic tools, MCP or other) or what the agent's main goal is, ask me those two short questions before writing anything.
    
    Rules:
    - Use only endpoints, parameters and fields found in the docs. Never invent any. Put guesses under assumptions.
    - Name tools as verb_noun in snake_case, distinct enough that two tools are never confused.
    - Write each description for the model: what the tool does, what it returns and any side effects, in 2-3 sentences.
    - Give each parameter a type, a description, an enum or format where the docs allow it, and mark required fields. Flag destructive or costly tools and suggest a confirmation parameter.
    
    Output format, per tool: name, description, use when, do not use when (name the better tool), JSON input schema in a code block, one example call. Then add an overlap table of confusable tools, missing information in the docs, risks, and next actions.
    
    Docs:
    {paste your API docs or function list here}
  3. #3Agentic AI

    Tool Permission Matrix and Function Spec for a Tool-Using Agent

    Produces a least-privilege tool inventory, function definitions, and approval rules for an agent that calls APIs or internal systems.

    Preview prompt
    Role: You are an AI platform engineer who designs safe tool interfaces for agents.
    Context: We are giving an agent access to {systems} to achieve {goal}. The decision this answer must support: which tools to expose, with what permissions, and which calls need human approval.
    Task: Create a least-privilege tool inventory and function specs the agent can call reliably.
    Constraints: Ask for missing inputs before drafting. List assumptions separately. Do not invent endpoints; use only the capabilities I describe, and mark anything you propose as 'proposed'. No real credentials or private data in examples.
    
    Inputs:
    - Goal: {goal}
    - Systems and capabilities available: {systems}
    - Users and roles who trigger the agent: {user_roles}
    - Data classification (public/internal/confidential): {data_class}
    - Actions that are irreversible or costly: {risky_actions}
    - Audit or compliance requirements: {compliance}
    
    Workflow:
    1. List missing inputs and questions.
    2. Map the goal to the minimum set of read and write capabilities.
    3. Split tools into read-only, reversible write, and irreversible write.
    4. For each tool, define the name, purpose, parameters with types and validation, return shape, and error cases.
    5. Assign approval rules and rate limits.
    6. Write tool-selection guidance the agent can follow in its system prompt.
    7. Identify abuse scenarios such as prompt injection through tool output.
    
    Output format:
    1. Assumptions and missing information
    2. Permission matrix: Tool | Type (read/reversible/irreversible) | Scope | Approval | Rate limit | Audit log
    3. Function specs as JSON-schema-style blocks, one per tool
    4. System prompt snippet for tool use (under 250 words)
    5. Threat table: Scenario | Impact | Control
    6. Next actions with owners
    
    Acceptance criteria:
    - No tool has broader scope than the goal needs.
    - Every parameter has a type and validation rule.
    - Irreversible tools require approval or a documented reason they do not.
    - Prompt injection from tool output is addressed explicitly.
    
    Quality checks:
    - Tool names are unambiguous and do not overlap in purpose.
    - Error cases tell the agent what to do next, not only what failed.
    - Proposed tools are clearly marked.
    
    Platform notes: For OpenAI function calling, output specs as JSON Schema with name, description, and parameters. For Claude tool use, use name, description, and input_schema fields. For MCP servers, note which tools suit separate servers by permission level.
  4. #4Agent Orchestration

    Create Error Handling Contracts for AI Agents

    This prompt transforms raw stack traces into structured error envelopes that provide agents with specific remediation steps and valid parameter constraints for self-correction.

    Preview prompt
    Act as a Senior Software Architect specializing in AI agent reliability. Your task is to design an error handling contract for a specific tool. First, ask these 3 questions and wait for my input: 1. What is the name and purpose of the tool? 2. Paste the recent error message or stack trace here. 3. What is the intended input schema or parameter range for this tool? Once I answer, provide an error contract. Follow these rules: 1. Map the error to a human-readable category (e.g., Validation, Timeout, Permission). 2. Provide a 'Remediation Step' that the agent can execute (e.g., 'Retry with lower range', 'Re-authenticate'). 3. Define the 'Corrected Input Strategy' using specific parameter bounds. 4. Use a clear, tabular format for the output. Output format: # Error Handling Contract for [Tool Name] ## Summary Table (Columns: Error Type, Root Cause, Remediation Step) ## Logic for Self-Correction (Numbered list of steps) ## Valid Input Constraints (Bulleted list of bounds). This is not legal or system-critical safety advice; consult a senior engineer for production-grade deployments.
  5. #5Agentic AIClaude

    Model Tier Budget and Latency Breakdown for Multi-Turn Agents

    Generates a structured cost and p95 latency trade-off table across small, mid-tier, and flagship models based on context accumulation across multi-turn agent runs.

    Preview prompt
    Act as an AI infrastructure engineer. Your job is to model the token accumulation, cumulative cost, and p95 latency trade-offs for a multi-turn autonomous agent workflow.
    
    First, ask me these 3 questions and wait for my response:
    1. How many turns does an average agent run take, and what is the maximum step cap?
    2. What is the baseline system prompt size, average tool output size per turn, and expected final output token count?
    3. What is your estimated monthly volume of agent executions?
    
    Once I reply, follow these rules:
    - Calculate cumulative input tokens per turn assuming full context history re-sent on every step, tracking total cumulative input tokens across the full run.
    - Compare three specific tiers: Small (sub-10B or fast flash), Mid-Tier, and Flagship.
    - For each tier, state concrete estimates for: total run cost per 1,000 runs, estimated end-to-end p95 wall-clock run time in seconds, and token cache savings assuming prompt prefix caching.
    
    Output format:
    - Context Accumulation Profile: a 3-bullet breakdown of token growth per turn.
    - Trade-Off Comparison Table: columns for Tier, Representative Class, Input/Output Tokens per Run, Cost per 1k Runs, p95 Total Run Duration, and Cache Hit Impact.
    - Architectural Recommendation: 2 concrete deployment trade-offs to control cost and latency creep.
    
    End with one short line identifying the main runtime risk not captured by static token calculations.
  6. #6Agentic AIClaude

    Should This Be an Agent? Single Agent, Workflow or Plain Script Decision

    Scores a task you want to automate on variability, tool needs, error tolerance and cost, then recommends a plain script, a fixed LLM workflow, a single agent or multi-agent, with the cheapest first build.

    Preview prompt
    Act as a pragmatic AI engineer who prefers the simplest thing that works. Help me decide how to automate this task: {describe the task and its inputs}
    
    If I have not said, ask me first in one message: how often it runs and at what volume, what happens when it gets something wrong, which tools or systems it must touch, and what a run may cost.
    
    Score the task 1-5 on: how much the steps vary from case to case, how much it needs tools or live data, how much error it can tolerate, and how sensitive it is to cost and latency. Explain each score in one line.
    
    Then recommend one of: a plain script or rules, a fixed LLM workflow (set steps with model calls), a single agent with tools, or multi-agent.
    
    Rules: start from the simplest level and justify every step up; choose multi-agent only if one agent clearly cannot hold the context or the work truly runs in parallel; say where a human should approve.
    
    Output format: a score table, the recommendation with reasons, the cheapest version to build first (steps and tools), what evidence would justify moving up a level, and 3 checks with pass thresholds that prove the choice works. List your assumptions and the risks of getting this wrong.

Orchestration and multi-agent workflows

13 prompts

Route work between specialist agents, run steps in parallel and merge the results with clear handoffs.

  1. #7Agent OrchestrationClaude Code

    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.

    Preview prompt
    Act as an agent-systems engineer writing a system prompt for an orchestrator agent. The orchestrator must reach this goal: {your goal}. It can delegate to these workers or tools: {your worker agents or tools}.
    
    If the goal has no measurable finish line or a worker's permissions are unclear, ask me one or two short questions first. State any remaining assumptions separately.
    
    Rules for the prompt you write:
    - Split the run into phases. Each phase has an entry condition, a worker assignment, an expected output format and a checkpoint before moving on.
    - Tell the orchestrator to keep a progress ledger (task, worker, status, evidence) and update it after every delegation.
    - Define how results are merged: verify claims against evidence, resolve conflicts explicitly, and never blend contradictory outputs.
    - Set hard stop conditions: goal met, step or cost budget reached, the same failure three times, or a needed permission missing. Require a final report in every case.
    
    Output: first the finished orchestrator system prompt in one code block, under 400 words. Then a table of stop conditions and the action taken for each, three test scenarios to try (success, worker failure, loop), and the risks and missing information that could weaken the prompt.
    
    The result is good if someone reading only the ledger can tell exactly why the run stopped.
  2. #8Multi-Agent Pipelines

    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.

    Preview prompt
    ROLE
    You are a multi-agent workflow architect who designs sequential pipelines where each agent's output is the next agent's input.
    
    CONTEXT
    I am building a sequential agent chain to achieve {pipeline_goal} for {audience}. The agents are: {agent_roster}. Starting artifacts: {input_artifacts}. Quality bar: {quality_bar}. Platform: {tool_platform}. Deadline or run budget: {deadline}.
    Job to be done: decide whether this chain is ready to run, and what to fix first if it is not.
    
    TASK
    Design explicit handoff contracts between consecutive agents and a gate review for each handoff. Then give a go / fix-first / redesign recommendation.
    
    CONSTRAINTS
    - Ask for any missing input before producing the design. List up to 6 questions, then continue with clearly labeled assumptions if I do not answer.
    - Keep assumptions in a separate list from facts I gave you.
    - Do not invent agent capabilities, tool access, or data I did not state.
    - Each agent has one responsibility. Flag any agent doing two jobs.
    - Platform notes: in ChatGPT, use a table for contracts and keep agent prompts short enough to paste into separate chats, Projects, or Custom GPTs. In Claude, wrap each handoff payload in XML-style tags such as <handoff>, <open_questions>, and <evidence>. In LangGraph, CrewAI, or n8n, name each node and state key and show the conditional edge for gate failures.
    
    INPUTS
    Confirm you have: pipeline_goal, audience, agent_roster, input_artifacts, quality_bar, tool_platform, deadline. For anything missing, ask first.
    
    WORKFLOW
    1. Restate the job to be done and the decision this design supports in two sentences.
    2. List facts given, then assumptions, then open questions.
    3. For each agent in order, define: purpose, required input fields, output fields, what it must NOT do, and a done signal.
    4. For each handoff, define a gate: pass criteria, fail action (retry, return to previous agent, or escalate to a human), and maximum retries.
    5. Identify context that is lost or bloated between agents and propose a compact handoff summary format.
    6. Identify the top risks (error propagation, unsupported claims, scope drift, tone drift) and the earliest gate that catches each.
    7. Give a recommendation: go, fix-first, or redesign, with reasons.
    
    OUTPUT FORMAT
    A. Decision summary (3 bullets max, with recommendation)
    B. Facts / Assumptions / Open questions (three short lists)
    C. Agent contract table: Agent | Responsibility | Input fields | Output fields | Must not do | Done signal
    D. Gate table: Handoff | Pass criteria | Fail action | Max retries
    E. Risk register: Risk | Likelihood (L/M/H) | Caught at gate | Mitigation
    F. Copy-ready system prompt for each agent (under 150 words each)
    G. Next actions: numbered, owner, and the smallest test run to try first
    
    ACCEPTANCE CRITERIA
    - Every agent has a single responsibility and measurable done signal.
    - Every handoff has a gate with a fail action and retry limit.
    - Assumptions are separated from stated facts.
    - Risks are specific to my pipeline, not generic.
    - The recommendation can be acted on today.
    
    QUALITY CHECKS
    Before answering, verify: no agent reads data that no earlier agent produces; no gate says only 'review quality' without criteria; the output fields of each agent cover the input fields of the next; the first test run is small enough to finish in one session. State any check you could not satisfy.
  3. #9Multi-Agent Pipelines

    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.

    Preview prompt
    ROLE
    You are a reliability reviewer for multi-agent systems, focused on failure handling in sequential, parallel, and dependency-based pipelines.
    
    CONTEXT
    Pipeline description: {pipeline_description}. Agent roles: {agent_roles}. Known failures or near-misses: {failure_history}. Cost limit per run: {cost_limit}. Latency target: {latency_target}. Existing human review points: {human_review_points}. Platform: {tool_platform}.
    Job to be done: decide which failure risks to fix before rolling this pipeline out to more users or more data.
    
    TASK
    Identify failure modes at each agent and handoff, define detection signals, retry and fallback rules, and escalation triggers. Rank fixes by impact and effort, and propose a small test plan.
    
    CONSTRAINTS
    - Ask for missing inputs first (max 6 questions). Keep assumptions separate from facts.
    - Use only the pipeline details I give you. Do not invent logs, metrics, incident history, or vendor behavior.
    - Retry rules must respect {cost_limit} and {latency_target}. State the worst-case cost and latency of each rule as an estimate.
    - Do not recommend unlimited retries or silent fallbacks. Every fallback must be logged and visible to a reviewer.
    - Platform notes: in LangGraph, express retries and fallbacks as conditional edges and state flags. In CrewAI or AutoGen, express them as task guardrails, max iterations, and termination conditions. In n8n or Zapier, use error branches and a notification step. In ChatGPT or Claude used manually, express them as a checklist the operator follows between steps.
    
    INPUTS
    Confirm you have: pipeline_description, agent_roles, failure_history, cost_limit, latency_target, human_review_points, tool_platform. If failure_history is empty, say so and use a pre-mortem approach instead.
    
    WORKFLOW
    1. Summarize the pipeline in a stage list and mark where outputs are validated and where they are not.
    2. For each agent and handoff, list failure modes in these classes: bad input, empty or malformed output, hallucinated or unsupported content, tool or API error, timeout, conflicting outputs from parallel agents, infinite loop, and scope drift.
    3. Define a detection signal for each (schema check, citation check, length check, disagreement score, timeout, repeated-output check).
    4. Define the response: retry (with changed prompt or input), fallback (simpler agent or cached result), skip with flag, or escalate to a human. Set limits.
    5. Define escalation triggers and what context the human receives.
    6. Rank fixes by impact and effort and choose the top three.
    7. Write a test plan with specific cases that would trigger each top failure.
    
    OUTPUT FORMAT
    A. Facts / Assumptions / Open questions
    B. Pipeline stage list with validation status
    C. Failure mode table: Stage | Failure mode | Detection signal | Response | Retry limit | Est. worst-case cost/latency
    D. Escalation rules: Trigger | Who is notified | Context payload
    E. Prioritized fix list: Rank | Fix | Impact | Effort | Reason
    F. Test plan: Test case | Input condition | Expected behavior | Pass/fail check
    G. Missing information and next actions: numbered with owner
    
    ACCEPTANCE CRITERIA
    - Every stage and handoff has at least one failure mode with a detection signal.
    - Every retry has a limit, and every fallback is logged.
    - Worst-case cost and latency are stated and fit the given limits, or the conflict is flagged.
    - The top three fixes are ranked with reasons.
    - The test plan contains inputs that actually trigger the failures.
    
    QUALITY CHECKS
    Before finalizing: confirm no failure mode relies on a signal the pipeline cannot produce; confirm no loop lacks a termination condition; confirm each escalation includes enough context for a human to act without rereading everything; confirm estimates are labeled as estimates. Note any check you could not satisfy.
  4. #10Multi-Agent PipelinesClaude Code

    Feature idea to spec and tickets: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Grills a feature idea with recommended answers, pauses for you to confirm or correct them, writes a spec with numbered acceptance criteria, splits it into vertical-slice tickets in parallel, checks that every criterion is covered and every ticket is small and testable, and exports for your tracker.

    Preview prompt
    ---
    name: spec-to-tickets
    description: Grills a feature idea with recommended answers, pauses for you to confirm or correct them, writes a spec with numbered acceptance criteria, splits it into vertical-slice tickets in parallel, checks that every criterion is covered and every ticket is small and testable, and exports for your tracker. Use when asked to run the "Feature idea to spec and tickets" workflow.
    ---
    
    # Feature idea to spec and tickets
    
    Grills a feature idea with recommended answers, pauses for you to confirm or correct them, writes a spec with numbered acceptance criteria, splits it into vertical-slice tickets in parallel, checks that every criterion is covered and every ticket is small and testable, and exports for your tracker.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `idea` (e.g. "Let teams share a prompt collection with a public link that anyone can view and copy from")
    - `users` (e.g. "Workspace owners who curate prompts; visitors without an account")
    - `constraints` (e.g. "Ship in 2 weeks with 1 engineer. No new paid services. Must not expose private prompts.")
    - `stack` (e.g. "Next.js App Router, Postgres with Drizzle, Better Auth, Vercel")
    - `codebase_notes` (e.g. "Collections live in src/lib/collections. Prompts have visibility PRIVATE | WORKSPACE | PUBLIC. Paste README or schema excerpts here.")
    - `answers` (e.g. "Leave blank on the first run. On a re-run: 1. Links never expire. 3. Owners can revoke a link.")
    - `ticket_format` (e.g. "CSV")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Manual start** — Start: Start with `idea`. Add `users`, `stack`, `constraints` and any `codebase_notes`. Leave `answers` blank on the first run; set `ticket_format` to CSV or markdown.
    2. **Grill the plan** — Interview the plan for `idea` for `users`, built on `stack`, within `constraints`. Code notes (may be blank): `codebase_notes`. Don't ask anything the notes already answer.
    This step can't wait for replies, so write the whole interview at once. Cover every open design branch: scope of the first version, users and permissions, data model and ownership, states and edge cases (empty, duplicate, concurrent edits, deletes), errors and limits, migration of existing data, non-goals, rollout, and how success is measured. For each: one question, why it matters (what changes in the build depending on the answer), and your recommended answer with a one-line reason. Order the questions so earlier answers settle later ones. 12 questions max, numbered.
    Answers from an earlier run (may be blank): `answers`
    Treat answered branches as resolved and quote the answer; only ask what's still open. End with 'Decisions so far': each decision marked 'user' or 'default (unconfirmed)'. Save the result as `questions`.
    3. **Answer or accept the defaults** — STOP and ask the user to approve before continuing: Read the questions and recommended answers. If any recommendation is wrong, reject, paste your numbered answers into the answers variable and run again. Approve to write the spec from your answers plus the recommended defaults.
    4. **Write the spec** — Write the spec for `idea` from the decisions in `questions`. Sections:
    1. Problem: 3 sentences max, whose problem and what it costs them
    2. Goals (measurable) and non-goals
    3. Decisions: each marked 'user' or 'default (unconfirmed)'
    4. Glossary: each domain term in one line
    5. User stories, numbered US-1, US-2…: 'As a … I want … so that …'
    6. Acceptance criteria, numbered AC-1, AC-2…, in Given/When/Then, each linked to a story, covering the edge cases from the interview
    7. Data and API changes, in terms of `stack` and the code notes
    8. Open risks and unknowns, each with how to settle it
    Every acceptance criterion must be checkable by a test or by a person clicking through. Don't add features the decisions didn't cover. Keep the spec under 1,200 words and at most 15 acceptance criteria; merge overlapping ones. Save the result as `spec`.
    5. **Split into tickets** — Launch these as parallel subagents in one message, then wait for all of them. Split `spec` into tickets for your part only. Each ticket is a vertical slice: it changes whichever layers it needs (data, API, UI) so something works end to end and can be demoed or tested. For each ticket give: an ID with your lane's prefix, title, the outcome a user or tester can see, ACs covered (by number), in scope and out of scope, blocked by (ticket IDs), size S (under a day) or M (1-3 days), and the first test to write. At most 5 tickets, each under 100 words. Anything bigger than M must be split. Don't write tickets for another lane's part. Save the result as `tickets`.
       - **Core path (prefix C)**: The thinnest end-to-end version first (a walking skeleton), then the main user stories.
       - **Edge cases (prefix E)**: Empty, invalid, duplicate, concurrent and permission cases, plus error handling and limits from the acceptance criteria. Assume the core tickets exist and list them as blockers by description if you don't know their IDs.
       - **Rollout (prefix R)**: Migrations or backfills, the feature flag, analytics for the goals, docs, and removing the flag afterwards. Each ticket must ship on its own.
    6. **Merge and order** — Merge the lanes in `tickets` into one backlog of at most 12 tickets (merge or drop the least important if there are more). Keep each ticket under 100 words. Remove duplicates, renumber as T-01, T-02… so every ticket comes after the tickets that block it, and update 'blocked by' to the new IDs. Keep each ticket's lane (core, edge-case, rollout). Then add:
    - A coverage table: every AC from `spec` with the tickets that cover it; mark uncovered ACs 'MISSING'.
    - A dependency list in the form T-03 -> T-05.
    - A final section titled 'Acceptance criteria' that lists every AC from the spec by number with a one-line summary, for the review step. Save the result as `tickets`.
    7. **Critic review** — Review loop (max 2 passes): Pass only if all of these hold:
    1. Every AC in the 'Acceptance criteria' section at the end is covered by at least one ticket in the coverage table, and none is marked MISSING.
    2. No ticket is bigger than M (3 days).
    3. Every ticket's outcome is observable: a user, tester or automated test can see it work. 'Set up X' or 'backend for Y' alone fails unless another ticket depends on it as infrastructure.
    4. 'Blocked by' lists only existing ticket IDs with lower numbers, there are no cycles, and T-01 has no blockers.
    5. Every ticket names the first test to write.
    6. No ticket adds scope that no AC asks for.
    In feedback, list only the ticket IDs and the rule each breaks (one line each), and tell the reviser to change only those tickets, keep everything else word for word, keep the 'Acceptance criteria' section unchanged and update the coverage table to match. Save the result as `tickets`.
    8. **Export for your tracker** — Export `tickets` as `ticket_format`; if it's blank, use markdown.
    CSV: header Title,Description,Acceptance Criteria,Estimate,Blocked By,Labels; one row per ticket in order; Description holds the outcome, scope and first test; Estimate is 1 for S and 3 for M (days); Labels include the lane (core, edge-case, rollout); every field double-quoted with inner quotes doubled. 'Blocked By' imports as text in most trackers, so link dependencies after import.
    Markdown: one checklist item per ticket in order, with its ACs, size and blockers underneath.
    Return only the export. Save the result as `export`.
    9. **Sign off** — STOP and ask the user to approve before continuing: Check the decisions marked 'default (unconfirmed)' in the spec and the ticket order. Approve to export the spec and tickets; reject to stop.
    10. **Save spec and tickets** — Finish: Return `spec`, `tickets` and `export`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  5. #11Multi-Agent PipelinesClaude Code

    Meeting transcript to decisions and follow-ups: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Pulls decisions, action items, open questions and risks from a pasted transcript, resolves every 'I', 'you' and 'by Friday' to a named person and a real date, and checks each item against a verbatim quote.

    Preview prompt
    ---
    name: meeting-transcript-to-follow-ups
    description: Pulls decisions, action items, open questions and risks from a pasted transcript, resolves every 'I', 'you' and 'by Friday' to a named person and a real date, and checks each item against a verbatim quote. Drafts the recap email, per-owner messages and tickets for approval; nothing is sent. Use when asked to run the "Meeting transcript to decisions and follow-ups" workflow.
    ---
    
    # Meeting transcript to decisions and follow-ups
    
    Pulls decisions, action items, open questions and risks from a pasted transcript, resolves every 'I', 'you' and 'by Friday' to a named person and a real date, and checks each item against a verbatim quote. Drafts the recap email, per-owner messages and tickets for approval; nothing is sent.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `transcript` (e.g. "[00:02] Priya: Goal today is the billing page launch date. [00:41] Tom: Migration needs two sprints, so earliest is Jan 12. [01:10] Priya: OK, Jan 12 it is. Tom, can you send the cutover plan by Friday? [01:15] Tom: Yes. [01:30] Lena: Who writes the announcement? [01:34] Priya: Let's park that.")
    - `attendees` (e.g. "Priya Shah (Head of Product, chair), Tom Becker (Engineering lead), Lena Ortiz (Marketing), Sam Wu (contract designer)")
    - `meeting_goal` (e.g. "Decide the launch date for the new billing page and who owns the data migration")
    - `meeting_date` (e.g. "2026-11-16 (Monday)")
    - `sender` (e.g. "Priya Shah")
    - `tracker` (e.g. "Linear")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Paste the transcript** — Start: Paste `transcript` (or rough notes) with `attendees` and roles, the `meeting_goal` and `meeting_date`. `sender` sends the recap; `tracker` sets the ticket format. Nothing is sent or created.
    2. **Map speakers to attendees** — From `transcript` and `attendees`, make a table: speaker label as written | attendee | role. Match on names, initials and self-introductions; if unsure, write 'Unknown' and quote the ambiguous line. Then list attendees who never spoke and people mentioned who aren't attendees (they can own tasks, flagged external). If there are no speaker labels at all, say so first; every owner is then unconfirmed. Save the result as `speakers`.
    3. **Extract in parallel** — Launch these as parallel subagents in one message, then wait for all of them. Work only from `transcript`, using `speakers` for who said what. Every item needs a verbatim quote (up to 30 words) with speaker and timestamp if any. Never infer an item nobody said. If none, write 'None found.' Number items with your part's prefix. Save the result as `extracted`.
       - **Decisions**: Decisions (D1, D2…): the decision in one sentence, who made or confirmed it, the quote. It needs agreement or a clear call from someone with authority. Ideas, preferences and 'let's think about it' go under 'Not decided' at the end, with quotes.
       - **Action items**: Every commitment or assignment (A1, A2…): task as a verb phrase, owner exactly as said ('I', 'you', 'Tom', 'marketing'), due date exactly as said ('by Friday', or 'none'), done criteria from the transcript (or 'not stated'), the quote. Include soft commitments ('I can take a look'), marked soft.
       - **Open questions**: Unanswered questions and deferred topics ('let's park this') as Q1, Q2…: the question, who raised it, who was named to answer it if anyone, the quote.
       - **Risks and blockers**: Risks, dependencies, blockers and concerns raised (R1, R2…): the risk, who raised it, what it affects if obvious, the quote. Add none of your own.
    4. **Resolve owners and dates** — Using `extracted`, `speakers` and `attendees`, for a meeting on `meeting_date`:
    1. Replace each owner reference with a full name: 'I' = the quote's speaker; 'you' = the person addressed (named in the same or previous sentence, or the previous speaker). Teams stay teams, flagged 'needs a named owner'. Note what each was resolved from.
    2. Convert relative dates from `meeting_date` to 'YYYY-MM-DD (original phrase)': 'Friday' = the first Friday after; 'end of month' = its last day. 'Next sprint', 'soon', 'ASAP' become 'no date (original phrase)', flagged.
    3. Merge duplicates, keeping the clearer quote.
    4. End with 'Needs attention': actions with no owner, no date or a non-attendee owner; soft commitments; unassigned open questions; unresolved owners.
    One markdown table per section, IDs kept. Save the result as `items`.
    5. **Check every item against the transcript** — Check each item in `items` against `transcript`: is the quote there word for word (allowing for filler words and punctuation), and does it support the item, including owner, date and wording? Mark each Verified, Corrected (fixed to what was said, noting the change) or Removed (quote missing or unsupportive).
    Say in one line whether the meeting reached `meeting_goal` (reached, partly, not), citing decision IDs.
    Return tables of Verified and Corrected items (with owners, dates, done criteria), then 'Needs attention', then 'Removed' with reasons. Save the result as `verified`.
    6. **Write the follow-ups** — Launch these as parallel subagents in one message, then wait for all of them. Write from `verified` only, keeping item IDs in brackets (e.g. '[A2]') and dates as given. Add no tasks, decisions or dates. Short plain sentences, no pleasantries. Save the result as `followups`.
       - **Recap email**: From `sender` to all attendees. Subject: 'Recap: <goal in under 8 words> – <meeting date>'. Sections: Outcome (one line on the goal), Decisions, Action items (owner – task – due date), Open questions (and who will answer), Needs attention. Under 300 words.
       - **Per-owner messages**: One chat message per owner, under 80 words: their tasks with due dates and done criteria, plus open questions assigned to them. If any action or question has no owner, add a message to `sender` listing them and asking them to assign each.
       - **Ticket list**: One ticket per action item for `tracker`: Title (verb first, under 70 characters), Description (two sentences of context, done criteria, the quote), Assignee, Due date (ISO or blank), Labels ('confirm' for soft commitments). A markdown table, then the same rows as CSV with a header.
    7. **Tighten the drafts** — Review loop (max 2 passes): 1. Every action item line has a bracketed ID and an owner name or 'Unassigned'.
    2. Every due date starts with YYYY-MM-DD or 'no date'; the original phrase may follow in brackets.
    3. Recap email under 300 words; each per-owner message under 80.
    4. No filler openers or closers ('Hope you're well', 'Let me know if you have any questions!', 'Great meeting today').
    5. The ticket CSV has as many data rows as the ticket table.
    6. Nothing under Open questions is described anywhere as decided. Save the result as `followups`.
    8. **Approve before sending** — STOP and ask the user to approve before continuing: Review `followups` and the 'Needs attention' and 'Removed' lists in `verified`. Assign unowned items, then approve, edit or reject. Nothing is sent.
    9. **Return the follow-ups** — Finish: Return `followups` and `verified`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  6. #12Multi-Agent PipelinesClaude Code

    Customer feedback to themes and roadmap asks: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Tags pasted reviews, NPS comments or tickets in parallel chunks, clusters them into counted themes, backs each theme with verbatim quotes, optionally compares competitors' public reviews, and writes a ranked report with roadmap asks framed as problems.

    Preview prompt
    ---
    name: customer-feedback-theme-report
    description: Tags pasted reviews, NPS comments or tickets in parallel chunks, clusters them into counted themes, backs each theme with verbatim quotes, optionally compares competitors' public reviews, and writes a ranked report with roadmap asks framed as problems. Use when asked to run the "Customer feedback to themes and roadmap asks" workflow.
    ---
    
    # Customer feedback to themes and roadmap asks
    
    Tags pasted reviews, NPS comments or tickets in parallel chunks, clusters them into counted themes, backs each theme with verbatim quotes, optionally compares competitors' public reviews, and writes a ranked report with roadmap asks framed as problems.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `feedback` (e.g. "Paste one piece of feedback per line, with any metadata, e.g. 'NPS 3 | plan: Pro | 2026-10-04 | Export to CSV takes minutes and times out on big months'")
    - `product_context` (e.g. "Ledgerly, invoicing for freelancers. Areas: invoices, reminders, payments, export, mobile app, onboarding.")
    - `roadmap` (e.g. "Q1: faster export, Stripe payouts. Q2: mobile app redesign. (or 'none')")
    - `competitors` (e.g. "FreshBooks, Wave (or 'none' to skip public reviews)")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Paste the feedback** — Start: Paste `feedback` (reviews, NPS comments, survey answers or a ticket export) with `product_context`, your `roadmap` and optional `competitors`. Remove customer emails and names first if the report will be shared.
    2. **Number and clean the rows** — Turn `feedback` into a numbered list R1, R2…, one row per piece of feedback. Keep the exact text: do not shorten, translate or fix spelling. Keep any metadata on the row (score, plan, date, channel, segment) as key: value. Drop empty rows and exact duplicates. End with: rows kept, rows dropped (and why), which metadata fields exist, and the rows split into four even ranges labelled Chunk 1 to Chunk 4 (e.g. Chunk 1 = R1–R50). If there are fewer than 20 rows, put them all in Chunk 1 and mark Chunks 2–4 empty. Save the result as `rows`.
    3. **Tag rows in parallel** — Launch these as parallel subagents in one message, then wait for all of them. Tag the rows in `rows` that fall in your chunk (the ranges are listed at its end). For each row write one line: ID | sentiment (positive, mixed, negative) | theme (a 2–4 word noun phrase naming the underlying need, e.g. 'slow CSV export', not 'bad') | feature (an area from `product_context`, or 'general') | segment (only from the row's metadata, else 'unknown') | severity (1 = cosmetic, 2 = annoyance, 3 = blocks a task, 4 = threatens churn or money; 'n/a' for praise). A row may have up to 2 themes. Tag only what the row says. If your chunk is empty, write 'No rows in this chunk.' Save the result as `tags`.
       - **Chunk 1**: Tag every row in Chunk 1.
       - **Chunk 2**: Tag every row in Chunk 2.
       - **Chunk 3**: Tag every row in Chunk 3.
       - **Chunk 4**: Tag every row in Chunk 4.
    4. **Public reviews (optional)** — If `competitors` is empty or says 'none', reply 'Skipped: no competitors given.' and stop. Otherwise, for each competitor, search for reviews from the last 12 months on G2, Capterra, Trustpilot, the App Store, Google Play and Reddit. Some review sites block automated reading: list which ones you couldn't open and use only pages you could read. Report the 3 most common complaints and 2 most common praises you saw, each with 1–2 short verbatim quotes and the URL. Then say which of them overlap with themes in `tags`. Do not estimate counts you didn't see; say how many reviews you actually read. Save the result as `public`.
    5. **Cluster into themes** — Merge the theme labels in `tags` into 6–12 themes. Combine labels that describe the same need; keep a theme separate if fixing it would take different work. For each theme give: name, one-sentence definition, row count (a row counts once per theme), share of all rows, sentiment split, average severity (ignoring 'n/a'; write 'praise' if all rows are n/a), top segments, main feature, and the full list of row IDs. Put themes with fewer than 2 rows into 'Long tail' with their IDs. Finally, state how many rows have at least one theme and confirm it matches the count in `rows`; if it doesn't, say which IDs are missing. Save the result as `themes`.
    6. **Verify with quotes** — For each theme in `themes`: pick 2–3 rows from its ID list and copy their text from `rows` word for word, with the ID. Prefer rows from different segments. Then re-read 5 IDs from the theme's list and check they fit the definition; if more than 1 of the 5 doesn't fit, re-check the whole list and correct the count. Drop any theme without 2 supporting rows and say why. Return the verified theme table (same columns as before, corrected counts) and the quotes under each theme, then a 'Changes' list. Save the result as `verified`.
    7. **Write insights and roadmap asks** — From `verified`, and `public` if it has data, write the report for `product_context`:
    1. Summary: 5 bullets, each a finding with a number.
    2. Problem theme table sorted by opportunity score = row count × average severity (praise themes go in section 5, not here): Theme | Rows | Share | Avg severity | Score | Segments | Trend (only if dates exist).
    3. Top 5 insights: what users struggle with, who, how badly, and evidence (count, row IDs, one quote).
    4. Roadmap asks for the top 5 problem themes: a problem statement (not a solution), the evidence, a success measure, and status against `roadmap` (on roadmap, partly, or new).
    5. What's working: the top 3 praise themes.
    6. Market context from public reviews, if any, with URLs.
    7. Caveats: sample size, source bias (e.g. reviews skew negative), segments with too few rows to conclude, and how many rows were 'unknown' segment.
    Use only numbers from `verified`. Save the result as `report`.
    8. **Check the report** — Review loop (max 3 passes): 1. Every insight and roadmap ask states a row count and at least one row ID (R-number).
    2. Every quote is in quotation marks and followed by a row ID.
    3. Every opportunity score equals rows × average severity (recompute each one).
    4. Roadmap asks are written as problems ('users can't export a full year') not solutions ('build async export').
    5. A Caveats section exists and states the sample size.
    6. No claims about causes, revenue or churn rates that the counts can't show.
    7. Under 1,200 words, not counting tables. Save the result as `report`.
    9. **Approve the report** — STOP and ask the user to approve before continuing: Review `report` and spot-check a few quotes in `verified` against your source data. Approve, edit or reject before sharing.
    10. **Save the report and theme table** — Finish: Return `report` and `verified`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  7. #13Multi-Agent PipelinesClaude Code

    Inbox triage with reply drafts in your voice: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Triages up to 30 pasted emails, flagging phishing and payment-change scams first, then drafts replies, delegation notes and scheduling answers in your voice without inventing commitments.

    Preview prompt
    ---
    name: inbox-triage-reply-drafts
    description: Triages up to 30 pasted emails, flagging phishing and payment-change scams first, then drafts replies, delegation notes and scheduling answers in your voice without inventing commitments. Nothing is sent. Use when asked to run the "Inbox triage with reply drafts in your voice" workflow.
    ---
    
    # Inbox triage with reply drafts in your voice
    
    Triages up to 30 pasted emails, flagging phishing and payment-change scams first, then drafts replies, delegation notes and scheduling answers in your voice without inventing commitments. Nothing is sent.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `emails` (e.g. "Paste up to 30 emails separated by ---, each with From, Subject, Date and body. e.g. From: Dana Lee <dana@northwind.vc> | Subject: Board deck | Date: Nov 14 | Can you send the Q3 deck before Wednesday's call?")
    - `my_role` (e.g. "Founder and CEO of a 12-person B2B invoicing startup")
    - `vip_list` (e.g. "Dana Lee (lead investor), Sam Ortiz (co-founder), anyone from Globex or Initech (top customers)")
    - `voice_samples` (e.g. "Paste 2–3 emails you sent recently, e.g. 'Hi Dana, yes, deck is coming Tuesday. One question on the format: full or summary? Thanks, Alex'")
    - `rules` (e.g. "Invoices and vendor billing go to Mia (finance). Partnership requests go to Raj. No calls on Fridays. Never agree to discounts by email.")
    - `availability` (e.g. "Tue 18 Nov 14:00–16:00 CET; Thu 20 Nov 10:00–12:00 CET")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Paste the batch** — Start: Paste `emails` with `my_role`, `vip_list`, `voice_samples`, `rules` and `availability`.
    2. **Split and number the batch** — Split `emails` on '---', From/Subject/Date lines, greetings and signatures; number E1, E2… in order. Per email: From (name, address), Reply-To if different, Subject, Date, latest message only (drop quoted history below 'On … wrote:', noting 'thread of N'). Don't summarise.
    List guessed boundaries under 'Split check'. Over 30 emails: keep the 30 most recent (first 30 if undated); list the rest under 'Deferred' with sender and subject. Save the result as `batch`.
    3. **Label each email** — Give each email in `batch` one label, in this order of precedence:
    1. suspicious: asks for logins, codes, gift cards, urgent payment or new bank details; or the From domain doesn't match the claimed sender, or Reply-To differs. Applies even to apparent `vip_list` senders: spoofed VIPs are the usual pattern.
    2. delegate: someone in `rules` handles this kind of mail
    3. schedule: meeting request or time negotiation
    4. reply-needed: waits on an answer only you can give
    5. FYI: useful, no action
    6. unsubscribe: newsletters or marketing you never act on
    7. ignore: spam or cold pitches irrelevant to `my_role`
    VIPs are never ignore or unsubscribe.
    Table: ID | From | Subject | Label | Reason (quote the deciding words or address detail) | Delegate to. Save the result as `labels`.
    4. **Score priority** — Score reply-needed, delegate and schedule emails in `labels`. Urgency 1–5 (5 = deadline within 48h or someone blocked on you; 3 = this week; 1 = none). Importance 1–5 (5 = `vip_list`, revenue, legal or your prior commitment; 3 = team or partner; 1 = nice to know). Priority = urgency × importance, with quoted evidence; highest first, older wins ties.
    Output: suspicious emails under 'Check before anything else', the table (Rank | ID | From | Label | Urgency | Importance | Priority | Evidence), then 'Do first': top 3 IDs, one line each. Save the result as `ranked`.
    5. **Learn the voice** — From `voice_samples`, write a voice guide of up to 8 bullets, each with a short quote: typical length, exact greeting and sign-off, sentence length, formality, how requests and 'no' are phrased, frequent phrases, things never done (exclamation marks, emojis, 'Hope this helps'). With fewer than 2 samples, say first that it's low-confidence. Save the result as `voice`.
    6. **Draft in parallel** — Launch these as parallel subagents in one message, then wait for all of them. Using `ranked`, `labels` and `batch`, write in the voice guide `voice`, for your label only, highest priority first, never for suspicious emails. Commit to no date, time, price, discount, deliverable or decision absent from the email, `rules` or `availability`; use placeholders like [CONFIRM: renewal price]. Start each draft with the email ID and a 'Re: …' or 'Fwd: …' subject. If none have your label, write 'None.' Save the result as `drafts`.
       - **Replies**: Label reply-needed. Answer every question in order, near the voice guide's typical length.
       - **Delegation notes**: Label delegate. A forward note to the person named in the rules (what's needed, by when if stated, context), plus a one-line reply naming who follows up, if the sender expects one.
       - **Scheduling replies**: Label schedule. Offer 2–3 slots only from `availability`, each with weekday, date, time and timezone (also in the sender's timezone if stated), within `rules`. If none fits, say so and ask for their options.
    7. **Voice and fact review** — Check each draft in `drafts` against its original in `batch`, the `voice` guide and raw `voice_samples`:
    1. Remove, or replace with [CONFIRM: …], any date, time, price, number, attachment, promise or decision not in the email, `rules` or `availability`.
    2. Rewrite sentences that don't match the samples (length, greeting, sign-off, formality, banned phrases).
    3. Check every question is answered or clearly deferred.
    Return the corrected drafts in order, then 'Changes': ID – what changed and why. Save the result as `reviewed`.
    8. **Final draft check** — Review loop (max 3 passes): 1. Each draft starts with an email ID and a 'Re:' or 'Fwd:' subject.
    2. No filler: 'I hope this email finds you well', 'Just circling back', 'Please don't hesitate to reach out', 'Hope this helps'.
    3. Replies under 150 words unless answering 3+ questions.
    4. Unknown facts use [CONFIRM: …], never 'XX', 'TBD' or made-up figures.
    5. Delegation notes name one person and one ask.
    6. Scheduling replies offer 2–3 slots with weekday, date, time and timezone, or ask for options.
    7. A 'Changes' list ends it. Save the result as `reviewed`.
    9. **Build the digest** — Digest from `ranked`, `labels` and `reviewed`, under 400 words plus table:
    1. Check before anything else: each suspicious email, next step 'Do not reply or click links. Verify with the sender through a phone number or address you already have, then report as phishing'.
    2. Do first: top 3, one line each.
    3. All emails by priority: Rank | ID | From | Subject | Label | Priority | Next step ('Send draft', 'Forward to <name>', 'Archive', 'Unsubscribe', 'Verify and report').
    4. Counts per label.
    5. Every [CONFIRM: …] with its ID.
    6. Deferred emails and 'Split check' notes from `batch`. Save the result as `digest`.
    10. **Review the digest and drafts** — STOP and ask the user to approve before continuing: Review `digest` and the drafts in `reviewed`; fill every [CONFIRM: …] before sending. Approve for the copy-ready set, or edit first.
    11. **Copy the digest and drafts** — Finish: Return `digest` and `reviewed`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  8. #14Multi-Agent PipelinesClaude Code

    One source to platform posts, in your voice: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Pulls the claims, numbers and quotes from one article, transcript or set of notes, drafts a native post per platform in your voice, and checks each draft against your samples and the source.

    Preview prompt
    ---
    name: repurpose-to-platform-posts
    description: Pulls the claims, numbers and quotes from one article, transcript or set of notes, drafts a native post per platform in your voice, and checks each draft against your samples and the source. Returns the drafts with a two-week posting calendar for approval. Use when asked to run the "One source to platform posts, in your voice" workflow.
    ---
    
    # One source to platform posts, in your voice
    
    Pulls the claims, numbers and quotes from one article, transcript or set of notes, drafts a native post per platform in your voice, and checks each draft against your samples and the source. Returns the drafts with a two-week posting calendar for approval.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `source` (e.g. "Paste the article, transcript or notes (4,000 characters max per run; paste the strongest sections if it's longer).")
    - `voice_samples` (e.g. "Paste 2-5 posts or emails you wrote yourself, separated by ---")
    - `platforms` (e.g. "LinkedIn, X thread, Instagram carousel, short video, newsletter")
    - `cta` (e.g. "Read the full case study at acme.test/blog/churn")
    - `audience` (e.g. "B2B SaaS founders between seed and Series A")
    - `trend_angle` (e.g. "yes")
    - `start_date` (e.g. "2026-11-23")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Manual start** — Start: Paste `source` and 2-5 things you wrote in `voice_samples`. List `platforms` (LinkedIn, X thread, Instagram carousel, short video, newsletter), the `cta`, `audience` and `start_date`. Set `trend_angle` to 'no' to skip the news search.
    2. **Pull out what's worth posting** — From `source` only, list:
    1. Core idea: one sentence.
    2. Claims: up to 10, each with a verbatim quote.
    3. Numbers: every statistic exactly as written, what it measures, and its stated origin (or 'origin not stated').
    4. Quotable lines: 3-5 verbatim sentences that stand alone.
    5. Story beats: any anecdote as setup, turn, result.
    6. Off-limits: what the source hedges or only implies; posts must not state these as fact.
    Add nothing that isn't in the source. If it's under 300 words, say at the top that the pack will be thin. Save the result as `facts`.
    3. **Fingerprint the voice** — Describe how the writer of `voice_samples` writes, as exactly 10 rules another writer could follow, each with a short quote as evidence. Cover sentence length and variation, openings (quote 3 real first lines), words they repeat or never use, punctuation and formatting (emoji, line breaks, lists, capitals, exclamation marks), and stance (certainty, humour, how they refer to themselves).
    Then list banned phrases that would sound wrong in this voice, starting from: delve, game-changer, unlock, in today's fast-paced world, it's not just X it's Y, let that sink in, here's the thing, buckle up. If the samples total under 200 words, call the fingerprint low-confidence. Save the result as `voice`.
    4. **Find a timely angle (optional)** — If `trend_angle` is 'no', reply only 'Skipped: no trend angle requested.'
    Otherwise search news and discussions from the last 30 days that connect directly to the core idea in `facts` and matter to `audience`. Return up to 3 angles: the event in one line, source URL and date, and one bridging sentence. If no link is direct, reply 'No timely angle found' rather than force one. Never suggest a news claim without its URL. Save the result as `angle`.
    5. **Draft per platform** — Launch these as parallel subagents in one message, then wait for all of them. Write a native post for your platform from `facts`, in the voice in `voice`, for `audience`, ending with this call to action: `cta`. Use only claims and numbers from the facts, with exact figures, and nothing from Off-limits. Use an angle from `angle` only if one was found, with its URL in a note under the draft. If your platform isn't in `platforms`, reply only 'Not requested.' Under the draft add 'Claims used:' listing the claims or numbers you used. Save the result as `drafts`.
       - **LinkedIn post**: 1,200-1,900 characters. The first line (under 140 characters, roughly what shows before 'see more' on mobile) must make someone click. Short paragraphs, at most 3 hashtags at the end, no link in the body: put it in a 'First comment:' line.
       - **X thread**: 5-8 posts, each under 280 characters, numbered 1/ 2/ and so on. Post 1 must make sense on its own. One idea per post. A link only in the last post.
       - **Instagram carousel**: 7-10 slides, 25 words max per slide. Slide 1 is the hook and the last slide is the CTA. Then a caption under 150 words and 3-5 hashtags.
       - **Short video script**: 30-45 seconds, timestamped, the hook line in the first 2 seconds, on-screen text for each beat so it works with the sound off.
       - **Newsletter blurb**: 80-120 words, 3 subject line options under 50 characters each, and one link placement marked [link].
    6. **Voice and fact review** — Check each draft in `drafts` against the voice rules and banned phrases in `voice` and against `facts`; leave out 'Not requested' sections. Look for (a) generic or AI-sounding phrasing; (b) drift from the source: changed or rounded numbers, claims not in the facts, more certainty than the source, anything Off-limits; (c) voice mismatches.
    Per draft, under its platform heading: the corrected draft in full, a 'Fixed:' line (quote the old wording, name the rule), then its 'Claims used:' line.
    End with a 'Reference' section copying word for word the 10 voice rules, banned phrases, claims and numbers, and Off-limits list, for the next check. Save the result as `drafts`.
    7. **Check until it passes** — Review loop (max 3 passes): Use the Reference section as the source of truth; ignore 'Fixed:' and 'Claims used:' lines. Pass only if every draft meets all of these:
    1. Every number matches the Reference exactly.
    2. No claim goes beyond the Reference; nothing Off-limits is stated as fact.
    3. No banned phrases, and none of: 'not X, but Y' contrasts, a rhetorical-question opener, one-word closers, a three-item list in every paragraph.
    4. At least 8 of the 10 voice rules followed.
    5. Limits: LinkedIn 1,900 characters max with a first line under 140; each X post under 280; carousel slides 25 words max; newsletter 80-120 words; video 45s max.
    6. The CTA appears once.
    Feedback quotes the failing line and names the rule; the reviser keeps the Reference section unchanged. Save the result as `drafts`.
    8. **Posting calendar** — Make a 2-week posting calendar from `start_date` for the drafts in `drafts` (ignore Reference). Columns: date, day, platform, post (first line), asset needed (image, slides, video shoot, none), CTA, notes. Space the same idea at least 2 days apart and put the most detailed format first. Times of day are suggestions: note to check your own analytics. Save the result as `calendar`.
    9. **Edit and pick** — STOP and ask the user to approve before continuing: Read the reviewed drafts and calendar. Edit your copy and note which drafts you'll post in the approval note. Approve to export; reject to stop.
    10. **Save the post pack** — Finish: Return `drafts` and `calendar` as one document.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  9. #15Multi-Agent PipelinesClaude Code

    Prospect research and first-touch emails: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Researches up to 10 companies in parallel with cited sources, grades each against your ideal customer profile, writes a 3-email sequence for the A and B prospects with a sourced hook in every first email, checks facts, length and spam words, and hands you a review sheet.

    Preview prompt
    ---
    name: prospect-research-outreach
    description: Researches up to 10 companies in parallel with cited sources, grades each against your ideal customer profile, writes a 3-email sequence for the A and B prospects with a sourced hook in every first email, checks facts, length and spam words, and hands you a review sheet. Nothing is sent. Use when asked to run the "Prospect research and first-touch emails" workflow.
    ---
    
    # Prospect research and first-touch emails
    
    Researches up to 10 companies in parallel with cited sources, grades each against your ideal customer profile, writes a 3-email sequence for the A and B prospects with a sourced hook in every first email, checks facts, length and spam words, and hands you a review sheet. Nothing is sent.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `icp` (e.g. "B2B SaaS, 50-300 employees, selling to mid-market, with a self-serve trial and a support team of 5+")
    - `offer` (e.g. "An AI support-triage add-on for Zendesk that cuts first-response time")
    - `proof_points` (e.g. "A 120-person fintech support team cut first-response time from 9h to 2h in 6 weeks.
    Used by 40 SaaS support teams.
    Setup takes under a day.")
    - `prospects` (e.g. "pipedrive.com
    front.com
    calendly.com
    loom.com")
    - `sender` (e.g. "Priya Shah, founder, Triagely")
    - `cta` (e.g. "Open to a 15-minute call next week?")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Manual start** — Start: Paste up to 10 companies in `prospects`, one per line (name or URL). Describe your `icp`, `offer` and `proof_points` (only results you can back up), plus `sender` and the `cta`.
    2. **Research each prospect** — Launch these as parallel subagents in one message, then wait for all of them. Research the companies in your slot of `prospects` (count non-blank lines from the top). For each company, search the web and read its site, recent news and careers page, then report:
    - Company: name, URL, what it sells and to whom (one line)
    - Size: headcount range; funding or revenue only if a source states it
    - Recent: launches, funding, leadership hires or news from the last 6 months, each with its date
    - Hiring: open roles that relate to `offer` (title and link)
    - Likely pains: up to 3, each tied to a fact above and marked 'inferred'
    - Best hook: the single specific, recent, verifiable fact a cold email could open with
    Every fact needs its source URL and date. If two companies share the name or you can't confirm which one is meant, say so and stop for that company. If your slot has no company, reply only 'Empty slot.' Save the result as `research`.
       - **Prospects 1-2**: Take lines 1 and 2 of the list.
       - **Prospects 3-4**: Take lines 3 and 4 of the list.
       - **Prospects 5-6**: Take lines 5 and 6 of the list.
       - **Prospects 7-8**: Take lines 7 and 8 of the list.
       - **Prospects 9-10**: Take lines 9 and 10 of the list.
    3. **Score ICP fit** — Score each company in `research` against `icp`. For each, rate four criteria as yes, partly or no, citing the research line you used: (1) matches the firmographics in the ICP, (2) evidence of the pain `offer` solves, (3) a timing signal in the last 6 months (launch, funding, relevant hiring, new leader), (4) a sourced hook exists.
    Grade A: yes on 1 and 2, plus a timing signal. Grade B: yes on 1 and at least partly on 2. Grade C: everything else, including 'no' on 2 and companies where nothing verifiable was found. For each C, say whether it's 'C: poor fit' or 'C: unverified'.
    Return a table: company, grade, the four results, a one-line reason. Don't raise a grade because a company is well known. Save the result as `scores`.
    4. **Decide what to write** — Look at the grades in `scores` and pick a route. 'Write sequences' if at least one company is A or B. 'Nothing qualifies' if every company is C and most are 'C: poor fit'. 'Research too thin' if every company is C and most are 'C: unverified'. Pick one route: Save the result as `sequences`.
       - **Write sequences**: For each A and B company in `scores` (skip C), write a 3-email sequence from `sender`, using `research` and `offer`.
    Email 1 (day 0): subject of 2-6 words, no clickbait. Body 120 words max: open with the best hook (a specific fact, not flattery), one sentence linking it to a likely pain, one sentence on the offer, one proof point, and this ask: `cta`.
    Email 2 (day 3): a different angle or pain and a different proof point, 80 words max.
    Email 3 (day 8): a short close-the-loop note, 60 words max, no guilt-tripping.
    Under each email add two lines:
    Evidence: the fact used about the company and its URL
    Proof used: the proof point quoted word for word from `proof_points`
    Rules: no claims about the company beyond the research, no invented results or customers, no fake familiarity ('loved your recent post'), no 'just following up' or 'quick question'. Start each company with a header: company name and grade.
       - **Nothing qualifies**: Explain in under 200 words why no company in `scores` fits `icp`, what the list has in common, and 3 concrete ways to find better prospects (company traits to filter on and places to look). Don't write emails.
       - **Research too thin**: For each company in `scores`, list what couldn't be verified and where to check by hand (company site, careers page, LinkedIn company page, press page, the exact legal name or domain to paste on a re-run). Don't write emails: a cold email without a verified hook is the generic kind this workflow exists to avoid.
    5. **Fact and spam check** — Review loop (max 3 passes): If the draft contains no emails (a 'nothing qualifies' note or a manual-check list), pass it. Otherwise pass only if, for every email:
    1. Every statement about the prospect matches its Evidence line, and the Evidence line has a URL.
    2. The only result or customer claimed is the one in its 'Proof used' line.
    3. Body word count: Email 1 at most 120, Email 2 at most 80, Email 3 at most 60.
    4. No spam-style wording: free, guarantee, risk-free, act now, limited time, 100%, all-caps words, more than one exclamation mark, 'just following up', 'quick question', 'hope this finds you well'.
    5. Subject line is 2-6 words with no 'Re:' or 'Fwd:' trick and no emoji.
    6. One ask per email.
    In feedback, name the company, the email number and the failing rule, and tell the reviser to keep the Evidence and Proof used lines. Save the result as `sequences`.
    6. **Build the review sheet** — Turn `sequences` and `scores` into a review sheet. First a table: company, grade, hook (one line), evidence URL, Email 1 subject, status ('ready', or 'check' if any fact used is marked inferred or is older than 6 months). List C companies at the bottom with their reason. Then the full emails grouped by company, unchanged.
    End with a 'Before you send' checklist: open every evidence URL; add your postal address and a one-line way to opt out (required for commercial email in the US under CAN-SPAM); if any prospect is in the EU or UK, check that you have a lawful basis for cold B2B email there (GDPR/PECR rules differ by country); send from a warmed-up domain with SPF, DKIM and DMARC set. Save the result as `outreach`.
    7. **Check before sending** — STOP and ask the user to approve before continuing: Open every evidence link and work through the 'Before you send' checklist; this workflow doesn't send email. Approve to export the sheet; reject to stop.
    8. **Save the review sheet** — Finish: Return `outreach`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  10. #16Multi-Agent PipelinesClaude Code

    Search and social ad copy with limit checks: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT

    Reads your landing page and competitors' pages, writes headlines and descriptions from five angles in parallel, removes claims the page doesn't support, checks every line against Google responsive search ad limits and Meta's recommended lengths, and returns a Google Ads Editor CSV plus a Meta table.

    Preview prompt
    ---
    name: search-social-ad-copy-variants
    description: Reads your landing page and competitors' pages, writes headlines and descriptions from five angles in parallel, removes claims the page doesn't support, checks every line against Google responsive search ad limits and Meta's recommended lengths, and returns a Google Ads Editor CSV plus a Meta table. Use when asked to run the "Search and social ad copy with limit checks" workflow.
    ---
    
    # Search and social ad copy with limit checks
    
    Reads your landing page and competitors' pages, writes headlines and descriptions from five angles in parallel, removes claims the page doesn't support, checks every line against Google responsive search ad limits and Meta's recommended lengths, and returns a Google Ads Editor CSV plus a Meta table.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `product` (e.g. "Ledgerly, an invoicing app for freelancers that sends invoices and chases late payments automatically")
    - `audience` (e.g. "Freelance designers and developers in the US with 1–10 clients")
    - `landing_page` (e.g. "https://ledgerly.example/freelancers (or paste the page text)")
    - `keywords` (e.g. "invoice app for freelancers, freelance invoicing software, automatic payment reminders")
    - `competitors` (e.g. "FreshBooks, Wave, Bonsai")
    - `past_performance` (e.g. "Winner: 'Get Paid Without Chasing' CTR 6.1%, conv 4.2%. Loser: 'All-in-One Finance Hub' CTR 1.2%. Or 'none'.")
    - `brand_rules` (e.g. "No 'best' or '#1'. Say 'invoices', not 'bills'. Free plan exists; 14-day Pro trial. No exclamation marks.")
    - `campaign` (e.g. "Search – Freelancer invoicing – US")
    - `ad_group` (e.g. "Invoice app – exact")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Describe the product** — Start: Start with `product`, `audience`, `landing_page`, `keywords`, `competitors`, `past_performance` and `brand_rules`. The CSV uses `campaign` and `ad_group`. Nothing is uploaded: you get a file to import.
    2. **Research the page and competitors** — 1. Landing page: if `landing_page` is a URL, fetch it; if it is pasted text, use that. If the fetch fails, say so and continue with what you have. Extract the main promise, every factual claim (numbers, guarantees, ratings, integrations, pricing, free plan or trial) copied word for word, the offer and the call to action. Only these on-page claims may appear in ads.
    2. Competitors: for each name in `competitors`, read their homepage and the landing page that ranks for the closest phrase in `keywords`. Record the headline wording, offers and proof points you can actually see. Live search ads and Meta Ad Library entries usually can't be read with web tools: try once, say if they were unreadable, and never guess what an ad says.
    3. Name 3 angles the competitors leave open for `product`.
    Cite a URL for every competitor observation. Return: Claims table (claim | exact wording | URL), Competitor angles table (competitor | angle | example wording | URL), Openings. Save the result as `market_notes`.
    3. **Learn from past results** — From `past_performance`, list the winning and losing patterns: wording, angle, length, call to action, each with its metric. Turn them into 3–5 do/don't rules, each citing the ad it came from. If no history is given, write 'No history: all angles weighted equally' and nothing else. Save the result as `lessons`.
    4. **Write five angles in parallel** — Launch these as parallel subagents in one message, then wait for all of them. Write ad copy for `product` aimed at `audience`, using only the on-page claims in `market_notes` and following `lessons` and `brand_rules`. For your angle write: 6 Google headlines (30 characters max, spaces included), 2 Google descriptions (90 characters max), 2 Meta primary texts (125 characters or fewer, so nothing is cut before 'See more') and 2 Meta headlines (40 characters or fewer, so they aren't truncated on most placements). Put the character count in brackets after every line, e.g. 'Invoices That Chase Late Pay (28)'. At least 2 of the 6 headlines must contain a phrase from `keywords`. Save the result as `variants`.
       - **Pain**: Lead with the problem the audience feels (late payments, admin time), using their words where the page or the lessons give them.
       - **Outcome**: Lead with the result after using the product (paid sooner, less admin), only as specific as the page allows.
       - **Proof**: Lead with on-page proof: numbers, user counts, ratings, named integrations. If the page has none, say so and write credibility lines from concrete features instead.
       - **Offer**: Lead with the offer on the page: free plan, trial, price. If the page has no offer, the copy has no offer.
       - **Objection**: Answer the most likely reason not to click (setup time, switching, price, trust) using facts from the page.
    5. **Brand and policy review** — Review `variants` against `brand_rules` and the Claims table in `market_notes`. Remove or rewrite: any claim not on the page; superlatives and rankings ('best', '#1', 'fastest') unless the page states them with a source; competitor brand names (trademark disapprovals); exclamation marks in headlines; ALL-CAPS words other than acronyms; repeated punctuation; phone numbers; 'click here'.
    Then choose the final set:
    - exactly 15 Google headlines: at least 3 contain a keyword, at least 3 state a benefit, at least 2 give proof, at least 2 are calls to action; no two say the same thing
    - exactly 4 Google descriptions, each ending with a call to action
    - Path 1 and Path 2 (15 characters max each, no spaces)
    - 5 Meta variants (primary text + headline), one per angle
    Keep the character count after every line. End with a 'Removed' list: line, reason. Save the result as `adset`.
    6. **Validate character limits** — Review loop (max 4 passes): Count the characters of every line yourself, including spaces and punctuation. Ignore the number printed in brackets.
    1. Exactly 15 Google headlines, each 30 characters or fewer.
    2. Exactly 4 Google descriptions, each 90 characters or fewer.
    3. Path 1 and Path 2 each 15 characters or fewer, with no spaces.
    4. Each Meta headline 40 characters or fewer; each Meta primary text 125 characters or fewer.
    5. No exclamation marks in Google headlines; no duplicate or near-duplicate headlines.
    6. Every printed count matches the real count.
    Feedback must name each failing line with its real count. A fix shortens the line without changing or adding a claim. Save the result as `adset`.
    7. **Build the upload CSV** — Turn `adset` into:
    1. A Google Ads Editor CSV: one header row and one data row with columns Campaign, Ad group, Ad type, Final URL, Path 1, Path 2, Headline 1 … Headline 15, Description 1 … Description 4. Campaign = `campaign`, Ad group = `ad_group`, Ad type = Responsive search ad, Final URL = the URL in `landing_page` (blank if page text was pasted). Copy every line exactly and drop the bracketed counts. Wrap any field with a comma in double quotes and double any quote marks inside it.
    2. A Meta table: Variant | Angle | Primary text | Headline | Characters (primary / headline).
    3. Three test notes: which angles to watch first and why, based on `lessons`. Save the result as `csv`.
    8. **Approve the ads** — STOP and ask the user to approve before continuing: Check `csv` and the 'Removed' list in `adset`. Confirm every claim is true today. After importing, check Google Ads Editor's warnings: it flags any line over the limit, which is the final check on the counts. Approve, edit or reject.
    9. **Save the CSV** — Finish: Return `csv` and `adset`.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  11. #17Multi-Agent PipelinesClaude Code

    Short-Form Video Ideas and Shot Prompts: Agent Workflow

    Researches what short-video formats and hooks work in your niche, then writes five reviewed concepts with Gemini Omni, Kling 4.0 or Seedance shot prompts.

    Preview prompt
    ---
    name: short-form-video-pack
    description: Researches what short-video formats and hooks work in your niche, then writes five reviewed concepts with Gemini Omni, Kling 4.0 or Seedance shot prompts. Use when asked to run the "Short-form video pack from what's working now" workflow.
    ---
    
    # Short-form video pack from what's working now
    
    Researches what short-video formats and hooks work in your niche, then writes five reviewed concepts with Gemini Omni, Kling 4.0 or Seedance shot prompts.
    
    ## Inputs
    
    Ask for any of these that the user hasn't given:
    
    - `niche` (e.g. "home espresso for beginners")
    - `topic` (e.g. "our $149 manual milk frother (the Froth One)")
    - `platform` (e.g. "TikTok")
    - `audience` (e.g. "25-40 year olds who just bought their first espresso machine")
    - `length` (e.g. "30-40 seconds")
    - `brand_rules` (e.g. "No competitor names. No health claims about caffeine. Founder can film talking-head clips in a home kitchen; no paid actors.")
    - `format_preference` (e.g. "auto")
    
    ## Steps
    
    Run the steps in order. Refer to saved results by name. Don't skip a step that says STOP.
    
    1. **Manual start** — Start: `niche`, `topic`, `platform`, `audience`, `length`, `brand_rules`; `format_preference`: 'auto', or talking head, faceless b-roll, ASMR, product demo, AI avatar.
    2. **Research what's working now** — Find short videos about `niche` that got traction on `platform` in the last 90 days, via creator-economy articles, trend pages, Reddit and newsletters. You can't watch videos: use titles, captions, transcripts and write-ups, and say which.
    Return: 8-12 working patterns (format, hook verbatim or marked 'paraphrased', length, why it works, URL and date); 3 overdone patterns; hashtags seen in 2+ sources; `topic`-specific launches, complaints or questions.
    Every row needs a URL. View counts only if a source states them. Under 5 sources from the last 90 days: say so first and date the older ones. Save the result as `research`.
    3. **Pick the format** — Use `format_preference` if it names a route; else the format most common in recent `research` patterns that suits `topic` and fits `brand_rules`. Pick one route: Save the result as `format`.
       - **Talking head**: Talking-head playbook (`length`, `platform`, `topic`, from `research`), first line 'Format: Talking head': timestamped beats (hook 0-2s, setup, 2-3 payoffs, CTA); a cut every 2-4s; b-roll about every 8s; on-screen text for muted viewing; phone at eye height, window light, clip-on mic; 3 research hooks with URLs; 2 common mistakes.
       - **Faceless b-roll**: Faceless b-roll playbook (`length`, `platform`, `topic`, from `research`), first line 'Format: Faceless b-roll': timestamped beats; 1.5-3s clips; voiceover about 2.5 words/s; on-screen text that carries the story on mute; clip types per beat; 3 research hooks with URLs; 2 common mistakes.
       - **ASMR or satisfying**: ASMR playbook (`length`, `platform`, `topic`, from `research`), first line 'Format: ASMR': timestamped beats with sound as the hook; the sound per beat (pour, tap, foam, click); slow macro close-ups; little or no voice; last frame matches the first (loop); 3 research hooks with URLs; 2 common mistakes.
       - **Product demo**: Product demo playbook (`length`, `platform`, `topic`, from `research`), first line 'Format: Product demo': timestamped beats (product in hand in second 1, problem, use, visible result, CTA); real scale and use; which claims need proof on screen; disclosure if paid or gifted; 3 research hooks with URLs; 2 common mistakes.
       - **AI avatar**: AI avatar playbook (`length`, `platform`, `topic`, from `research`), first line 'Format: AI avatar': timestamped beats; lip-sync rules (sentences under 15 words, numbers written out, no tongue-twisters); b-roll cutaways every 5-8s; the platform's AI-content label; no real person's face or voice without written permission; 3 research hooks with URLs; 2 common mistakes.
    4. **Five concepts at once** — Launch these as parallel subagents in one message, then wait for all of them. Write one concept for `topic` per the `format` playbook, for `audience` on `platform`, at `length`, within `brand_rules`, borrowing a `research` pattern if it fits.
    Return: title (5 words max); hook line (12 words max) and first-2s on-screen text (6 words max); timestamped script for `length` at about 2.5 words/s; on-screen text per beat; retention beats (timestamps of reveals or cuts); one closing CTA; borrowed pattern and URL.
    No facts about `topic` beyond the inputs or cited sources; mark what to confirm [confirm]. Save the result as `concepts`.
       - **Concept 1: myth or mistake**: Name a common belief or mistake in `niche`, then correct it.
       - **Concept 2: how-to**: Teach one result in 3 steps the viewer can copy today.
       - **Concept 3: story or before/after**: A story or before/after shown on screen.
       - **Concept 4: test or comparison**: Compare 2-3 options with a verdict; describe them generically if brand rules forbid competitor names.
       - **Concept 5: trend remix**: Adapt the strongest recent pattern's structure without copying its lines.
    5. **Write shot prompts** — Load the `prompts-gpt-video-prompt` skill, then: For each concept in `concepts`, repeat its title, hook, script, on-screen text and CTA, then a shot list per `format`, so this is the whole pack.
    Per shot: number, timestamps, duration (10s max by default: one clip in Gemini Omni on most plans; Kling 4.0 allows up to 30s; check your tool and plan), filmed or generated. Generated shots get a prompt: subject, action, setting, camera (framing, lens, movement), lighting, style, sound, 9:16, with the same subject description across a concept. No real people's likeness, logos or copyrighted characters. Durations total the script within 3s. Save the result as `pack`.
    6. **Critic review** — Review loop (max 2 passes): Score each concept 1-5 per point; pass only if all score 4+.
    1. Hook: payoff, tension or surprise in 2s, 12 words max; 'In this video', 'Hey guys' or a logo intro scores 2 or less.
    2. Retention: a new beat or visual every 5s or sooner; payoff before the CTA.
    3. `platform` fit: within `length`, text readable in time (about 3 words/s), works on mute, 9:16.
    4. Policy: health, money or legal claims only with [confirm]; no real-person likeness or voice, copyrighted music or characters; AI label on generated shots; paid or gifted products disclosed.
    5. Shots: within the clip limit from step 5, with camera, motion and duration; total within 3s of the script.
    Feedback: concept, point, fix; revise only what failed. Save the result as `pack`.
    7. **Captions and hashtags** — For each concept in `pack`, write `platform` copy: a caption opening on the hook (under 150 characters before the fold, 300 total), 3-5 hashtags only from `research` plus up to 2 broad `niche` ones (call none trending), a pinned comment inviting replies, cover text (4 words max). End with a shoot order, easiest first. Save the result as `captions`.
    8. **Pick what to shoot** — STOP and ask the user to approve before continuing: Review concepts, shots, captions and every [confirm]; note which concepts you'll shoot. Approve to export; reject to stop.
    9. **Save the pack** — Finish: Return `pack` and `captions` as one ready-to-shoot document.
    
    ## Done when
    
    Every step has run, each approval was given, and you've reported what was produced and where it was saved.
  12. #18Agent OrchestrationClaude

    Design Mock Tool Fixtures for Agent Trajectory Testing

    Generate deterministic mock tool responses to test agent decision trees, edge-case failures, and schema-breaking payloads without live API usage or costs.

    Preview prompt
    Act as a software engineer specializing in AI agent reliability. Your goal is to design a set of synthetic mock tool fixtures to unit-test an agent trajectory decision tree. Please ask me these 3 questions first: 1. What is the name and purpose of the tool function? 2. What are the 3 most critical success scenarios and 2 failure modes to test? 3. Does the tool use JSON or XML for output? After I answer, provide the test suite. Rules: Every fixture must include a specific status code and a descriptive reason for the response. Include one payload that violates the expected schema to test error handling. Use a clear, tabular format for the test cases. Assume no responsibility for production system uptime; this is for testing logic.
  13. #19Multi-Agent PipelinesClaude

    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.

    Preview prompt
    Act as an AI systems designer. Design a three-agent pipeline (researcher, writer, editor) that produces content on {topic and audience}, such as a weekly newsletter or explainer articles.
    
    Rules:
    1. Give each agent one job, its own system prompt, and the tools it may use (for example web search only for the researcher).
    2. Define a handoff schema for each stage as a field list with types: the researcher returns claims with source URL, date checked and confidence; the writer returns a draft with each claim linked to a source ID; the editor returns the final text plus a change log.
    3. Add a gate between stages: what the receiving agent checks, and what happens when the check fails (send back once with reasons, then stop and flag a human).
    4. The editor may not add new facts, only cut, fix and query them.
    5. Keep cost and latency in mind: say which stages can use a smaller model.
    
    Output format: a pipeline diagram in text, a table (Agent, Job, Tools, Model size, Input, Output), the three system prompts, the handoff schemas, the gate rules, and a list of failure modes, risks and assumptions with mitigations.

Guardrails, testing and evals

1 prompt

Set limits and approval points, red-team the agent and write evaluation cases before launch.

  1. #20Agentic AI

    Threat Model an AI Agent for Prompt Injection Attacks Through Its Tools

    Get a prompt injection threat model for your AI agent: entry points, attack scenarios tied to real tool calls, risk ratings, concrete defenses and safe test cases.

    Preview prompt
    You are an AI security engineer who threat-models LLM agents for prompt injection.
    
    Build a prompt injection threat model for this agent: {agent_description}. It uses these tools and data sources: {tools_and_data_sources}.
    
    First ask me up to 3 short numbered questions about what is missing (for example who triggers the agent, which actions run without human review, what data is sensitive), then wait for my answers.
    
    Rules:
    1. Treat all text the agent reads from outside its system prompt (web pages, emails, files, tool results, other agents) as untrusted, and name the source each attack enters through.
    2. For each attack, name the exact tool call or action the attacker wants to trigger and the harm it causes.
    3. Rate each risk High, Medium or Low based on access and reversibility, with a one-line reason.
    4. Every defense must be a concrete control (permission scope, human approval step, allowlist, output check). Say when prompt wording alone is not enough.
    5. List only attacks that fit the given tools; if a tool adds no real risk, say so.
    
    Output format:
    1. Injection surface table: Source | Trust level | Tools reachable after reading it
    2. Attack scenarios table: # | Entry point | Injected instruction (short) | Targeted action | Impact | Risk
    3. Defenses, each mapped to scenario numbers
    4. Test cases: 3-6 harmless injection strings for my eval set, each with the expected safe behavior
    
    End by listing your assumptions and what you cannot assess without seeing the code.

About this list

The design prompts start from the job the agent must finish and work backwards to the instructions, the tools it needs, the inputs it reads and the moment it should stop and ask a person. They work in ChatGPT, Claude or Gemini as a planning partner, and the output is a spec you can paste into your agent framework or coding agent.

Further down are prompts for orchestration, such as routing between specialist agents, running steps in parallel and merging the results, plus prompts that try to break an agent with red-team cases, check its tool calls and write an evaluation set. Treat every answer as a draft and try it on a dry run first.

What should an AI agent system prompt include?

Start with the one job the agent owns and what done looks like. Then list the tools it may call and when, the inputs it can trust, the actions that need a person's approval, and when to stop and report instead of guessing. The design prompts here ask you for each of these before they write anything.

Can I use these prompts with any agent framework?

Yes. They produce plain instructions, tool descriptions and test cases rather than code tied to one framework, so you can paste the result into an agent SDK, a graph-based framework, a no-code builder or a coding agent. Where a prompt names a feature, check your framework's documentation, since agent tooling changes often.

How do I test an agent before it goes live?

Run it on a dry run with fake or copied data, and log every tool call. The testing prompts write a small evaluation set from your real tasks, add cases meant to trip the agent up, and give you a checklist for reading the logs. Keep a human approval step on anything that sends, buys, deletes or publishes.

More lists and categories

All categories