Automation
batch-coordinator avatar

batch-coordinator

Validates and coordinates batch study guide operations, preventing errors by enforcing template compatibility, file availability, and source-only policies before agent execution.

Introduction

The batch-coordinator is a critical guardrail skill designed to orchestrate the generation of pharmacy study guides when dealing with multi-file inputs. It acts as an intelligent intermediary between the user's batch commands and the downstream execution agents, such as batch-separate-processor or batch-merge-orchestrator. By intercepting commands involving multiple files, semicolon-separated lists, or merge flags, the coordinator ensures that all prerequisites are satisfied before expensive LLM processing begins. This proactive validation minimizes wasted token usage and ensures consistent output quality across complex academic material.

  • Automatically detects batch processing intent (Separate vs. Merge) based on command arguments and flags.

  • Conducts a multi-stage validation checklist covering file existence, accessibility, duplicate identification, and estimated token load.

  • Enforces strict template compatibility to ensure drug charts, learning objectives, and clinical assessments are matched with correct file content.

  • Upholds a rigorous source-only policy, ensuring that generated content adheres strictly to provided lecture notes while permitting researched mnemonics from a cached repository.

  • Provides clear feedback and soft-blocking for missing files, incompatible content types, or ambiguous intent, such as when users omit the merge flag.

  • Typical inputs include semicolon-separated strings of medical text files or directory paths containing lecture notes.

  • Expected outputs are validated execution plans, including explicit confirmations for batch-separate-processor (N files to N outputs) or batch-merge-orchestrator (N files to 1 comprehensive study guide).

  • Operational constraints include strict adherence to pharmacy-specific templates, such as drugs-3-tab-excel, key-comparisons-excel, and clinical-assessment-html.

  • Operates as a guardrail skill, meaning it prioritizes user confirmation before launching automated subprocesses, thus maintaining architectural isolation and preventing cross-contamination of study materials.

Repository Stats

Stars
1
Forks
0
Open Issues
0
Language
Python
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 09:33 PM
View on GitHub