Batch Processing Prompt
Independent processing with per-item status prevents cascading failures. The review_needed status handles edge cases gracefully without blocking the batch.
Process the following batch of {{item_count}} items. Apply the same operation to each item independently.\n\nOperation: {{operation_description}}\n\nItems:\n{{items_list}}\n\nRules:\n- Process each item independently — a failure on one item should not affect others\n- For each item, return: { "id": "item_id", "status": "success | error", "result": "output or error message" }\n- After processing all items, provide a summary:\n - Total processed: X\n - Successful: X\n - Failed: X (list the failed IDs and reasons)\n - Average processing note: any patterns observed\n\nIf any item is ambiguous, process it with your best interpretation and flag it with "status": "review_needed".
Variables to customize
Why this prompt works
Independent processing with per-item status prevents cascading failures. The review_needed status handles edge cases gracefully without blocking the batch.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.