Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Alibabacloud Pts Task

БесплатноБез исполняемых скриптовНе проверен

Alibaba Cloud PTS task CRUD worker skill — executes concrete PTS scenario operations (create / query / start / stop / report / delete) for both PTS native…

sdk-teamот sdk-team835 установок в других каталогах

Об этом скилле

Alibaba Cloud PTS Task CRUD Worker (alibabacloud-pts-task)

Role: This is the worker skill for PTS scenario CRUD operations. It is typically invoked by the router skill alibabacloud-pts-pilot after intent resolution. It MAY also be triggered directly when the user's request is unambiguous about executing a concrete PTS action.

Contract:

  • Input: scenario intent (create/query/start/stop/report/delete) + required params (RegionId, SceneId or scene config)
  • Output: execution result + key resource IDs (e.g., SceneId, ReportId) for downstream handoff

This skill covers PTS Native HTTP/HTTPS stress testing and JMeter-based distributed stress testing.

Pre-check

Pre-check: Aliyun CLI >= 3.3.3 required Run aliyun version to verify >= 3.3.3. If not installed or version too low, see references/cli-installation-guide.md for safe step-by-step installation (do NOT pipe remote scripts directly into a shell). Then [MUST] run aliyun plugin install pts to install the PTS plugin. [MUST] run aliyun plugin update to ensure that any existing plugins on your local machine are always up-to-date.

# Verify CLI version
aliyun version

# Install PTS plugin (explicit, no auto-install)
aliyun plugin install pts
aliyun plugin update

AI-Mode Lifecycle Management

[MUST] Enable at workflow start (replaces per-command --user-agent):

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-pts-task"

[MUST] Disable at EVERY exit point (success / failure / error / cancellation / session end):

aliyun configure ai-mode disable

Timeout Settings

Append --read-timeout 60 --connect-timeout 10 to all aliyun pts commands (read-timeout 60s because stress operations may take longer; connect-timeout 10s).

Parameter Confirmation

Parameter Confirmation (Smart Mode)

  • All required parameters present → echo summary + execute immediately. No re-confirmation.
  • Missing/ambiguous parameter → ask user before proceeding.
  • Destructive ops (delete/stop) → ALWAYS require explicit user confirmation.

User-Customizable Parameters

Parameter Name Required Description Default Value
RegionId No Region for PTS service cn-hangzhou
Scene Name Yes Name of the stress testing scenario -
Target URL Yes URL to stress test -
HTTP Method Yes GET, POST, PUT, DELETE, etc. GET
Concurrency Yes Number of concurrent users -
Duration Yes Test duration in seconds -
JMX File Yes (JMeter) Path to JMeter script file -
Mode No CONCURRENCY or TPS CONCURRENCY

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
aliyun configure list

Check the output for a valid profile (AK, STS, or OAuth identity).

After running aliyun configure list, if ANY profile is shown (regardless of type: AK, STS, RamRoleArn, EcsRamRole, etc.), credentials ARE configured. Proceed immediately with CLI execution. Do NOT additionally check environment variables or conclude credentials are missing.

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

If CLI is not yet configured, see references/cli-installation-guide.md for setup instructions.

RAM Policy

Users must have appropriate PTS permissions. See references/ram-policies.md for detailed policies.

Idempotency

PTS APIs do not support ClientToken-based idempotency. Scene names are not unique — multiple PTS or JMeter scenarios may share the same SceneName. Never treat “same name” as one resource; always use SceneId (returned by the API) as the stable identifier.

To prevent duplicate resources or unintended side-effects when retrying after timeouts or errors, always use the check-then-act pattern before every write operation:

Operation Check Before Acting If Already Exists / Running
Полный SKILL.md на ClawHub

Установить Alibabacloud Pts Task в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

FAQ

Что делает скилл Alibabacloud Pts Task?

Alibaba Cloud PTS task CRUD worker skill — executes concrete PTS scenario operations (create / query / start / stop / report / delete) for both PTS native HTTP/HTTPS and JMeter-based stress testing. This is a WORKER skill, typically delegated from the `alibabacloud-pts-pilot` router. Do NOT use this skill for tuning advice or general PTS Q&A. Triggers: "创建压测场景", "启动压测", "停止压测", "查看压测报告", "删除压测场景", "上传JMeter脚本", "执行JMeter压测", "list PTS scenes", "start PTS scene",

Как установить скилл Alibabacloud Pts Task?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Alibabacloud Pts Task запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Alibabacloud Pts Task с