aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from SLS. Use for natural-language requests to create or update evaluators or evaluator skills, launch or monitor evaluation tasks, inspect evaluation results, diagnose low scores, troubleshoot evaluation API calls, and simplify AgentLoop evaluation commands.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluationSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation.
Alibaba Cloud AgentLoop Evaluation
Scenario Description
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin (aliyun-cli-agentloop). The skill converts a compact JSON specification into the required AgentLoop API sequence: discover evaluators, create/update saved evaluators, create one-shot or batch evaluation tasks, poll runs, and analyze results from SLS.
Architecture: Aliyun CLI >= 3.3.3 + aliyun-cli-agentloop 0.7.0 + aliyun-cli-sls plugin + AgentLoop API (2026-05-20) + SLS evaluation_detail Logstore
Use the bundled wrapper to convert a compact JSON specification into the required AgentLoop API sequence. Default to a dry-run; send mutations only with --execute.
Installation
Pre-check: Aliyun CLI >= 3.3.3 required
[MUST] Verify:aliyun version— must be >= 3.3.3.- First install or major upgrade: Download, review, then execute the setup script. Avoidcurl | bashpiping.- Routine update (CLI >= 3.3.5):aliyun upgrade— prefer this built-in self-update over re-running the install script.- See references/cli-installation-guide.md for full installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] runaliyun configure set --auto-plugin-install trueto enable automatic plugin installation.[MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
Verify the AgentLoop plugin:
For result analysis, also install the SLS plugin:
Script Dependencies
The bundled Python scripts in scripts/ use only the Python 3.8+ standard library — no external packages are required. See scripts/requirements.txt for the full declaration.
Environment Variables
| Variable | Required | Description | |
|---|---|---|---|
SKILL_DIR | yes | Absolute path to this skill directory (containing SKILL.md) | |
ALIBABA_CLOUD_PROFILE | no | Scope the workflow to a named CLI profile without switching the default | |
SKILL_SESSION_ID | no | 32-char hex session ID for observability; injected by the agent at runtime |
Authentication
Pre-check: Alibaba Cloud Credentials RequiredSecurity Rules:- NEVER read, echo, or print AK/SK values (e.g.,echo $ALIBABA_CLOUD_ACCESS_KEY_IDis FORBIDDEN)- NEVER ask the user to input AK/SK directly in the conversation or command line- NEVER usealiyun configure setwith literal credential values- ONLY usealiyun configure listto check credential status```bashaliyun configure list```Check the output for a valid profile (AK, STS, or OAuth identity).If no valid profile exists, STOP here.1. Obtain credentials from Alibaba Cloud Console2. Configure credentials outside of this session (viaaliyun configurein terminal or environment variables in shell profile)3. Return and re-run afteraliyun configure listshows a valid profile
RAM Policy
This skill requires AgentLoop and SLS permissions. See references/ram-policies.md for the full permission list.
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:1. Readreferences/ram-policies.mdto get the full list of permissions required by this SKILL2. Useram-permission-diagnoseskill to guide the user through requesting the necessary permissions3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call,ALL user-customizable parameters (e.g., AgentSpace name, Region, evaluator names,task names, dataset names, time windows, thresholds, etc.) MUST be confirmed with theuser. Do NOT assume or use default values without explicit user approval.
| Parameter Name | Required/Optional | Description | Default Value | |
|---|---|---|---|---|
agent_space | Required | Target AgentSpace name | — | |
region | Optional | Aliyun endpoint-selection region | — | |
task.name | Optional | Evaluation task name | Auto-generated | |
task.mode | Optional | oneshot or batch | Inferred from data_filter | |
task.data_type | Optional | trace or dataset | trace | |
data_filter.max_records | Required (batch) | Maximum records to evaluate | — | |
window.start | Required (batch) | Backfill start time (timezone-bearing ISO-8601) | — | |
window.end | Required (batch) | Backfill end time (timezone-bearing ISO-8601) | — | |
threshold | Optional | Low-score threshold for analysis | 0.5 | |
max_cases | Optional | Maximum low-score cases to return | 50 |
Mutation Confirmation Protocol
CRITICAL: All cloud mutation operations require explicit user confirmation before execution.This skill can create, modify, and delete cloud resources. To prevent unintendedchanges, every mutation MUST follow the three-step protocol below. No exceptions.
Mutation operations requiring confirmation
The following operations alter cloud resources and MUST NOT be executed without explicit user approval:
| Operation | CLI/API | Risk | |
|---|---|---|---|
| Create evaluator | create-evaluator | Creates a persistent saved evaluator | |
| Update evaluator | update-evaluator | Modifies an existing evaluator's config/version | |
| Create evaluation task | create-evaluation-task | Launches a potentially costly evaluation run | |
| Execute evaluation task | run --execute | Sends the actual mutation request to the cloud | |
| Continuous evaluation | continuous.enabled=true | Incurs ongoing compute costs until stopped | |
| Unbounded batch run | --allow-unbounded | Evaluates all matching records with no record cap | |
| Delete task | delete-evaluation-task | Irreversible resource deletion | |
| Delete evaluator | delete-evaluator | Irreversible resource deletion | |
| Terminate task | update-evaluation-task --status Terminated | Stops a running evaluation |
Three-step confirmation protocol
- Preview (dry-run) — Always run without
--executefirst. Show the user
the exact commands and JSON payloads that will be sent to the cloud API.
``bash python3 "$SKILL_DIR/scripts/agentloop_eval.py" run --spec /path/to/evaluation.json ``
- Confirm — Present the rendered preview to the user and explicitly ask for
approval. Quote the key parameters (AgentSpace, evaluator names, task name, data scope, estimated records, cost implications). Wait for a clear affirmative response before proceeding.
> Do NOT assume that running run without --execute implies intent to > execute. Do NOT proceed to execution based on silence or ambiguity.
- Execute — Only after receiving explicit confirmation, add
--executeand
any required override flags (--allow-unbounded, --allow-continuous):
``bash python3 "$SKILL_DIR/scripts/agentloop_eval.py" run \ --spec /path/to/evaluation.json --execute ``
Read-only operations (no confirmation needed)
doctor, discover, status, and analyze (result analysis) are read-only and do not require the confirmation protocol.
Observability (MUST follow for every aliyun command)
Upon loading this skill, generate a random session ID (32-char lowercase hex string) once for the entire session. Use it as {session-id} below.
Rule: Every `aliyun` CLI command that calls a cloud API MUST include the `--user-agent` flag. Local utility commands (e.g. configure, plugin, version) do not support this flag and should be excluded.
Example (assuming session-id is a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6):
Do not skip, alter the format, or omit --user-agent on any aliyun API command invocation.
Script execution: The bundled Python wrapper automatically reads SKILL_SESSION_ID from the environment and injects --user-agent into every cloud API command. Inject the session-id via inline environment variable:
Core Workflow
Select the workflow
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aiml/agentloop/alibabacloud-agentloop-evaluation/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 27
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation)