Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/centminmod/my-claude-code-setup/batch-operations-promptgit clone --depth 1 https://github.com/centminmod/my-claude-code-setupWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/centminmod/my-claude-code-setup/batch-operations-prompt)<a href="https://agentmods.dev/commands/centminmod/my-claude-code-setup/batch-operations-prompt"><img src="https://agentmods.dev/badge/commands/centminmod/my-claude-code-setup/batch-operations-prompt.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01224 |
| Opus 5 | $0.00000 | $0.00612 |
| Sonnet 5 | $0.00000 | $0.00245 |
| Haiku 4.5 | $0.00000 | $0.00122 |
Grade A, and why
batch-operations-prompt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Batch Operations Prompt
Optimize prompts for multiple file operations, parallel processing, and efficient bulk changes across a codebase. This helps Claude Code work more efficiently with TodoWrite patterns.
Usage Examples
Basic Usage
"Convert to batch: Update all test files to use new API" "Batch prompt for: Rename variable across multiple files" "Optimize for parallel: Add logging to all service files"
With File Input
/batch-operations-prompt @path/to/operation-request.md
/batch-operations-prompt @../refactoring-plan.txt
Complex Operations
"Batch refactor: Convert callbacks to async/await in all files" "Parallel update: Add TypeScript types to all components" "Bulk operation: Update import statements across the project"
Instructions for Claude
When creating batch operation prompts:
Input Handling
- If
$ARGUMENTSis provided, read the file at that path to get the operation request to optimize - If no
$ARGUMENTS, use the user's direct input as the operation to optimize - Support relative and absolute file paths
- Identify Parallelizable Tasks: Determine what can be done simultaneously
- Group Related Operations: Organize tasks by type and dependency
- Create Efficient Sequences: Order operations to minimize conflicts
- Use TodoWrite Format: Structure for Claude's task management
- Include Validation Steps: Add checks between batch operations
Batch Prompt Structure
1. Overview
- Scope of changes
- Files/patterns affected
- Expected outcome
2. Prerequisite Checks
- Required tools/dependencies
- Initial validation commands
- Backup recommendations
3. Parallel Operations
- Independent tasks that can run simultaneously
- File groups that don't conflict
- Read operations for gathering information
4. Sequential Operations
- Tasks with dependencies
- Operations that modify same files
- Final validation steps
Optimization Strategies
File Grouping
## Batch Operation: [Operation Name]
### Phase 1: Analysis (Parallel)
- Search for all affected files using Glob/Grep
- Read current implementations
- Identify patterns and dependencies
### Phase 2: Implementation (Grouped)
Group A (Independent files):
- File1.js: [specific change]
- File2.js: [specific change]
Group B (Related components):
- Component1.tsx: [change]
- Component1.test.tsx: [related change]
### Phase 3: Validation (Sequential)
1. Run linter on modified files
2. Execute test suite
3. Build verification
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 207 lines · 0 tokens per session scan A 2a0164b03975
batch-operations-prompt is a command published in the GitHub repository centminmod/my-claude-code-setup (2,614 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,224 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
improve-prompt
Improve any prompt — for LLMs/chat/agents or generative image/video/audio models. Model-agnostic; interviews to fill real gaps, then returns a rewritten prompt plus a short rationale.
evaluate
Score the prompt I just wrote and give me one thing to sharpen.
t_metaprompt_workflow
Based on the High Level Prompt follow the Workflow, to create a new prompt in the Specified Format. Before you start, WebFetch everything in the Documentation.
enhance
Intelligently enhances user input by generating a structured task map, refining an ambiguous query, or improving a code snippet.
/spdd-reasons-canvas
Generate REASONS-Canvas structured prompts from business context without external template.
prompt-show
Display full details of a saved prompt by ID.