aliyun-green-moderation-test
$
npx mdskill add cinience/alicloud-skills/aliyun-green-moderation-testValidates basic functionality of aliyun-green-moderation integration
- Tests minimal API access and authentication for security content moderation
- Uses Aliyun Green API with compile check and read-only query validation
- Checks script compilation, API reachability, and response structure
- Saves test results with timestamps and parameters in output directory
SKILL.md
.github/skills/aliyun-green-moderation-testView on GitHub ↗
--- name: aliyun-green-moderation-test description: Smoke test for aliyun-green-moderation. Validate minimal authentication, API reachability, and one read-only query path. version: 1.0.0 --- Category: test # SECURITY CONTENT MODERATION GREEN Smoke Test ## Prerequisites - Configure credentials with least privilege (`ALIBABACLOUD_ACCESS_KEY_ID` / `ALIBABACLOUD_ACCESS_KEY_SECRET` / optional `ALIBABACLOUD_REGION_ID`). - Target skill: `skills/security/content/aliyun-green-moderation/`. ## Test Steps 1) Run offline script compilation check (no network needed): ```bash python3 tests/common/compile_skill_scripts.py \ --skill-path skills/security/content/aliyun-green-moderation \ --output output/aliyun-green-moderation-test/compile-check.json ``` 2) Read the target skill `SKILL.md` and identify one lowest-risk read-only API (for example `Describe*` / `List*` / `Get*`). 3) Execute one minimal call with bounded scope (region + page size / limit). 4) Save request summary, response summary, and raw output under `output/aliyun-green-moderation-test/`. 5) If the call fails, record exact error code/message without guessing. ## Pass Criteria - Script compilation check passes (`compile-check.json.status=pass`). - The selected read-only API call succeeds and returns valid response structure. - Evidence files exist in `output/aliyun-green-moderation-test/` with timestamp and parameters. ## Result Template - Date: YYYY-MM-DD - Skill: skills/security/content/aliyun-green-moderation - Conclusion: pass / fail - Notes: