batch-processing
Skill39 starsChanged 8 months agoMITView on GitHub
Batch Processing enables parallel AI task execution with progress tracking, error handling, rate limiting, and result aggregation.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- itallstartedwithaidea/claude-googleadsagentword for word, first seen May 21, 2026
- orbruno/gemini-workflows-ccplugintheir own version, first seen Feb 4, 2026
Other versions2 projects use a version of this.
Word for word · 1
- itallstartedwithaidea/claude-googleadsagent★ 2100% same
Edited · 0
None found.
Wrote their own version · 1
- orbruno/gemini-workflows-ccplugin★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- continuous-learningSkill
- entity-memory-managementSkill
- knowledge-base-injectionSkill
- long-horizon-workflowsSkill
- mcp-server-creationSkill
- memory-persistenceSkill
- multi-model-routingSkill
- parallel-agent-orchestrationSkill
- proactive-intelligenceSkill
- token-optimizationSkill
- adversarial-resilienceSkill
- agent-instinct-systemSkill
- anthropic-tool-masterySkill
- cognitive-scaffoldingSkill
- context-engineeringSkill
- multi-harness-portabilitySkill
- prompt-architectureSkill
- self-healing-agentsSkill
- session-archaeologySkill
- verification-loopsSkill
- ad-copy-generationSkill
- audience-targetingSkill
- budget-optimizationSkill
- competitor-analysisSkill
- conversion-trackingSkill
- google-ads-auditSkill
- keyword-researchSkill
- landing-page-auditSkill
- pmax-optimizationSkill
- quality-score-optimizationSkill
- remarketing-strategySkill
- shopping-adsSkill
- ci-cd-pipelinesSkill
- cloudflare-workersSkill
- configuration-managementSkill
- edge-renderingSkill
- observabilitySkill
- service-discoverySkill
- ml-model-integrationSkill
- programmatic-videoSkill
- web-asset-generationSkill
- ai-chat-studioSkill
- assistant-presetsSkill
- knowledge-base-ragSkill
- low-code-generationSkill
- workflow-orchestrationSkill
- bioinformaticsSkill
- cheminformaticsSkill
- data-analysisSkill
- database-lookupSkill
- geospatial-analysisSkill
- machine-learningSkill
- research-methodologySkill
- scientific-writingSkill
- agent-security-scanningSkill
- codeql-semgrepSkill
- sandbox-hardeningSkill
- secret-protectionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 153
Use exponential backoff (2^attempt seconds) for rate limit retries
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Batch Processing
Part of Agent Skills™ by googleadsagent.ai™
Description
Batch Processing enables parallel AI task execution with progress tracking, error handling, rate limiting, and result aggregation. The agent processes large collections of items—documents, images, code files, API requests—through AI pipelines concurrently, managing throughput, failures, and partial results without losing work.
Single-item AI processing is straightforward; batch processing at scale introduces failures, rate limits, memory constraints, and the need for resumability. This skill handles these production realities: configurable concurrency limits, exponential backoff on rate limit errors, checkpoint-based resumability after crashes, and structured progress reporting that shows exactly which items succeeded, failed, or are pending.
The skill supports both homogeneous batches (same operation on every item) and heterogeneous batches (different operations routed by item type). Results are aggregated into structured reports with per-item status, timing, and error details. Failed items are automatically retried with backoff, and permanently failed items are collected into a dead-letter queue for manual inspection.
Use When
- Processing hundreds or thousands of items through an AI pipeline
- Translating, summarizing, or classifying large document collections
- Generating embeddings for a corpus of documents
- Running code analysis across an entire repository
- Batch-generating images, descriptions, or metadata
- Any task that processes items sequentially but could benefit from parallelism
How It Works
graph TD
A[Input Batch: N Items] --> B[Load Checkpoint: Resume if Exists]
B --> C[Partition into Work Chunks]
C --> D[Parallel Workers: Concurrency Limit]
D --> E[Worker 1: Process Item]
D --> F[Worker 2: Process Item]
D --> G[Worker K: Process Item]
E --> H{Success?}
F --> H
G --> H
H -->|Yes| I[Record Result]
H -->|Rate Limited| J[Backoff + Retry]
H -->|Failed| K[Retry Queue]
J --> D
K --> L{Retries Exhausted?}
L -->|No| D
L -->|Yes| M[Dead Letter Queue]
I --> N[Save Checkpoint]
N --> O[Progress Report]
O --> P{All Done?}
P -->|No| D
P -->|Yes| Q[Final Aggregation Report]The engine partitions work across concurrent workers, respecting rate limits and retry budgets. Checkpoints persist after each chunk, enabling crash recovery. The dead-letter queue captures permanently failed items for human review.
Implementation
import asyncio
from dataclasses import dataclass, field
from time import time
import json
@dataclass
class BatchItem:
id: str
input: dict
status: str = "pending"
result: dict | None = None
error: str | None = None
attempts: int = 0
duration_ms: float = 0
@dataclass
class BatchResult:
total: int
succeeded: int
failed: int
dead_letter: int
duration_s: float
items: list[BatchItem] = field(default_factory=list)
class BatchProcessor:
def __init__(self, concurrency: int = 5, max_retries: int = 3, checkpoint_file: str = "batch_checkpoint.json"):
self.concurrency = concurrency
self.max_retries = max_retries
self.checkpoint_file = checkpoint_file
self.semaphore = asyncio.Semaphore(concurrency)
async def process(self, items: list[BatchItem], processor_fn) -> BatchResult:
items = self._load_checkpoint(items)
start = time()
pending = [i for i in items if i.status == "pending"]
tasks = [self._process_item(item, processor_fn) for item in pending]
await asyncio.gather(*tasks, return_exceptions=True)
return BatchResult(
total=len(items),
succeeded=sum(1 for i in items if i.status == "succeeded"),
failed=sum(1 for i in items if i.status == "failed"),
dead_letter=sum(1 for i in items if i.status == "dead_letter"),
duration_s=time() - start,
items=items,
)
async def _process_item(self, item: BatchItem, processor_fn):
async with self.semaphore:
while item.attempts < self.max_retries:
item.attempts += 1
start = time()
try:
item.result = await processor_fn(item.input)
item.status = "succeeded"
item.duration_ms = (time() - start) * 1000
self._save_checkpoint_item(item)
return
except RateLimitError:
await asyncio.sleep(2 ** item.attempts)
except Exception as e:
item.error = str(e)
item.duration_ms = (time() - start) * 1000
item.status = "dead_letter"
self._save_checkpoint_item(item)
def _save_checkpoint_item(self, item: BatchItem):
try:
data = json.loads(open(self.checkpoint_file).read()) if Path(self.checkpoint_file).exists() else {}
data[item.id] = {"status": item.status, "result": item.result, "error": item.error}
with open(self.checkpoint_file, "w") as f:
json.dump(data, f)
except Exception:
pass
def _load_checkpoint(self, items: list[BatchItem]) -> list[BatchItem]:
try:
data = json.loads(open(self.checkpoint_file).read())
for item in items:
if item.id in data:
item.status = data[item.id]["status"]
item.result = data[item.id]["result"]
except FileNotFoundError:
pass
return itemsBest Practices
- Set concurrency limits based on API rate limits, not just CPU cores
- Implement checkpoint-based resumability for any batch over 100 items
- Use exponential backoff (2^attempt seconds) for rate limit retries
- Report progress at regular intervals (every 10% or every 30 seconds)
- Collect dead-letter items separately for manual review and reprocessing
- Log per-item timing to identify slow items that drag down throughput
Platform Compatibility
| Platform | Support | Notes |
| Cursor | Full | Python/TS async execution |
| VS Code | Full | Terminal-based batch runs |
| Windsurf | Full | Batch workflow support |
| Claude Code | Full | Script execution |
| Cline | Full | Batch task management |
| aider | Partial | Sequential only |
Related Skills
- Workflow Orchestration
- Low-Code Generation
- Parallel Agent Orchestration
- Token Optimization
Keywords
batch-processing parallel-execution rate-limiting retry-logic checkpointing dead-letter-queue progress-tracking concurrency
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

