Command Palette

Search for a command to run...

Назад к скиллам
скилл № 16545

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от 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:

  1. Static prompt contract: prompt inputs are bounded, redacted, and include enough task context without leaking private paths or secrets.
  2. Decision fixture: deterministic fixtures assert classification/routing decisions without calling a live model.
  3. 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, model when 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.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить agilab-prompt-eval-regression с