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-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-pilotafter 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 versionto 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] runaliyun plugin install ptsto install the PTS plugin. [MUST] runaliyun plugin updateto 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_IDis FORBIDDEN)- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
aliyun configure setwith literal credential values- ONLY use
aliyun configure listto check credential statusaliyun configure listCheck 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.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
aliyun configurein terminal or environment variables in shell profile)- Return and re-run after
aliyun configure listshows 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 |
|---|
Установить 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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic