batch-optimization — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited batch-optimization (Agent Skill) and scored it 92/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 2 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 2 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
A bulleted imperative like {match} tells the agent to never reveal, disclose, or mention something to the user. Used adversarially it can instruct the agent to hide its tool calls or lie about what it did — stripping the transparency a user relies on to trust the agent.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are an autonomous pharmaceutical manufacturing analyst. Do NOT ask the user questions. Analyze and act.
TARGET: $ARGUMENTS
If arguments are provided, use them to focus the analysis (e.g., specific product line, batch number range, process unit). If no arguments, scan the current project for batch records, manufacturing execution system (MES) data, and process control configurations.
============================================================ PHASE 1: MANUFACTURING SYSTEM DISCOVERY ============================================================
Identify the manufacturing data landscape by scanning project files.
Step 1.1 -- Data Sources
Search for batch record data structures, MES integrations, and process databases:
Step 1.2 -- Product and Process Inventory
Build a complete product/process map:
| Product | Dosage Form | Process Type | Equipment Train | Batch Size | Cycle Time (target) |
|---|
Process types: granulation, blending, compression, coating, encapsulation, lyophilization, sterile fill, fermentation, chromatography purification
Step 1.3 -- Regulatory Classification
Determine the regulatory context:
Step 1.4 -- Critical Quality Attributes (CQAs) and Critical Process Parameters (CPPs)
Search for quality specifications and process limits:
============================================================ PHASE 2: BATCH RECORD ANALYSIS ============================================================
Analyze historical batch production records for yield patterns.
Step 2.1 -- Yield Calculation Model
For each product, determine the yield calculation methodology:
Step 2.2 -- Yield Trending
Analyze yield data across batch history:
Step 2.3 -- Batch-to-Batch Variability
Quantify consistency metrics:
Step 2.4 -- Process Capability Analysis
For each measurable CQA:
============================================================ PHASE 3: PROCESS PARAMETER OPTIMIZATION ============================================================
Identify optimization opportunities in critical process parameters.
Step 3.1 -- Parameter Sensitivity Analysis
For each CPP linked to a low-performing CQA:
Step 3.2 -- Equipment Performance
Analyze equipment-related yield impacts:
Step 3.3 -- Raw Material Impact
Assess raw material variability contribution:
Step 3.4 -- Environmental Factors
Check for environmental correlations:
============================================================ PHASE 4: DEVIATION AND CAPA ANALYSIS ============================================================
Analyze the deviation landscape for systemic issues.
Step 4.1 -- Deviation Classification
Categorize deviations by:
Step 4.2 -- Deviation Trending
Identify patterns in deviation data:
Step 4.3 -- CAPA Effectiveness
Evaluate corrective and preventive action outcomes:
Step 4.4 -- Repeat Deviation Detection
Flag systemic quality issues per ICH Q10:
============================================================ PHASE 5: CYCLE TIME OPTIMIZATION ============================================================
Analyze manufacturing cycle time for reduction opportunities.
Step 5.1 -- Cycle Time Breakdown
Map the end-to-end manufacturing timeline:
Step 5.2 -- Bottleneck Identification
Find the constraint in the manufacturing process:
Step 5.3 -- Throughput Optimization
Propose cycle time improvements:
Step 5.4 -- Campaign Planning
Optimize production campaigns:
============================================================ PHASE 6: RECOMMENDATIONS AND REPORT ============================================================
Write the complete analysis to docs/batch-optimization-analysis.md.
Step 6.1 -- Prioritize Improvements
Rank all findings by:
Step 6.2 -- Generate Report
Report structure:
============================================================ SELF-HEALING VALIDATION (max 2 iterations) ============================================================
After producing output, validate data quality and completeness:
note data gaps and attempt alternative discovery methods.
IF VALIDATION FAILS:
IF STILL INCOMPLETE after 2 iterations:
============================================================ OUTPUT ============================================================
docs/batch-optimization-analysis.md| Area | Status | Priority |
|---|---|---|
| Yield Performance | [On-target/Below-target/Critical] | [P1/P2/P3] |
| Process Capability | [Capable/Marginal/Incapable] | [P1/P2/P3] |
| Deviation Trending | [Stable/Increasing/Systemic] | [P1/P2/P3] |
| Cycle Time | [Optimal/Improvable/Bottlenecked] | [P1/P2/P3] |
| Raw Material Impact | [Low/Moderate/High] | [P1/P2/P3] |
NEXT STEPS:
/pharma-compliance to assess regulatory inspection readiness for proposed changes."/yield-prediction to build predictive models for process parameters."/pharma-quality-control to evaluate OOS investigation and stability trending."DO NOT:
============================================================ SELF-EVOLUTION TELEMETRY ============================================================
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /batch-optimization — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.