Aliyun pts manage test

From cinience/alicloud-skills · View interactive version

Aliyun pts manage test is an AI agent skill from the GitHub repository cinience/alicloud-skills. Smoke test for aliyun-pts-manage. Validate script compilation and one bounded read-only PTS metadata query path.

How to use this skill

Skill file

Category: test

OBSERVABILITY PTS Smoke Test

Prerequisites

python -m pip install -U alibabacloud_pts20201020 alibabacloud_tea_openapi

Test Steps

1) Run offline script compilation check (no network needed):

python3 tests/common/compile_skill_scripts.py \
  --skill-path skills/observability/pts/aliyun-pts-manage \
  --output output/aliyun-pts-manage-test/compile-check.json

2) Run metadata API discovery script:

python3 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-test

3) Verify generated files and API count:

test -f output/aliyun-pts-manage-test/PTS_2020-10-20_api_docs.json
test -f output/aliyun-pts-manage-test/PTS_2020-10-20_api_list.md
rg -n "API count: [1-9][0-9]*" output/aliyun-pts-manage-test/PTS_2020-10-20_api_list.md

4) Save request summary, response summary, and raw output under output/aliyun-pts-manage-test/.

5) If the call fails, record exact error code/message without guessing.

Optional Online Read-only Check

Run one bounded read-only scene query:

python3 skills/observability/pts/aliyun-pts-manage/scripts/list_pts_scenes.py \
  --region "${ALIBABACLOUD_REGION_ID:-cn-hangzhou}" \
  --page-number 1 \
  --page-size 10 \
  --json \
  --output output/aliyun-pts-manage-test/list-scenes.json

Then verify output contains response metadata:

rg -n '\"RequestId\"|\"Success\"|\"Code\"' output/aliyun-pts-manage-test/list-scenes.json

Pass Criteria

Result Template

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.