Aliyun pts manage

From cinience/alicloud-skills · View interactive version

Aliyun pts manage is an AI agent skill from the GitHub repository cinience/alicloud-skills. Use when managing Alibaba Cloud Performance Testing Service (PTS) via OpenAPI/SDK, including scene lifecycle operations, test start/stop control, report retrieval, and metadata-driven API discovery before production changes.

How to use this skill

Skill file

Category: service

Alibaba Cloud Performance Testing Service (PTS)

Purpose

Use Alibaba Cloud PTS OpenAPI to support:

Prerequisites

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -U alibabacloud_pts20201020 alibabacloud_tea_openapi

AccessKey Priority

1) Environment variables: ALIBABACLOUD_ACCESS_KEY_ID / ALIBABACLOUD_ACCESS_KEY_SECRET / ALIBABACLOUD_REGION_ID

2) Shared credentials file: ~/.alibabacloud/credentials

If region/environment is unclear, confirm with user before mutating operations.

Workflow

1) Identify target region, test scene identifiers, and operation scope.

2) Run API discovery to confirm API names and required parameters.

3) Execute read-only APIs first (List* / Get* / Describe*).

4) Execute mutating operations only after confirming rollback and change window.

5) Save outputs and evidence to output/aliyun-pts-manage/.

API Discovery

Minimal Executable Quickstart

python skills/observability/pts/aliyun-pts-manage/scripts/list_openapi_meta_apis.py

Optional arguments:

python skills/observability/pts/aliyun-pts-manage/scripts/list_openapi_meta_apis.py \
  --product-code PTS \
  --version 2020-10-20 \
  --output-dir output/aliyun-pts-manage

List scenes (read-only):

python skills/observability/pts/aliyun-pts-manage/scripts/list_pts_scenes.py \
  --region cn-hangzhou \
  --page-number 1 \
  --page-size 10 \
  --output output/aliyun-pts-manage/scenes.txt

Start one scene (mutating):

python skills/observability/pts/aliyun-pts-manage/scripts/start_pts_scene.py \
  --region cn-hangzhou \
  --scene-id <scene-id> \
  --wait \
  --output output/aliyun-pts-manage/start-result.json

Stop one scene (mutating):

python skills/observability/pts/aliyun-pts-manage/scripts/stop_pts_scene.py \
  --region cn-hangzhou \
  --scene-id <scene-id> \
  --wait \
  --output output/aliyun-pts-manage/stop-result.json

Common Operation Map

See references/api_quick_map.md for grouped API lists.

Script Catalog

Output Policy

Write generated files and execution evidence to:

output/aliyun-pts-manage/

Validation

mkdir -p output/aliyun-pts-manage
for f in skills/observability/pts/aliyun-pts-manage/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-pts-manage/validate.txt

Pass criteria: command exits 0 and output/aliyun-pts-manage/validate.txt is generated.

Output And Evidence

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.