# Batch Claude Runner

> Run Claude programmatically against collections of files in the codebase. Use for batch analysis: scrubbing sensitive data, auditing style violations, security reviews.

- Skill: `imbue-ai/batch-claude-runner` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add imbue-ai/batch-claude-runner`
- Raw SKILL.md: https://api.skillmd.com/api/skills/imbue-ai/batch-claude-runner/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: imbue-ai (https://skillmd.com/u/imbue-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/imbue-ai/batch-claude-runner

---


# Batch Claude Runner

Runs Claude against batches of files, collecting structured findings into a summary report.

## Quick Start

```bash
# Basic usage
python .claude/skills/batch-claude-runner/scripts/batch_claude_runner.py \
  --pattern "**/*.py" \
  --prompt "Check for hardcoded credentials or API keys."

# See all options
python .claude/skills/batch-claude-runner/scripts/batch_claude_runner.py --help
```

## Key Options

- `--pattern` / `-p`: Glob pattern for files (required, repeatable)
- `--exclude` / `-e`: Exclude pattern (repeatable)
- `--prompt`: Analysis prompt
- `--batch-size` / `-b`: Files per batch (default: 10)
- `--max-batches` / `-m`: Limit batches (for testing)
- `--dry-run`: Preview files without running
- `--output json`: Machine-readable output

## Notes

- Claude reads files via its Read tool and can make edits if prompted
- Structured JSON output is enforced automatically via `--json-schema`
- Use `--dry-run` first to verify file selection

