# Hive.batch Ledger

> Track per-item status when processing collections to prevent skipped or duplicated items.

- Skill: `majiayu000/hive-batch-ledger` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/hive-batch-ledger`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/hive-batch-ledger/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/hive-batch-ledger

---


## Operational Protocol: Batch Progress Ledger

When processing a collection of items, maintain a batch ledger in `_batch_ledger`.

Initialize when you identify the batch:
- `_batch_total`: total item count
- `_batch_ledger`: JSON with per-item status

Per-item statuses: pending → in_progress → completed|failed|skipped

- Set `in_progress` BEFORE processing
- Set final status AFTER processing with 1-line result_summary
- Include error reason for failed/skipped items
- Update aggregate counts after each item
- NEVER remove items from the ledger
- If resuming, skip items already marked completed

