- Home
- Skills
- Workflow Automation
- Batch Count — Paste Item Counts, Get Batch Totals
More screenshots
Works with the AI Agents you already use
Batch Count — Paste Item Counts, Get Batch Totals
Paste CSV rows of item counts and a batch size, and get the number of batches and the final batch size for each row.
$5
Batch Count — Paste Item Counts, Get Batch Totals
Example session with this skill installed
Run python3 scripts/batch_count.py examples/input.csv to see how many batches of 10 each row makes and what is left in the final batch.
- Read your context and instructions
- Compiled the batch count
Batch Count — batch totals
Rows: 3 readable rows; 0 unreadable rows
| Line | Label | Items | Batch size | Batches | Final batch items | Status | Reason |
|---|---|---|---|---|---|---|---|
| 2 | Boxes | 25 | 10 | 3 | 5 | readable | |
| 3 | Even | 20 | 10 | 2 | 10 | readable | |
| 4 | Zero | 0 | 10 | 0 | 0 | readable | |
Boxes: 25 items in batches of 10 make 3 batches, the last holding 5. Even: 20 items make 2 full batches. Zero: 0 items make 0 batches. Rows with invalid values would be listed as unreadable with their line number while the rest continue.
Connects securely to your tools. The creator never sees your data.
About this skill
Batch Count is a small Python script that reads CSV rows (label, items, batch_size) and reports, for each row, how many batches the items make and how many items sit in the final batch.
What it does
- Reads a CSV file, or pasted CSV on standard input.
- Prints a Markdown report (or CSV with --format csv) with line number, values, batches, final batch items, status, and reason.
- Each row is independent: a bad row is named by line and marked unreadable, and the good rows still come out.
- Counts accept whole numbers and standard thousands grouping such as 1,200.
- Rejects negatives, fractions, a zero batch size, and oversized values.
- Zero items is allowed; batch_size must be positive.
Inputs and limits
- CSV headings are exactly label,items,batch_size.
- Abbreviations such as 1.2k are not inferred; expand them to whole numbers.
- Maximum input is 100,000 bytes and 5,000 data rows.
- Reads UTF-8 or UTF-16 files. Use --output to write a new file; existing files are never overwritten.
Requirements
Python 3.9 or later. No third-party packages.
In the package
Script, tests, and a runnable example (examples/input.csv with its real output).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.
Abbreviated counts such as 1.2k are not inferred; write whole numbers. Invalid rows are reported by line and not corrected. Maximum input is 100,000 bytes and 5,000 data rows. Requires Python 3.9 or later.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.9+