$npx -y skills add cinience/alicloud-skills --skill aliyun-modelstudio-crawl-and-skillUse when refreshing the Model Studio models crawl and regenerate derived summaries and skills/ai/** skills. Use when the models list or generated skills must be updated.
| 1 | Category: task |
| 2 | |
| 3 | # Alibaba Cloud Model Studio Crawl and Skill Generation |
| 4 | |
| 5 | ## Prerequisites |
| 6 | |
| 7 | - Node.js (for `npx`) |
| 8 | - Python 3 |
| 9 | - Network access to the models page |
| 10 | |
| 11 | ## Workflow |
| 12 | |
| 13 | 1) Crawl models page (raw markdown) |
| 14 | |
| 15 | ```bash |
| 16 | npx -y @just-every/crawl \"https://help.aliyun.com/zh/model-studio/models\" > alicloud-model-studio-models.md |
| 17 | ``` |
| 18 | |
| 19 | 2) Rebuild summary (models + API/usage links) |
| 20 | |
| 21 | ```bash |
| 22 | python3 skills/ai/misc/aliyun-modelstudio-crawl-and-skill/scripts/refresh_models_summary.py |
| 23 | ``` |
| 24 | |
| 25 | 3) Regenerate skills (creates/updates `skills/ai/**`) |
| 26 | |
| 27 | ```bash |
| 28 | python3 skills/ai/misc/aliyun-modelstudio-crawl-and-skill/scripts/refresh_alicloud_skills.py |
| 29 | ``` |
| 30 | |
| 31 | ## Outputs |
| 32 | |
| 33 | - `alicloud-model-studio-models.md`: raw crawl output |
| 34 | - `output/alicloud-model-studio-models-summary.md`: cleaned summary |
| 35 | - `output/alicloud-model-studio-models.json`: structured model list |
| 36 | - `output/alicloud-model-studio-skill-scan.md`: skill coverage report |
| 37 | - `skills/ai/**`: generated skills |
| 38 | |
| 39 | ## Notes |
| 40 | |
| 41 | - Do not invent model IDs or API endpoints; only use links present on the models page. |
| 42 | - After regeneration, update `README.md`, `README.en.md`, and `README.zh-TW.md` if skills list changed. |
| 43 | ## Validation |
| 44 | |
| 45 | ```bash |
| 46 | mkdir -p output/aliyun-modelstudio-crawl-and-skill |
| 47 | for f in skills/ai/misc/aliyun-modelstudio-crawl-and-skill/scripts/*.py; do |
| 48 | python3 -m py_compile "$f" |
| 49 | done |
| 50 | echo "py_compile_ok" > output/aliyun-modelstudio-crawl-and-skill/validate.txt |
| 51 | ``` |
| 52 | |
| 53 | Pass criteria: command exits 0 and `output/aliyun-modelstudio-crawl-and-skill/validate.txt` is generated. |
| 54 | |
| 55 | ## Output And Evidence |
| 56 | |
| 57 | - Save artifacts, command outputs, and API response summaries under `output/aliyun-modelstudio-crawl-and-skill/`. |
| 58 | - Include key parameters (region/resource id/time range) in evidence files for reproducibility. |
| 59 | |
| 60 | ## References |
| 61 | |
| 62 | - Source list: `references/sources.md` |