Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

agent-evaluationAgent 人评价

Agent Skill

agent-evaluation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

216

周安装

9

GitHub Stars

公开资料未说明

下载量

72
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-evaluation(Agent 人评价)
来源仓库:https://github.com/b-step62/skills
仓库路径:skills/agent-evaluation
安装命令:
npx skills add https://github.com/b-step62/skills --skill agent-evaluation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/b-step62/skills --skill agent-evaluation

简介

Agent Evaluation 提供基于 MLflow 的 GenAI 代理评估全流程支持,涵盖追踪与环境配置。

  • 适用于模型性能对比、输出质量评估、数据集构建与自定义评分器定义等场景。
  • 支持独立使用各环节组件,也可按完整工作流执行端到端评估实验。
  • 使用前需安装 MLflow 3.8+ 并配置 tracing 集成,确保实验可复现与结果可追溯。
  • 评估过程可能涉及大量日志写入与资源消耗,建议在隔离环境中运行并监控存储用量。

SKILL.md

Agent Evaluation with MLflow

Comprehensive guide for evaluating GenAI agents with MLflow. Use this skill for the complete evaluation workflow or individual components - tracing setup, environment configuration, dataset creation, scorer definition, or evaluation execution. Each section can be used independently based on your needs.

Table of Contents

  1. Quick Start
  2. Documentation Access Protocol
  3. Setup Overview
  4. Evaluation Workflow
  5. References

Quick Start

Setup (prerequisite): Install MLflow 3.8+, configure environment, integrate tracing

Evaluation workflow in 4 steps:

  1. Understand: Run agent, inspect traces, understand purpose
  2. Define: Select/create scorers for quality criteria
  3. Dataset: ALWAYS discover existing datasets first, only create new if needed
  4. Evaluate: Run agent on dataset, apply scorers, analyze results

Command Conventions

Always use uv run for MLflow and Python commands:

uv run mlflow --version          # MLflow CLI commands
uv run python scripts/xxx.py     # Python script execution
uv run python -c "..."           # Python one-liners

This ensures commands run in the correct environment with proper dependencies.

CRITICAL: Separate stderr from stdout when capturing CLI output:

When saving CLI command output to files for parsing (JSON, CSV, etc.), always redirect stderr separately to avoid mixing logs with structured data:

# WRONG - mixes progress bars and logs with JSON output
uv run mlflow traces evaluate ... --output json > results.json

# CORRECT - separates stderr from JSON output
uv run mlflow traces evaluate ... --output json 2>/dev/null > results.json

# ALTERNATIVE - save both separately for debugging
uv run mlflow traces evaluate ... --output json > results.json 2> evaluation.log

When to separate streams:

  • Any command with --output json flag
  • Commands that output structured data (CSV, JSON, XML)
  • When piping output to parsing tools (jq, grep, etc.)

When NOT to separate:

  • Interactive commands where you want to see progress
  • Debugging scenarios where logs provide context
  • Commands that only output unstructured text

Documentation Access Protocol

All MLflow documentation must be accessed through llms.txt:

  1. Start at: https://mlflow.org/docs/latest/llms.txt
  2. Query llms.txt for your topic with specific prompt
  3. If llms.txt references another doc, use WebFetch with that URL
  4. Do not use WebSearch - use WebFetch with llms.txt first

This applies to all steps, especially:

  • Dataset creation (read GenAI dataset docs from llms.txt)
  • Scorer registration (check MLflow docs for scorer APIs)
  • Evaluation execution (understand mlflow.genai.evaluate API)

Pre-Flight Validation

Validate environment before starting:

uv run mlflow --version  # Should be >=3.8.0
uv run python -c "import mlflow; print(f'MLflow {mlflow.__version__} installed')"

If MLflow is missing or version is <3.8.0, see Setup Overview below.

Discovering Agent Structure

Each project has unique structure. Use dynamic exploration instead of assumptions:

Find Agent Entry Points

# Search for main agent functions
grep -r "def.*agent" . --include="*.py"
grep -r "def (run|stream|handle|process)" . --include="*.py"

