Logo : Cli And Automation

Cli And Automation

Organisation
VectorSpaceLab
cli-and-automation

Routes reliable Hugging Face Hub CLI and shell automation, including hf output modes, authentication, file movement, repository and catalog operations, hosted jobs, extensions, and agent-skill generation. Use for hf command selection, JSON or quiet parsing, login and token handling, dry-run or confirmation planning, extensions, or compatible CLI skills.

Add to TypingMind

Présentation

ÉditeurVectorSpaceLab
DépôtAREX-Skill
Nom de la compétencecli-and-automation
Étoiles
341
Forks
26
Fichiers inclus
6
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 6

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par VectorSpaceLab sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Cli And Automation dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/cli-and-automation
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git /tmp/AREX-Skill
mkdir -p .claude/skills
cp -r /tmp/AREX-Skill/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/cli-and-automation .claude/skills/cli-and-automation
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Cli And Automation dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Cli And Automation dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Cli And Automation n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

CLI and Automation

Use this sub-skill when a researcher needs to select, explain, or safely automate the hf command-line interface. Treat the installed executable's --help as the release-specific authority: the generated CLI surface changes with the installed huggingface_hub version.

Trigger routes

Load this skill for:

  • “what hf command/flag should I use?” and shell scripts around the Hub;
  • human, JSON, quiet, or agent output, jq/pipeline parsing, or stderr hygiene;
  • login, token selection, HF_TOKEN, auth state, or non-interactive operation;
  • downloads, uploads, hf cp, bucket sync, URI/revision/type selection, or dry-run/plan/apply review;
  • repos, branches, tags, models, datasets, Spaces, cards, search, papers, discussions, webhooks, cache, endpoints, buckets, Jobs, or sandboxes;
  • trusted CLI extension install/update/remove/dispatch or extension authoring;
  • hf skills add, update, preview, marketplace skills, or the implicit skill freshness check.

First route: establish the executable

Read CLI reference before using a detailed flag. Run only safe probes first:

bash
command -v hf && hf --help
hf version
hf --version

hf is the supported entry point. huggingface-cli is a deprecated entry point and may warn and exit instead of providing the old CLI. tiny-agents is a separate MCP/agent CLI, not an alias for hf; inspect it with tiny-agents --help and do not infer its syntax from this skill. If the commands resolve to different installations, report the paths and use the one intended by the current environment.

Safe operating loop

  1. Classify the request as read-only, local-only, Hub mutation, or hosted compute. Ask for the target namespace/repo and permission when a mutation is intended; placeholders are not authorization.
  2. Check hf <group> --help and then hf <group> <command> --help for the installed version. Do not copy a flag from an older generated reference without checking help.
  3. Select an explicit output mode for scripts. Parse stdout only; keep stderr visible for warnings, hints, errors, and progress diagnostics.
  4. Supply credentials through the environment or a supported secret-file mechanism. Never print, echo, log, commit, or put a token in a URL.
  5. For movement or deletion, preview first (--dry-run, --plan, or a read-only list), inspect the exact target and action set, then obtain confirmation before applying.
  6. Pin --repo-type/--revision or encode them in one hf:// URI. Never combine URI-encoded type/revision/path with duplicate positional/options.
  7. Check exit status. For Jobs and Spaces, a streamed log ending is not proof of success; inspect or wait for the terminal status.
  8. Record the command, selected version, output mode, target, and whether the operation was previewed. Redact credentials from logs.

Progressive disclosure

  • Use CLI reference for the command catalog, verified flags, aliases, output semantics, URI rules, safety boundaries, and the skills/extensions surface.
  • Use automation workflows for safe stdout/stderr pipelines, download dry runs, bucket plan/apply, job control, and mutation gates.
  • Use API reference only when output or the lightweight Click-compatible framework explains a surprising CLI behavior.
  • Use development when generated CLI docs, static imports, or release-surface drift is involved.
  • Use troubleshooting for installation, auth, parsing, URI, network, extension, and generated-doc failures.
  • Run the bundled read-only help checker when entry-point health or a bounded help smoke test is useful. It accepts only a trusted executable named hf, bounded timeouts/probe counts, and exact allowlisted built-in command paths with no arguments; every invocation ends in --help. It never invokes a mutating command and always disables startup update checks for its child processes.

Routing map

NeedRoute
Format, parse, auth, shell safetyCLI reference → automation workflows
Download/cache/read pathdownloads-and-storage sibling, then this skill for CLI flags
Upload, repo CRUD, branches/tags, discussionshub-operations sibling, with this skill for command routing
Models/datasets/Spaces catalog or cardsthis skill; route inference endpoint details to its sibling
Jobs, sandboxes, buckets, cloud storagethis skill; use dry-run/plan gates
Python API rather than a terminal commandthe relevant sibling/API skill

This sub-skill does not replace the sibling operating skills for detailed Python APIs, inference behavior, cache internals, or Hub mutation policy. It owns the CLI boundary and automation contract.

Non-negotiable safety rules

  • An example that creates, uploads, deletes, changes visibility, changes a Space, manages a webhook, installs an extension/skill, launches compute, or applies a plan is a mutation. Use a clearly marked mutation example only after target and authorization are confirmed; prefer placeholders.
  • --yes bypasses a confirmation gate; it does not make the target safe. Never add it merely to make a script non-interactive.
  • --format json does not mean every command is non-interactive. In particular, login's browser/menu flow has restrictions; use an environment token for automation.
  • hf auth token intentionally prints a secret. Treat it as a narrow, deliberate pipe, never as a diagnostic command.
  • Do not use hf cp for local-to-local or unsupported bucket-to-repo copies; use the documented alternative. Do not pass a directory to single-file cp.
  • hf skills preview produces generated target-side hf-cli/SKILL.md content. That generated file is distinct from this managed huggingface-hub/sub-skills/cli-and-automation/ skill; do not overwrite or present one as the other.

Verification targets

A useful route ends with observable evidence: help exits zero; stdout parses under the selected mode; stderr remains separate; a dry-run/plan reports the intended actions without payload mutation; refused confirmation exits non-zero; and a final status command verifies the operation. For the difficult synthetic case, use a fake CLI/API fixture or help-only invocation to exercise a hf download --dry-run --format json parse, preserve a warning on stderr, and prove that hf repos delete without --yes is refused before any delete API call. Broad production-marked native tests do not establish this end-to-end shell contract.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Cli And Automation ?

Routes reliable Hugging Face Hub CLI and shell automation, including hf output modes, authentication, file movement, repository and catalog operations, hosted jobs, extensions, and agent-skill generation. Use for hf command selection, JSON or quiet parsing, login and token handling, dry-run or confirmation planning, extensions, or compatible CLI skills.

Pourquoi utiliser Cli And Automation sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Cli And Automation se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Cli And Automation dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/cli-and-automation. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Cli And Automation ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Cli And Automation ?

Autant que vous le souhaitez. Vous pouvez utiliser Cli And Automation avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Cli And Automation est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par VectorSpaceLab sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