Skip to content
Back to skills

Hub And Cli

ASecurity

"Use ModelScope Hub, cache, download/upload, and CLI workflows

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopspythonshellapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill hub-and-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hub And Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hub And Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-hub-and-cli-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-hub-and-cli-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hub-and-cli
description: "Use ModelScope Hub, cache, download/upload, and CLI workflows
  safely from the modelscope package."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# ModelScope Hub and CLI

Use this sub-skill when the task is about ModelScope Hub access, the `modelscope`/`ms` command line, downloading repositories or files, upload command selection, authentication boundaries, endpoint/cache settings, offline cache reuse, or cache troubleshooting.

## Fast routing

- Need CLI command selection, help boundaries, download/cache syntax, or legacy command aliases: read [CLI reference](references/cli-reference.md).
- Need Python APIs such as `snapshot_download`, `dataset_snapshot_download`, `model_file_download`, `dataset_file_download`, `HubApi`, credentials, endpoint variables, or `modelscope_hub` compatibility behavior: read [Hub API reference](references/hub-api-reference.md).
- Need to diagnose auth, repo id/revision, endpoint, network, cache, offline, missing `modelscope_hub`, or `local_dir`/`cache_dir` confusion: read [troubleshooting](references/troubleshooting.md).
- Need a safe dry-run plan before downloading: run `python scripts/plan_download.py --help`, then use the generated CLI command or Python snippet after approval. The script performs no network calls.

## Boundaries and cross-skill routes

- This sub-skill stops at obtaining or managing local Hub files. For pipeline inference after a model download, route to `../pipelines-and-models/SKILL.md`.
- For `MsDataset.load`, dataset streaming, dataset recipe validation, or config/file I/O after a dataset snapshot is available, route to `../datasets-config/SKILL.md`.
- For server/studio deployment details, vLLM integration, export, and large checkpoint tools, route to `../serving-export-and-tools/SKILL.md`.
- Treat uploads, cache clearing, login persistence, and endpoint changes as operations with external side effects. Ask for explicit user approval before mutating remote Hub repositories, deleting caches, or saving credentials.

## Working checklist

1. Identify the interface: `modelscope`/`ms` CLI, Python download helper, or `HubApi`.
2. Confirm repo id shape (`owner/name`), repo type (`model` or `dataset` for most downloads), revision, and whether the target is public or private.
3. Decide storage semantics: use `local_dir` for a user-visible copy, `cache_dir`/`MODELSCOPE_CACHE` for reusable cache, and `local_files_only=True` only when the cache is already populated.
4. Avoid exposing tokens. Prefer environment variables and Python `token=` parameters over literal tokens in shell history.
5. For include/exclude filters, quote glob patterns in shell commands and remember that explicit file paths take precedence over patterns.

Files in this skill

  • SKILL.md2.7 KB
  • references/cli-reference.md9.4 KB
  • references/hub-api-reference.md12.6 KB
  • references/troubleshooting.md12.7 KB
  • scripts/plan_download.py14.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.