/agentic-awesome-skills:finite-batch-jobfrom agentic-awesome-skills
Builds a scheduled batch job that processes a fixed quota of identical items per run, logs progress, and self-disables when the queue empties. Useful for rate-limited or long-running tasks like processing videos, chats, or records.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A long list of identical items done in one heroic session usually dies halfway: the session runs out of context, the service enforces a documented quota, or the person has to babysit it for weeks. Small runs can finish the same work within the allowed quota. This skill first judges whether the work is really a batch, then builds a scheduled job that has an end: a stable-key queue, a fixed quota per run, a per-item retry cap, and a run log that detects both the finish and a stall.
The distinction from nearby skills: goal-loop and loop-library design prompt loops inside one agent session, resumable-implementation-contracts resumes multi-session coding work, and orchestrate-batch-refactor splits one large refactor into packets. None of them builds an unattended, rate-limited drip over hundreds of interchangeable items that disables its own scheduler entry when the queue is empty.
orchestrate-batch-refactor for a large refactor. Size alone decides nothing.Signs for (need at least 2, the first is required):
Stop signs (any one means no batch job):
Write the verdict in one explicit line: batch job (with the matched signs), endless job (no natural end, such as syncing new inbox items: a schedule without a quota and without self-shutdown), or not a batch job (naming the stop sign and the right alternative). An honest "no" is a success of this skill.
Then name the consumer in writing before the first command: who consumes the result, how you will know it is consumed (a metric), and where the final report goes. No answer means do not build it.
Build the queue once, one row per piece, with a stable key (video_id, chat_id, file path). A row number or anything recomputed on rebuild makes the job chew the same pieces forever.
CREATE TABLE items (key TEXT PRIMARY KEY, payload TEXT,
state TEXT DEFAULT 'todo', -- todo | claimed | ok | fail | skip
attempts INTEGER DEFAULT 0,
claim_token TEXT, lease_until INTEGER, retry_after INTEGER);
CREATE TABLE runs (ts TEXT, ok INTEGER, fail INTEGER, todo_left INTEGER);
Run several full cycles by hand all the way to the consumer and show the result to the user. Until the user approves, the scheduled entry stays disabled.
Pick a quota per run and compute out loud: pieces / (quota x runs per night) = days. If that is more than a couple of months, report the finish date under the allowed quota. Honor Retry-After within the approved schedule and pause on revoked access. Record the scheduler task name with the job so the job can disable that exact entry when it finishes.
Every run does exactly four moves:
take N unclaimed pieces -> do the work -> mark each piece ok | fail | skip -> record the run
If the list keeps growing, one run can do two halves: harvest new items (endless half), then process a quota of the backlog (finite half). Tell the user that only the finite half switches itself off.
runs table shows it.runs table and the consumer, not from the scheduler's exit code.If any check could not be run, report it as unverified rather than done.
Illustrative, not a measured test:
User request: Transcribe all 2,241 videos in my watch-later export, the API documentation permits 30 calls an hour.
Inputs: the export file, a working one-video transcription command, a scheduler.
Expected result: verdict "batch job (signs 1, 2, 4)"; a SQLite queue keyed by video_id;
one hand-run cycle shown to the user; a nightly entry with four hourly runs of 25, forecasting about 23 days;
the entry disables itself when every item is terminal and sends a final report.
runs table and the consumer.The skill creates a local SQLite file and one scheduler entry on the user's machine, and later disables that entry. It sends no data anywhere by itself; whatever the per-item work sends is the user's existing command and must already be authorized. Keep credentials out of the queue payload and the run log. Ask before enabling the schedule, and never batch an outward, paid or destructive action without the user's explicit approval for it.
goal-loop, loop-library, resumable-implementation-contracts, orchestrate-batch-refactor.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.2 plugins in one repository ship this exact skill · first indexed Dec 4, 2026
Other plugins' skills for the same job