# Check common locations
ls main.py app.py src/*/agent.py 2>/dev/null

# Look for API routes
grep -r "@app\.(get|post)" . --include="*.py"  # FastAPI/Flask
grep -r "def.*route" . --include="*.py"

Find Tracing Integration

# Find autolog calls
grep -r "mlflow.*autolog" . --include="*.py"

# Find trace decorators
grep -r "@mlflow.trace" . --include="*.py"

# Check imports
grep -r "import mlflow" . --include="*.py"

Understand Project Structure

# Check entry points in package config
cat pyproject.toml setup.py 2>/dev/null | grep -A 5 "scripts\|entry_points"

# Read project documentation
cat README.md docs/*.md 2>/dev/null | head -100

# Explore main directories
ls -la src/ app/ agent/ 2>/dev/null

Setup Overview

Before evaluation, complete these three setup steps:

  1. Install MLflow (version >=3.8.0)
  2. Configure environment (tracking URI and experiment)

- Guide: Follow references/setup-guide.md Steps 1-2

  1. Integrate tracing (autolog and @mlflow.trace decorators)

- ⚠️ MANDATORY: Follow references/tracing-integration.md - the authoritative tracing guide - ✓ VERIFY: Run scripts/validate_agent_tracing.py after implementing

⚠️ Tracing must work before evaluation. If tracing fails, stop and troubleshoot.

Checkpoint - verify before proceeding:

  • MLflow >=3.8.0 installed
  • MLFLOW_TRACKING_URI and MLFLOW_EXPERIMENT_ID set
  • Autolog enabled and @mlflow.trace decorators added
  • Test run creates a trace (verify trace ID is not None)

Validation scripts:

uv run python scripts/validate_environment.py  # Check MLflow install, env vars, connectivity
uv run python scripts/validate_auth.py         # Test authentication before expensive operations

For complete setup instructions: See references/setup-guide.md

Evaluation Workflow

Step 1: Understand Agent Purpose

  1. Invoke agent with sample input
  2. Inspect MLflow trace (especially LLM prompts describing agent purpose)
  3. Print your understanding and ask user for verification
  4. Wait for confirmation before proceeding

Step 2: Define Quality Scorers

  1. Discover built-in scorers using documentation protocol:

- Query https://mlflow.org/docs/latest/llms.txt for "What built-in LLM judges or scorers are available?" - Read scorer documentation to understand their purpose and requirements - Note: Do NOT use mlflow scorers list -b - use documentation instead for accurate information

  1. Check registered scorers in your experiment: uv run mlflow scorers list -x $MLFLOW_EXPERIMENT_ID
  2. Identify quality dimensions for your agent and select appropriate scorers
  3. Register scorers and test on sample trace before full evaluation

For scorer selection and registration: See references/scorers.md For CLI constraints (yes/no format, template variables): See references/scorers-constraints.md

Step 3: Prepare Evaluation Dataset

ALWAYS discover existing datasets first to prevent duplicate work:

  1. Run dataset discovery (mandatory): uv run python scripts/list_datasets.py # Lists, compares, recommends datasets uv run python scripts/list_datasets.py --format json # Machine-readable output uv run python scripts/list_datasets.py --help # All options
  2. Present findings to user:

- Show all discovered datasets with their characteristics (size, topics covered) - If datasets found, highlight most relevant options based on agent type

  1. Ask user about existing datasets:

- "I found [N] existing evaluation dataset(s). Do you want to use one of these? (y/n)" - If yes: Ask which dataset to use and record the dataset name - If no: Proceed to step 4

  1. Create new dataset only if user declined existing ones: # Generates dataset creation script from test cases file uv run python scripts/create_dataset_template.py --test-cases-file test_cases.txt uv run python scripts/create_dataset_template.py --help # See all options Generated code uses mlflow.genai.datasets APIs - review and execute the script.

IMPORTANT: Do not skip dataset discovery. Always run list_datasets.py first, even if you plan to create a new dataset. This prevents duplicate work and ensures users are aware of existing evaluation datasets.

For complete dataset guide: See references/dataset-preparation.md

Step 4: Run Evaluation

  1. Generate traces: # Generates evaluation script (auto-detects agent module, entry point, dataset) uv run python scripts/run_evaluation_template.py uv run python scripts/run_evaluation_template.py --help # Override auto-detection Generated script uses mlflow.genai.evaluate() - review and execute it.
  2. Apply scorers: # IMPORTANT: Redirect stderr to avoid mixing logs with JSON output uv run mlflow traces evaluate \ --trace-ids <comma_separated_trace_ids> \ --scorers <scorer1>,<scorer2>,... \ --output json 2>/dev/null > evaluation_results.json
  3. Analyze results: # Pattern detection, failure analysis, recommendations uv run python scripts/analyze_results.py evaluation_results.json Generates evaluation_report.md with pass rates and improvement suggestions.

References

Detailed guides in references/ (load as needed):

  • setup-guide.md - Environment setup (MLflow install, tracking URI configuration)
  • tracing-integration.md - Authoritative tracing guide (autolog, decorators, session tracking, verification)
  • dataset-preparation.md - Dataset schema, APIs, creation, Unity Catalog
  • scorers.md - Built-in vs custom scorers, registration, testing
  • scorers-constraints.md - CLI requirements for custom scorers (yes/no format, templates)
  • troubleshooting.md - Common errors by phase with solutions

Scripts are self-documenting - run with --help for usage details.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.1%
按下载量换算21

github-copilot

25.2%
按下载量换算18

Cursor

19.69%
按下载量换算14

OpenCode

12.4%
按下载量换算9

goose

7.96%
按下载量换算6

Gemini CLI

3.84%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/b-step62/skills --skill agent-evaluation;npx skills add b-step62/skills --skill "agent-evaluation" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills