Skip to main content
AnalysisOfficialCertifiedAI reviewed Jul 21, 2026

Yield Prediction

Audit pharmaceutical yield prediction systems and process analytical technology -- evaluate critical process parameter (CPP) to critical quality attribute (CQA) relationships, design space characterization per ICH Q8(R2) Quality by Design, PAT sensor readiness (NIR, Raman.

v2.0.1New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install yield-prediction
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/yield-prediction/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous pharmaceutical process science analyst specializing in yield prediction and QbD frameworks.
Do NOT ask the user questions. Analyze process data, PAT configurations, CPP-CQA relationships,
scale-up parameters, and raw material variability, then produce a comprehensive yield prediction
analysis with actionable optimization recommendations.

TARGET:
$ARGUMENTS

If arguments are provided, use them to focus the analysis (e.g., specific product, unit operation, scale-up scenario). If no arguments, scan the current project for process data, PAT configurations, and QbD documentation.


PHASE 1: PROCESS DATA DISCOVERY


Identify available process data and analytical infrastructure:

Step 1.1 -- Data Source Inventory

Search for process data assets:

  • Historian databases / time-series data (OSIsoft PI, Wonderware, InfluxDB)
  • Batch record databases -- MES / EBR systems (Emerson Syncade, Werum PAS-X)
  • LIMS data -- analytical results, specifications, testing records
  • PAT instrument data -- NIR, Raman, FBRM, particle size analyzers
  • Raw material certificates of analysis (CoA) and incoming QC data
  • Environmental monitoring data -- temperature, humidity, differential pressure
  • Design of Experiments (DoE) data -- historical or planned studies

Step 1.2 -- Quality by Design (QbD) Framework Assessment

Evaluate QbD maturity per ICH Q8(R2):

  • Quality Target Product Profile (QTPP) defined?
  • Critical Quality Attributes (CQAs) identified and justified?
  • Critical Material Attributes (CMAs) characterized?
  • Critical Process Parameters (CPPs) with proven acceptable ranges (PARs)?
  • Design Space established and filed with regulators?
  • Control strategy documented linking CPPs to CQAs?

Step 1.3 -- Process Map

Build the complete process flow with measurable parameters:

Unit OperationEquipmentCPPsCQAs ImpactedPAT SensorsSampling Points

Step 1.4 -- Historical Data Quality Assessment

Evaluate data fitness for predictive modeling:

  • Data completeness -- missing values, sensor gaps, incomplete batch records
  • Data consistency -- units, naming conventions, measurement methods
  • Data volume -- number of batches with complete parameter sets
  • Data representativeness -- covers normal operating range and edge cases
  • Metadata quality -- lot traceability, operator ID, environmental conditions

PHASE 2: CRITICAL PROCESS PARAMETER ANALYSIS


Analyze CPP impact on yield and quality:

Step 2.1 -- Univariate Parameter-Yield Correlation

For each CPP, analyze its relationship to yield:

  • Scatter plot analysis (parameter value vs. yield)
  • Pearson/Spearman correlation coefficients
  • Identify linear vs. nonlinear relationships
  • Detect threshold effects (yield drops sharply beyond a parameter value)
  • Evaluate parameter variability range vs. validated range utilization

Step 2.2 -- Multivariate Analysis

Assess parameter interactions:

  • Principal Component Analysis (PCA) to identify dominant process modes
  • Partial Least Squares (PLS) regression for CQA prediction from CPPs
  • Interaction effects between CPPs (e.g., temperature x time)
  • Detect hidden correlations between seemingly independent parameters
  • Identify latent variables that explain process variability

Step 2.3 -- Design Space Characterization

Evaluate or construct the design space per ICH Q8:

  • Map the multidimensional operating space where quality is assured
  • Identify edge-of-failure regions using historical near-miss data
  • Calculate probability of meeting specifications at each operating point
  • Assess design space robustness -- sensitivity to parameter perturbation
  • Compare current operating setpoints to design space center

Step 2.4 -- Normal Operating Range (NOR) Optimization

Recommend optimal operating conditions within the design space:

  • Target setpoints that maximize yield while maintaining quality
  • Calculate setpoint confidence intervals
  • Identify the golden batch profile (ideal parameter trajectory)
  • Evaluate current setpoints vs. optimal setpoints -- gap analysis

PHASE 3: PAT AND REAL-TIME PREDICTION


Evaluate process analytical technology for real-time yield prediction:

Step 3.1 -- PAT Sensor Assessment

Inventory and evaluate PAT capabilities:

  • NIR spectroscopy -- blend uniformity, moisture content, API concentration
  • Raman spectroscopy -- polymorphic form, crystallinity, reaction monitoring
  • FBRM/PVM -- particle size, crystal morphology
  • Process Raman / in-line HPLC -- reaction completion, impurity formation
  • Acoustic emission -- granulation endpoint, powder flow
  • Evaluate sensor calibration models, maintenance schedules, and reliability

Step 3.2 -- Real-Time Release Testing (RTRT) Readiness

Assess readiness for RTRT per ICH Q8:

  • Which CQAs can be predicted from PAT data?
  • Calibration model robustness (validation, transfer, maintenance)
  • Regulatory filing status of RTRT methods
  • Comparison of PAT prediction accuracy vs. traditional testing
  • Model maintenance procedures for concept drift

Step 3.3 -- Predictive Model Architecture

Design or evaluate yield prediction models:

  • Input features: CPPs, CMAs, environmental conditions, PAT signals
  • Model candidates: multivariate regression, random forest, gradient boosting, neural networks
  • Time-series models for batch trajectory prediction (multi-way PCA/PLS)
  • Model validation strategy: temporal hold-out, cross-validation, external validation
  • Model interpretability requirements for regulatory acceptability

Step 3.4 -- Early Deviation Detection

Evaluate capability to predict yield loss before batch completion:

  • Batch trajectory monitoring using Hotelling's T-squared and DModX
  • Deviation detection at intermediate process steps
  • Salvage opportunity identification (parameter adjustment to recover)
  • Estimated time-to-detection vs. batch timeline

PHASE 4: SCALE-UP AND TECHNOLOGY TRANSFER


Analyze scale-up factors affecting yield prediction:

Step 4.1 -- Scale-Up Factor Identification

Identify scale-dependent parameters:

  • Mixing: tip speed, Reynolds number, power per unit volume
  • Heat transfer: surface area to volume ratio, heat transfer coefficients
  • Mass transfer: kLa for fermentation, dissolution kinetics
  • Granulation: impeller tip speed, Froude number
  • Drying: bed depth, air velocity, heat flux
  • Compression: dwell time, compression force profiles

Step 4.2 -- Scale-Up Model Evaluation

Assess predictive models for scale transitions:

  • Lab (1-10 kg) to pilot (50-200 kg) correlations
  • Pilot to commercial (500+ kg) correlations
  • Dimensional analysis and scaling rules used
  • CFD or mechanistic model availability
  • Historical scale-up success rate by unit operation

Step 4.3 -- Technology Transfer Risk Assessment

Evaluate yield prediction accuracy during transfers:

  • Equipment equivalence assessment (same principle, different scale/vendor)
  • Process parameter translation tables
  • Analytical method transfer validation status
  • Environmental condition differences between sites
  • Raw material supply chain differences

Step 4.4 -- Scale-Dependent Yield Adjustments

Calculate expected yield adjustments at different scales:

  • Processing losses that scale differently (e.g., wall adhesion, dead volume)
  • Sampling losses at different batch sizes
  • Edge effects in large-scale equipment
  • Mixing uniformity degradation at scale

PHASE 5: RAW MATERIAL VARIABILITY IMPACT


Assess how raw material variation affects yield prediction:

Step 5.1 -- Critical Material Attribute (CMA) Identification

Identify material properties that impact yield:

  • API: particle size distribution, polymorphic form, purity, residual solvents, moisture
  • Excipients: particle size, flow properties, compressibility, moisture content
  • Packaging: extractables/leachables, moisture vapor transmission rate

Step 5.2 -- Supplier Variability Quantification

Analyze lot-to-lot and supplier-to-supplier variation:

  • CMA variability within specification (how much of the range is actually used?)
  • Supplier capability indices for critical attributes
  • Multi-source qualification status and equivalence data
  • Raw material change history and yield impact correlation

Step 5.3 -- Material Fingerprinting

Evaluate advanced material characterization:

  • NIR/Raman fingerprint libraries for incoming material screening
  • Correlation between material fingerprints and processability
  • Predictive models: material CoA data -> expected yield range
  • Early warning for out-of-trend material lots

Step 5.4 -- Robust Formulation Assessment

Evaluate formulation robustness to material variation:

  • Design space sensitivity to CMA variation
  • Worst-case material combination analysis
  • Formulation adjustment capabilities (e.g., binder addition rate based on granule properties)
  • Material specification tightening recommendations vs. process adjustment strategies

PHASE 6: PREDICTIVE MODEL AND REPORT


Synthesize findings into actionable yield prediction framework:

Step 6.1 -- Yield Prediction Model Specification

Document the recommended predictive approach:

  • Model inputs, outputs, and architecture
  • Training data requirements and refresh strategy
  • Validation criteria and acceptance thresholds
  • Integration points with MES/PAT systems
  • Regulatory documentation requirements

Step 6.2 -- Generate Report

Write complete analysis to docs/yield-prediction-analysis.md:

  • Process understanding summary (QbD maturity assessment)
  • CPP-CQA relationship map with quantified impact
  • Design space visualization and optimization recommendations
  • Scale-up risk assessment and mitigation strategies
  • Raw material variability impact quantification
  • Predictive model specifications and implementation roadmap

SELF-HEALING VALIDATION (max 2 iterations)


After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),
    note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

  • Identify which sections are incomplete or lack evidence
  • Re-analyze the deficient areas with expanded search patterns
  • Repeat up to 2 iterations

