# Make tool batch counter atomic

> Ensure tool batch IDs increment atomically in tool_dispatcher to avoid collisions during concurrent batches.

- Skill: `tools-only/make-tool-batch-counter-atomic` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/make-tool-batch-counter-atomic`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/make-tool-batch-counter-atomic/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/make-tool-batch-counter-atomic

---

# Make tool batch counter atomic

Ensure tool batch IDs increment atomically in tool_dispatcher to avoid collisions during concurrent batches.

## Acceptance Criteria

Batch IDs are unique under concurrent execution; counter state is updated atomically; no new type errors.


