agilab-prompt-eval-regression
Design and maintain regression evaluations for AGILAB prompts, local/remote LLM flows, notebook import classification, generated-code routing, agent-skill…
от ThalesGroup★ 23 звезды на GitHub
Установить agilab-prompt-eval-regression в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AGILAB Prompt Eval Regression
Use this skill when AGILAB behavior depends on a prompt, model response, or LLM-assisted classification. The goal is not to make tests depend on live model luck. The goal is to turn prompt-sensitive workflows into deterministic regression surfaces with clear fixtures, expected decisions, and replayable evidence.
Scope
Trigger this skill for changes touching:
- notebook import cell classification, manager/worker tagging, stage naming, or template selection;
- generated code snippets, prompt-to-code repair, local LLM autofix, or pipeline generation;
pre_prompt.json, prompt templates, model defaults, provider capability checks, or OpenAI/Ollama/GPT-OSS routing;- agent skills whose behavior depends on prompt wording;
- documentation that claims an LLM-assisted workflow is reliable, deterministic, or safe.
Evaluation Pattern
Prefer a three-layer eval:
- Static prompt contract: prompt inputs are bounded, redacted, and include enough task context without leaking private paths or secrets.
- Decision fixture: deterministic fixtures assert classification/routing decisions without calling a live model.
- Optional live smoke: model-backed checks are opt-in, tagged, bounded by timeout, and record model/provider/version in evidence.
Do not add live LLM calls to default unit tests. If a live model is useful, gate it behind an explicit environment variable or workflow profile and document the expected cost, timeout, and failure mode.
Test Design
- Use small notebook, prompt, and traceback fixtures that exercise the failure mode without external services.
- Assert on structured decisions, not exact free-form prose.
- Include negative cases: ambiguous cell, unsafe generated code, missing model, unreachable local endpoint, unsupported provider, and prompt too large.
- Freeze schema fields for prompt-eval evidence:
schema,producer,fixture,decision,modelwhen used,status, and remediation. - Keep expected outputs human-readable enough for a reviewer to spot drift.
- Redact secrets before storing prompt, response, or traceback evidence.
AGILAB-Specific Checks
For versioned skill evaluations, use the existing agent-run producer and the native evaluation receipt workflow. Freeze the complete skill, fixtures, grader, declared evaluator configuration, and case cohort before execution. Record installation, routing, task, and persistence observations separately; retain failed runs and missing observations in the original denominator. Verify the saved receipt before reporting its outcome. A verified receipt establishes content consistency; it does not independently prove that a host selected the skill or executed the frozen grader.
- Notebook import must fail closed when manager/worker role is ambiguous and no metadata or user decision exists.
- Generated code should be routed through existing review/sandbox boundaries, not autorun silently.
- Local LLM readiness should report actionable setup steps instead of falling back to a different provider.
- Provider capability mismatches should be detected up front; do not introduce automatic API/client fallback rewrites.
- Prompt changes should update docs only when deterministic fixtures or live evidence support the new behavior.
Validation Commands
Start with targeted tests for the touched surface:
uv --preview-features extra-build-dependencies run pytest -q -o addopts='' test/test_pipeline_ai_support.py
uv --preview-features extra-build-dependencies run pytest -q -o addopts='' test/test_notebook_import_preflight.py test/test_notebook_pipeline_import_report.py
uv --preview-features extra-build-dependencies run pytest -q -o addopts='' test/test_agent_config_and_capabilities.py
For skill or prompt-runbook changes:
uv --preview-features extra-build-dependencies run python tools/workflow_parity.py --profile skills
For optional live local-model validation, first print the exact command and keep the result out of the default regression path:
uv --preview-features extra-build-dependencies run python tools/launch_gpt_oss.py --print-only
Close with which layer was validated: static fixture only, deterministic decision fixture, or opt-in live model smoke.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/evaluation-receipts.md
FAQ
Что делает скилл agilab-prompt-eval-regression?
Design and maintain regression evaluations for AGILAB prompts, local/remote LLM flows, notebook import classification, generated-code routing, agent-skill behavior, and prompt-driven repair or analysis features. Use when a change touches prompt templates, model defaults, local LLM readiness, notebook-to-project import, code generation, or AI-assisted UX.
Как установить скилл agilab-prompt-eval-regression?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agilab-prompt-eval-regression запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…