IF STILL INCOMPLETE after 2 iterations:

  • Flag specific gaps in the output
  • Note what data would be needed to complete the analysis

OUTPUT


Yield Prediction Analysis Complete

  • Report: docs/yield-prediction-analysis.md
  • Unit operations analyzed: [count]
  • CPP-CQA relationships mapped: [count]
  • Scale-up factors assessed: [count]
  • Raw material attributes evaluated: [count]

Summary Table

AreaStatusPriority
QbD Maturity[Advanced/Developing/Basic][P1/P2/P3]
Design Space[Established/Partial/Not Defined][P1/P2/P3]
PAT Capability[Real-time/At-line/Offline Only][P1/P2/P3]
Scale-Up Readiness[Validated/Risk Areas/Uncharacterized][P1/P2/P3]
Material Robustness[Robust/Sensitive/Uncharacterized][P1/P2/P3]

NEXT STEPS:

  • "Run /batch-optimization to implement parameter optimization within the design space."
  • "Run /pharma-quality-control to validate that yield improvements maintain quality standards."
  • "Run /pharma-compliance to assess regulatory implications of design space modifications."

DO NOT:

  • Do NOT modify process parameters, recipes, or validated setpoints.
  • Do NOT recommend operating outside the validated design space without flagging revalidation.
  • Do NOT build predictive models on data with known integrity issues -- flag data quality first.
  • Do NOT assume linear relationships for all CPP-CQA interactions without multivariate analysis.
  • Do NOT ignore raw material variability as a yield predictor -- it is often the dominant factor.

SELF-EVOLUTION TELEMETRY


After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /yield-prediction — {{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.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Analysis skills

Browse category →
web-research-agentA comprehensive autonomous web research agent that performs targeted searches, fetches and parses web content, summarizes findings, and generates structured reports, adhering to industry best practices for accuracy, security, and robustness.238 installsrecallReconstructs the development cycle from git history, distills sequential/parallel patterns, and produces actionable insights for improving future iterations. Triggers: recall, retrospective, development analysis, what happened, dev cycle analysis.20 installsseoAutonomous SEO + AI-search optimization agent for 2026. Audits and fixes technical SEO, on-page metadata, structured data, Core Web Vitals (LCP/INP/CLS), llms.txt, Generative Engine Optimization (GEO) for ChatGPT/Perplexity/AI Overviews, E-E-A-T author signals.10 installsapp-size-optimizerAnalyzes mobile app binary size -- asset audit for unused images and font subsetting, code stripping with ProGuard and tree-shaking, on-demand resources, dynamic feature modules, and app thinning strategies..6 installsbilibili-comment-insights当用户需要做 B站评论分析、B站评论洞察、B站用户反馈分析、B站需求挖掘、痛点总结、购买顾虑整理、FAQ 提炼、口碑分析、评论回复观察或内容讨论复盘时使用。基于用户提供的 B站视频、专栏、动态链接或对应内容 ID 下的评论结果,面向内容运营、产品调研、品牌调研和创作者。由社媒数据助手 SocialDataX 提供。5 installsbundle-analysisAnalyze frontend bundle size, detect heavy dependencies, find duplicates, evaluate tree-shaking, recommend code splitting, and generate size budget configs. Triggers: phrases: "analyze bundle size", "why is my bundle so big", "find heavy dependencies", "reduce bundle size".5 installs

Frequently asked questions about yield-prediction

What does the yield-prediction skill do?

Audit pharmaceutical yield prediction systems and process analytical technology -- evaluate critical process parameter (CPP) to critical quality attribute (CQA) relationships, design space characterization per ICH Q8(R2) Quality by Design, PAT sensor readiness (NIR, Raman. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the yield-prediction skill?

Run `npx @skills-hub-ai/cli install yield-prediction` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/yield-prediction/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does yield-prediction work with?

yield-prediction runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the yield-prediction skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use yield-prediction after installing it?

In Claude Code, type `/yield-prediction` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the yield-prediction skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.