Logo: Hub Operations

Hub Operations

Organisatioun
VectorSpaceLab
hub-operations

Operate Hugging Face Hub repositories and API resources with authenticated or mocked Python workflows, explicit revision control, safe mutations, and actionable error recovery.

Iwwersiicht

EditeurVectorSpaceLab
RepositoryAREX-Skill
Skill-Nummhub-operations
Stären
341
Forks
26
Matgeliwwert Dateien
3
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    VectorSpaceLab huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hub Operations an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/hub-operations
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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/hub-operations .claude/skills/hub-operations
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hub Operations an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hub Operations automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hub Operations net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Hub Operations

Use this sub-skill for Python workflows that discover or mutate Hub API resources: repositories, files and commits, refs, collections, cards, discussions and pull requests, and webhook registrations. It is grounded in huggingface_hub 1.29.0.

Trigger And Route

This is the routing surface, not a full API manual. Select the smallest linked reference that covers the request, then keep the operation and verification boundaries visible.

Request signalRouteRead next
create/inspect/search a repo, list files/tree/commits, or manage refsrepository and discoveryAPI reference
upload/copy/delete files, create a commit or PR, or pin a parent SHAfiles and commitsWorkflows
cards, metadata, collections, discussions, or PR reviewcollaboration and metadataAPI reference and Workflows
webhook registration, scope, enable/disable, or deletionwebhook resourcesWorkflows
token precedence, access, 401/403/404/409/412/429, or ambiguous mutationauthentication and recoveryTroubleshooting
deterministic unit-style behavior without Hub accessmocked HfApi caseMocked recovery case

Use this route when the request includes one or more of:

  • create, list, inspect, update, delete, move, or duplicate a model, dataset, or Space repository;
  • upload, delete, or server-side copy repository files; create a commit or PR;
  • inspect a revision or manage branches and tags;
  • search models, datasets, or Spaces and interpret returned info objects;
  • create or curate collections and repository cards;
  • read or manage discussions, PRs, and their events;
  • create, inspect, enable, disable, update, or delete webhook resources;
  • configure or diagnose authentication needed upstream of these operations;
  • identify and recover from Hub API errors, including stale-parent conflicts.

Route elsewhere when the primary task is:

  • download/cache behavior, HfFileSystem, or buckets: sibling downloads-and-storage route;
  • hosted inference or Inference Endpoints: sibling inference-and-endpoints route;
  • exact hf command syntax, output modes, or shell automation: sibling cli-and-automation route;
  • Jobs, sandboxes, Space runtime/hardware, or a deployed webhook server: sibling hosted-compute-and-integrations route.

Webhook registration is owned here; receiving payloads in a server is not. Space repository metadata is owned here; running or scaling the Space is not.

Operating Contract

  1. Classify the operation. Label every step READ-ONLY, MUTATION, or DESTRUCTIVE. Do not hide a mutation inside an inspection step.
  2. Resolve identity. Record repo_id, repo_type, revision, endpoint, and token source before calling the API. Prefer explicit namespace/name; Python uses singular repo types: model, dataset, space.
  3. Authenticate safely. Prefer HF_TOKEN or a previously saved login. Never hardcode, log, print, serialize, or include a token in an exception report. Use a write-scoped token only for mutations.
  4. Inspect before mutation. Fetch the target object and revision, confirm ownership/type/visibility, capture the current SHA when concurrency matters, and preview local paths or remote resources affected.
  5. Use explicit mutation intent. Set a meaningful commit_message; pass repo_type; choose revision; use create_pr=True when review is safer; use parent_commit for optimistic concurrency.
  6. Verify the result. Assert returned IDs/types and inspect the resulting revision. For PR commits, verify CommitInfo.pr_revision and inspect that ref rather than assuming main changed.
  7. Guard destructive actions. Require an exact target display, a dry-run plan, and explicit confirmation immediately before delete, merge, move, or visibility reduction. Re-inspect after confirmation if the workflow waited.
  8. Recover narrowly. Branch on typed exceptions and HTTP status. Retry only operations shown to be safe, bounded, and still valid after re-read.

Safety confirmations

Deletion, move, visibility reduction, branch/tag deletion, collection or webhook deletion, irreversible comment hiding, and PR merge require a read-only plan, a dry-run gate, exact target confirmation, an immediate SHA or state recheck, one mutation, and a post-check. --yes or APPLY=1 is only a mechanism; non-interactive use must receive approval from an upstream reviewed control. See the guarded workflow.

Core Concepts

  • repo_id is normally namespace/name. A bare name can use the authenticated namespace for creation, but explicit IDs are safer in automation.
  • repo_type=None means a model for most APIs. Always pass dataset or space; never pass plural forms to Python methods.
  • A revision can be a branch, tag, commit OID, or PR ref such as refs/pr/3. Mutating methods normally default to main; verify the method-specific constraints before combining revision and create_pr.
  • exist_ok=True makes repository, branch, or tag creation tolerant of an existing target. It does not prove that the existing resource has the requested visibility or settings. Collections spell this exists_ok.
  • visibility accepts public or private, plus protected for Spaces. Do not pass both private and visibility.
  • parent_commit is a full or short commit OID used as an optimistic concurrency check. On conflict, fetch the new head and re-evaluate; do not blindly drop the check.
  • create_pr=True places a proposed commit on a PR ref. CommitInfo exposes pr_url, pr_num, and pr_revision; main is unchanged until merge.
  • commit_message is the commit summary. Keep it specific and never place credentials, signed URLs, or private payload content in it.
  • API listings are iterables and returned info fields are often optional. Limit iteration and test for None; an info query usually contains more detail than a list query.

Choose The Client Surface

Use HfApi(...) when several calls should share an endpoint, token, user-agent, or headers. Root-level helpers such as create_repo, upload_file, and list_models expose the same public operations and are convenient for isolated calls. Keep one configured client through a workflow so endpoint and credentials cannot drift.

Read API reference before writing calls or interpreting RepoUrl, info, collection, discussion, webhook, or commit objects. It contains signatures verified from the installed 1.29.0 package.

Read workflows when implementing create → inspect → upload → revision/PR flows, discovery, refs, cards, collections, discussions, webhook resources, or a check-before-delete plan. Examples explicitly mark read-only and mutation boundaries.

Read troubleshooting when credentials, identity, access, revisions, concurrency, upload patterns, rate limits, network failures, or destructive safeguards are involved. Follow its typed, bounded recovery rules instead of broad retries.

Output Expectations

Return or record, without secrets:

  • resolved endpoint, repo_id, repo_type, and requested revision;
  • mutation classification and whether confirmation occurred;
  • observed starting SHA and resulting SHA or PR ref when applicable;
  • concise fields from returned objects, not raw object dumps containing secrets (notably webhook resources);
  • verification observations: resource exists, expected path/ref/card/event is present, or resource is absent after an approved deletion;
  • typed error, HTTP status, request ID, recovery attempted, and any remaining ambiguity.

Stop rather than guess when target ownership, repo type, destructive intent, credential scope, or post-conflict content validity cannot be established.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Hub Operations?

Operate Hugging Face Hub repositories and API resources with authenticated or mocked Python workflows, explicit revision control, safe mutations, and actionable error recovery.

Firwat Hub Operations op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hub Operations besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hub Operations an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/hub-operations an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hub Operations benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hub Operations benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hub Operations domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hub Operations gratis?

Jo. VectorSpaceLab huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