What problem does it solve? Evaluating an LLM prompt-injection guardrail requires balancing attack detection against false positives on benign prompts, and ad-hoc testing cannot prove a model meets targets like FPR < 1.5% or P95 latency < 30ms. This Skill standardizes the metric calculations, adversarial robustness testing, and latency benchmarking needed to rigorously assess guardrail models. ## Core Features & Use Cases - Standard Metric Computation: Calculate accuracy, precision, recall, F1, FPR, and ROC-AUC from confusion matrices using scikit-learn. - Adversarial Robustness Suite: Benchmark models against obfuscated attack slices including leetspeak, Base64 payloads, and spaced text. - Latency Benchmarking: Measure P50, P95, and P99 inference latency in milliseconds with warmup runs. - Use Case: Compare a TF-IDF baseline against a fine-tuned DeBERTa-v3 classifier by running both through the robustness slices and confirming the false positive rate stays under 1.5% on benign prompts. ## Quick Start Evaluate my guardrail model's predictions against the test set and report F1, false positive rate, ROC-AUC, and per-slice adversarial robustness accuracy.