Sponsor Suno AI Music arrow_forward
Slash Command

Implement Batch Processing

Implement high-performance batch API operations with job queues, progress

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Version
2.0.0

What Implement Batch Processing is

Implement Batch Processing is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Implement Batch Processing gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Implement Batch Processing

Claude Code

  1. Download implement-batch-processing.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/api-development/api-batch-processor/commands/implement-batch-processing.md, shared under the repository's MIT license. Read the full file on GitHub.

Creates high-performance batch API processing infrastructure for handling bulk operations efficiently. Implements job queues with Bull/BullMQ, real-time progress tracking, transaction management, and intelligent error recovery. Supports millions of records with optimal resource utilization.

When to Use

Use this command when:

  • Processing thousands or millions of records in bulk operations
  • Import/export functionality requires progress feedback
  • Long-running operations exceed HTTP timeout limits
  • Partial failures need graceful handling and retry logic
  • Resource-intensive operations require rate limiting
  • Background processing needs monitoring and management
  • Data migration or synchronization between systems

Do NOT use this command for:

  • Simple CRUD operations on single records
  • Real-time operations requiring immediate responses
  • Operations that must be synchronous by nature
  • Small datasets that fit in memory (<1000 records)

Prerequisites

Before running this command, ensure:

  • Redis is available for job queue management
  • Database supports transactions or bulk operations
  • API rate limits and quotas are understood
  • Error handling strategy is defined
  • Monitoring infrastructure is in place

Process

Step 1: Analyze Batch Requirements

The command examines your data processing needs:

  • Identifies optimal batch sizes based on memory and performance
  • Determines transaction boundaries for consistency
  • Maps data validation requirements
  • Calculates processing time estimates
  • Defines retry and failure strategies

Step 2: Implement Job Queue System

Sets up Bull/BullMQ for reliable job processing:

  • Queue configuration with concurrency limits
  • Worker processes for parallel execution
  • Dead letter queues for failed jobs
  • Priority queues for urgent operations
  • Rate limiting to prevent overload

Step 3: Create Batch API Endpoints

Implements RESTful endpoints for batch operations:

  • Job submission with validation
  • Status checking and progress monitoring
  • Result retrieval with pagination
  • Job cancellation and cleanup
  • Error log access

Step 4: Implement Processing Logic

Creates efficient batch processing workflows:

  • Chunked processing for memory efficiency
  • Transaction management for data integrity
  • Progress reporting at configurable intervals
  • Error aggregation and reporting
  • Result caching for retrieval

Step 5: Add Monitoring & Observability

Integrates comprehensive monitoring:

  • Job metrics and performance tracking
  • Error rate monitoring and alerting
  • Queue depth and processing rate
  • Resource utilization metrics
  • Business-level success metrics

Output Format

The command generates a complete batch processing system:

batch-processing/
├── src/
│   ├── queues/
│   │   ├── batch-queue.js
│   │   ├── workers/
│   │   │   ├── batch-processor.js
│   │   │   └── chunk-worker.js
│   │   └── jobs/
│   │       ├── import-job.js
│   │       └── export-job.js
│   ├── api/
│   │   ├── batch-controller.js
│   │   └── batch-routes.js
│   ├── services/
│   │   ├── batch-service.js
│   │   ├── validation-service.js
│   │   └── transaction-manager.js
│   └── utils/
…

Examples

Example 1: User Import with Validation and Progress

Scenario: Import 100,000 users from CSV with validation and deduplication

Generated Implementation:

// queues/batch-queue.js
import Queue from 'bull';
import Redis from 'ioredis';

const batchQueue = new Queue('batch-processing', {
  redis: {
    host: process.env.REDIS_HOST,
    port: process.env.REDIS_PORT
  },
  defaultJobOptions: {
    removeOnComplete: 100,
    removeOnFail: 500,
    attempts: 3,
    backoff: {
      type: 'exponential',
      delay: 2000
    }
  }
…

Example 2: Export with Streaming and Compression

Scenario: Export millions of records with streaming and compression

Generated Streaming Export:

// services/export-service.js
import { Transform } from 'stream';
import zlib from 'zlib';

class ExportService {
  async createExportJob(query, format, options) {
    const job = await batchQueue.add('data-export', {
      query,
      format,
      options
    });

    return job;
  }

  async processExportJob(job) {
    const { query, format, options } = job.data;
…

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Implement Batch Processing?

Implement Batch Processing is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Implement high-performance batch API operations with job queues, progress

How do I install Implement Batch Processing in Claude Code?

Download implement-batch-processing.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Implement Batch Processing in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Implement Batch Processing safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.