Use this skill whenever a user wants to evaluate whether an existing offline / reusable workflow is worth converting into an LLM-driven workflow. Triggers on...
集成
LLM Regression Monitor
试用Use this skill when the user wants to monitor LLM behavior over time and get alerted when outputs change unexpectedly. Triggers on requests like "set up LLM regression monitoring", "alert me when my prompts start behaving differently", "watch my LLM for regressions", "run behavioral tests on my AI outputs on a schedule", or "detect when my model starts drifting". Handles first-time setup, baseline capture, scheduled monitoring, and alert configuration via WhatsApp, Slack, Discord, or email.
它能做什么
Use this skill when the user wants to monitor LLM behavior over time and get alerted when outputs change unexpectedly. Triggers on requests like "set up LLM regression monitoring", "alert me when my prompts start behaving differently", "watch my LLM for regressions", "run behavioral tests on my AI outputs on a schedule", or "detect when my model starts drifting". Handles first-time setup, baseline capture, scheduled monitoring, and alert configuration via WhatsApp, Slack, Discord, or email.
技能文档
LLM Regression Monitor
Overview
Automated behavioral regression monitoring for LLM apps. Captures baseline outputs, detects drift on a schedule, and fires WhatsApp or Slack alerts the moment something regresses.
Workflow Decision Tree
User request
├── "set up monitoring" / first time → Full Setup (steps 1–5)
├── "run the monitor now" → Step 4 only
├── "I changed my prompt/model" → Step 3b (update baseline)
└── "configure alerts" → Step 5
Step 1 — Install
pip install llm-behave[semantic] pyyaml requests
Step 2 — Create test_suite.yaml
Create in the project root. Minimal example:
tests:
- name: support_response
prompt: "A customer says they never received their order. How do you respond?"
provider: openai # openai | anthropic | ollama | custom
model: gpt-4o-mini
assertions:
- type: tone
expected: "empathetic"
drift:
enabled: true
threshold: 0.80
Set the API key for the chosen provider:
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-... # if using anthropic
# ollama needs no key
Read references/test-suite-format.md for the full field spec.
Read references/providers.md for env vars and Ollama setup.
Step 3 — Capture Baselines
python scripts/capture_baseline.py
Saves ground-truth outputs to .llm_behave_baselines/. Run once before monitoring begins.
3b — Update after intentional prompt/model change
# Reset one test
python scripts/capture_baseline.py --update-baseline
# Reset all
python scripts/capture_baseline.py --force
Step 4 — Run the Monitor
python scripts/run_monitor.py
Writes monitor_report.json. Exits 0 on all-pass, 1 on any failure (CI-compatible).
Step 5 — Configure Alerts
# WhatsApp (requires wacli installed and logged in)
export ALERT_WHATSAPP_TO="+1234567890"
# Slack
export ALERT_SLACK_WEBHOOK="https://hooks.slack.com/services/..."
Add to .env in project root — scripts load it automatically. Send via:
python scripts/send_alert.py
Silent on green runs. Logs every alert to monitor_alerts.log regardless.
Step 6 — Schedule with OpenClaw Cron
Confirm the schedule with the user (default: 9am daily), then add:
- Schedule:
0 9 * * * - Command:
python run_monitor.py && true || python send_alert.py - Directory: project root (where
test_suite.yamllives)
The || send_alert.py fires only when run_monitor.py exits 1 (failures found).
Common Errors
| Error | Fix |
|---|---|
llm-behave is not installed | pip install llm-behave[semantic] |
OPENAI_API_KEY is not set | Export key or add to .env |
No baseline found | Run step 3 first |
test_suite.yaml not found | Create it in project root |
| LLM call errors in report | API issue — not a regression |
相关技能
One-command AI product launch monitoring pipeline. Use when the user wants to track, discover, or analyze new AI product launches, releases, or announcements. Runs four stages automatically - RSS feed monitoring, web search enrichment, page screenshots, and trend analysis/scoring. Outputs a markdown report and structured JSON. Triggers on phrases like monitor AI product launches, track AI releases, AI launch report, what new AI products launched, product hunt AI monitoring, AI news roundup.
Diagnose, fix, and prevent agent skill trigger failures. Use when a skill doesn't activate, when skills trigger incorrectly, when troubleshooting "skill not...
Regression testing framework for AgentSkills. Analyzes a target skill, runs script-layer assertions and AI-layer semantic scoring, and outputs a Markdown rep...
One-click AI product launch monitoring pipeline. Use when tracking new AI product releases, monitoring competitor launches, generating trend reports from tech RSS feeds, or running automated product discovery. Integrates RSS monitoring, product info enrichment, screenshot capture, and trend analysis into a single command. Triggers on "product radar", "AI launch monitor", "track new AI products", "product release tracking", "AI trend report", or similar product intelligence workflows.
Benchmark AI API models over time and detect quality degradation. 7 standardized tests (reasoning, coding, writing, instruction-following, hallucination). Al...