aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation

Claude Code and agent skill by aliyun/alibabacloud-aiops-skills

Trust tier 3
  • community
Source check pending

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-evaluation

SKILL.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. Avoid curl | bash piping.
- 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] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.
[MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

Verify the AgentLoop plugin:

bash
aliyun plugin show --name aliyun-cli-agentloop
aliyun agentloop version

For result analysis, also install the SLS plugin:

bash
aliyun plugin install --name aliyun-cli-sls

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

VariableRequiredDescription
SKILL_DIRyesAbsolute path to this skill directory (containing SKILL.md)
ALIBABA_CLOUD_PROFILEnoScope the workflow to a named CLI profile without switching the default
SKILL_SESSION_IDno32-char hex session ID for observability; injected by the agent at runtime

Authentication

Pre-check: Alibaba Cloud Credentials Required
Security Rules:
- NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_ACCESS_KEY_ID is FORBIDDEN)
- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use aliyun configure set with literal credential values
- ONLY use aliyun configure list to check credential status
```bash
aliyun 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 Console
2. Configure credentials outside of this session (via aliyun configure in terminal or environment variables in shell profile)
3. Return and re-run after aliyun configure list shows 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. Read references/ram-policies.md to get the full list of permissions required by this SKILL
2. Use ram-permission-diagnose skill to guide the user through requesting the necessary permissions
3. 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 the
user. Do NOT assume or use default values without explicit user approval.
Parameter NameRequired/OptionalDescriptionDefault Value
agent_spaceRequiredTarget AgentSpace name—
regionOptionalAliyun endpoint-selection region—
task.nameOptionalEvaluation task nameAuto-generated
task.modeOptionaloneshot or batchInferred from data_filter
task.data_typeOptionaltrace or datasettrace
data_filter.max_recordsRequired (batch)Maximum records to evaluate—
window.startRequired (batch)Backfill start time (timezone-bearing ISO-8601)—
window.endRequired (batch)Backfill end time (timezone-bearing ISO-8601)—
thresholdOptionalLow-score threshold for analysis0.5
max_casesOptionalMaximum low-score cases to return50

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 unintended
changes, 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:

OperationCLI/APIRisk
Create evaluatorcreate-evaluatorCreates a persistent saved evaluator
Update evaluatorupdate-evaluatorModifies an existing evaluator's config/version
Create evaluation taskcreate-evaluation-taskLaunches a potentially costly evaluation run
Execute evaluation taskrun --executeSends the actual mutation request to the cloud
Continuous evaluationcontinuous.enabled=trueIncurs ongoing compute costs until stopped
Unbounded batch run--allow-unboundedEvaluates all matching records with no record cap
Delete taskdelete-evaluation-taskIrreversible resource deletion
Delete evaluatordelete-evaluatorIrreversible resource deletion
Terminate taskupdate-evaluation-task --status TerminatedStops a running evaluation
Three-step confirmation protocol
  1. Preview (dry-run) — Always run without --execute first. 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 ``

  1. 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.

  1. Execute — Only after receiving explicit confirmation, add --execute and

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.

--user-agent AlibabaCloud-Agent-Skills/alibabacloud-agentloop-evaluation/{session-id}

Example (assuming session-id is a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6):

bash
aliyun agentloop list-evaluators --agent-space my-space --user-agent AlibabaCloud-Agent-Skills/alibabacloud-agentloop-evaluation/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:

bash
SKILL_SESSION_ID={session-id} python3 "$SKILL_DIR/scripts/agentloop_eval.py" run --spec evaluation.json --execute
SKILL_SESSION_ID={session-id} python3 "$SKILL_DIR/scripts/analyze_evaluation_results.py" --agent-space <space> ...

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation/badge)](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-agentloop-evaluation)

Something wrong with this skill or its page? Tell us.