mlflow-agent-improvement
БесплатноБез исполняемых скриптовНе проверенFix or change an AI agent's behavior using MLflow traces and regression tests. Use for wrong answers, missing tool calls, new business rules, or context and…
от mlflow★ 92 звезды на GitHubОб этом скилле
Fix agent behavior
Reuse the user's expected behavior, applicable conditions, trace IDs/diagnosis, project configuration, and
existing tests. Both bugs and new business rules require EXPLORE → PLAN → IMPLEMENT → VERIFY.
Diagnosis-only requests belong to mlflow-trace-analysis; do not infer permission to change behavior from a request to
explain a trace.
Preserve the configured MLflow backend, experiment, and judge model. Use the project environment. Fetch exact regression-testing docs when API details are needed and check the installed MLflow version/signatures. Use llms.txt only for missing/moved pages. If docs or sibling skills are unavailable, use the local recipe and installed introspection; report a blocker if correctness cannot be established, without silently replacing APIs/backend/provider.
- For multiple reported issues, repeat the loop per issue: one diagnosis and targeted change at a time.
Step 1: Explore: trace-grounded diagnosis before edits
Consume an existing diagnosis; otherwise use mlflow-trace-analysis when available. Fetch the full trace (mlflow traces get --trace-id <ID>, stderr separate from JSON) and inspect LLM instructions/messages, emitted tool
calls, tool arguments/results, retrieval/filtering, and required tools that never ran. For multi-turn issues
inspect preceding turns too. If tracing is missing, use mlflow-trace-instrumentation when available and
verify a real persisted trace before diagnosis.
Include existing mlflow.notes. Persist the user's complaint verbatim as a HUMAN assessment with
mlflow.log_feedback(trace_id=..., name="user_review", value=False, rationale=..., source=mlflow.entities.AssessmentSource(source_type="HUMAN", source_id=...)); do not invent a complaint for a
new requirement.
State what the agent actually did, what it should do, and the evidenced root-cause hypothesis: missing capability/tool, missing retrieval/data, wrong routing, wrong instruction, inaccessible knowledge, or a misaligned reward. Do not edit agent code in this phase. A missing knowledge source calls for access to data, not facts hardcoded into the system prompt.
Step 2: Plan: write and run the failing regression
Infer global/conditional scope from the request and existing tests; clarify unresolved boundaries only. Conditional changes need cases where the behavior must not fire; restrictive fixes need a legitimate positive control. Resolve ambiguous edge verdicts before encoding them.
Extend the existing module/behavior suite using the project's test layout; avoid one file per issue. Name
cases test_should_<guarantee>_when_<condition> (omit the condition for global rules); paired controls should
make the flipped boundary clear. Parametrized cases need meaningful IDs because they appear as
mlflow.test.case_id.
Use pytest with @mlflow.test and mlflow.genai.evaluate(...), then assert result.passed, result.reason.
Enable mlflow.pytest.plugin once, through pytest_plugins = ["mlflow.pytest.plugin"] in root
conftest.py, pytest configuration, or -p mlflow.pytest.plugin. Without it the marker raises. Install
missing pytest with the project installer; independently check pytest-xdist only when parallel runs are
needed. Read regression-test-suite.md for the concrete recipe.
Tests must invoke the production build/invoke path, including its actual tracing enablement. Do not redeclare autologging or decorators in tests to manufacture traces. If tests bypass entrypoint-only instrumentation, move enablement into the shared application build/invoke path. Destination routing may live in the harness. Verify one nested application trace rather than disconnected top-level model traces.
Choose assertions from the user's intent, before choosing the fix:
- Use deterministic native checks /
@scorerfor exact values, patterns, formats, and structural tool results.RegexMatchcovers contains/format checks; there are no genericContains/Excludes/Matches/Equalsscorers to invent. Verify installed constructors;Correctnessis a judge, not a free deterministic equality check. - For semantic behavior, retain a judge such as
Guidelineseven if a deterministic implementation fixes the observed instance. Guidelines need inputs plus outputs; lead their text with a prescriptive “should”/“must” requirement. UseExpectationsGuidelineswith per-rowexpectations.guidelineswhen appropriate. - Assert at the changed layer too: direct tool tests or a scorer inspecting
trace.search_spans()should prove a retrieval/tool restriction, independently of the final answer. Keep semantic coverage above it, with varied boundary phrasings for disclosure/safety fixes. - Resolve the judge model from
MLFLOW_GENAI_JUDGE_DEFAULT_MODEL, project config, or existing scorers/tests. Ask only if
Установить mlflow-agent-improvement в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mlflow-agent-improvement?
Fix or change an AI agent's behavior using MLflow traces and regression tests. Use for wrong answers, missing tool calls, new business rules, or context and token-cost optimization. Diagnose first, prove a regression fails, implement the smallest fix, and verify it passes without breaking existing behavior.
Как установить скилл mlflow-agent-improvement?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mlflow-agent-improvement запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub