/workflow-engineering:jev-batch-decisionsfrom workflow-engineering
Splits large text documents and record collections into bounded batches, evaluates typed decisions with TypeSafe Jev through OpenRouter, and aggregates the results with deterministic reducers or a recursive Jev decision tree. Use for bulk classification, evidence screening, rubric scoring, and document-wide decision questions.
Ships in workflow-engineering. 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; scripts run unread.
Turn a large-input question into explicit decision rubrics, bounded map requests,
and an auditable answer. Use the bundled runner instead of writing another API
client. Jev returns choice, score, and noul decisions; it does not generate
arbitrary JSON objects, extract open-ended quotations, or write summaries.
context, which accompanies every request. A fragment cannot infer a
qualification or exception that exists only in another fragment.questions, review thresholds, and reducers. Express uncertainty
explicitly with an unknown choice where appropriate.Commands below are relative to the loaded bundle's parent. Replace the bundle prefix with its actual path when necessary. Generated files belong outside it.
uv run --script skills/jev-batch-decisions/scripts/jev_batch.py --job job.json --input records.jsonl handbook.md --out planned --dry-run
uv run --script skills/jev-batch-decisions/scripts/jev_batch.py --job job.json --input records.jsonl handbook.md --out decisions
uv run --script skills/jev-batch-decisions/scripts/jev_batch.py --job job.json --input records.jsonl handbook.md --out decisions --resume
plan.json: source hashes, complete chunk coverage, request sizes,
map calls, and a conservative upper bound on reduce calls. All map inputs are
checked before inference starts. Split or restructure an oversized record;
the runner refuses to truncate it.OPENROUTER_API_KEY environment variable. A live run sends
the selected content to OpenRouter and consumes that account's credits. A
user's request to run the model authorizes those calls; do not ask again.
Use synthetic records for skill tests. Never print, persist, or embed the key.https://openrouter.ai/api/alpha/decisions and
typesafe/jev-1.13, not chat completions. Native question keys do not guide
inference: the runner puts each item's explicit locator in its instructions.batch_items controls independent items in one native request; concurrency
controls simultaneous HTTP requests. This is application-side batching, not
a provider asynchronous batch job. Start small and compare batched decisions
with single-item controls before scaling a new rubric.report.json status complete and complete map coverage. Inspect
decisions.jsonl, aggregates.json, and, for semantic reduction,
reduce-nodes.jsonl plus final.json. The lineage points back to exact
source spans/rows in chunks.jsonl. Unknowns remain visible.--resume with the unchanged job and inputs to reuse validated request
checkpoints. A different contract, source, or runner requires a fresh output
directory. The request cap includes attempts from earlier invocations.Report the decision, scope (records versus fragments versus documents), review count, source locations, actual calls, reported tokens/cost, and elapsed time. For prose, compose it from the validated results and inspect the source spans supporting consequential claims. Do not attribute generated prose or extracted facts to Jev. Treat confidence as a model score, not demonstrated calibration. Measure efficiency with the same data and rubrics; concurrency can reduce wall time while batching can repeat more schema/context tokens.
agents/openai.yaml (opens in a new tab)assets/examples/tickets.json (opens in a new tab)assets/templates/job.json (opens in a new tab)references/aggregation.md (opens in a new tab)references/api-and-recovery.md (opens in a new tab)references/job-contract.md (opens in a new tab)scripts/jev_batch.py (opens in a new tab)scripts/jev_contract.py (opens in a new tab)scripts/jev_documents.py (opens in a new tab)scripts/jev_reduce.py (opens in a new tab)scripts/jev_transport.py (opens in a new tab)scripts/test_jev_batch.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin workflow-engineering5 skills in this plugin
/pi-durableBuilds independent Pi Durable applications with persistent event services, reconnectable chat, bounded specialist subagents, and requested trace, population or Pareto evolution. Use for PR agents, durable queues, recovery, Windows/macOS services, or evidence-based improvement of prompts, tools and scripts./pi-mentorDesign readable and reliable ZX scripts that use Pi as the coding agent and coordinate terminal tools such as gh, fd, rg, and standard shell commands. Use when Codex needs to structure a new script, refine an existing ZX + Pi workflow, separate prompts from orchestration, improve loop clarity, choose prompt file layouts, or document durable lessons about prompt design and script execution for constrained models./repository-reviewer-creatorCreates or updates a standalone reviewer skill tailored to a particular repository, using project evidence to define change-specific review rules, security boundaries, safe validation, and actionable findings. Use when asked to generate a reviewer for a repository or calibrate its review skill./zx-workflow-authorGenerate or improve a standalone zx workflow that prepares bounded runtime context and relevant tool routes for a recurring code-assistant task. Use for context handoff to the current agent or autonomous Codex, Copilot, pi, OpenCode, or other agent executions coordinated through validation, justified repair loops, and gated delivery.