Logo van Hub Operations

Hub Operations

Organisatie
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.

Overzicht

UitgeverVectorSpaceLab
RepositoryAREX-Skill
Skillnaamhub-operations
Sterren
341
Forks
26
Meegeleverde bestanden
3
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 3

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door VectorSpaceLab op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Hub Operations in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/hub-operations
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Hub Operations in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Hub Operations automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Hub Operations niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-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.

Waarom Hub Operations gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Hub Operations bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Hub Operations in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/hub-operations. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Hub Operations gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Hub Operations gebruiken?

Zoveel als je wilt. Je kunt Hub Operations gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Hub Operations gratis?

Ja. Deze skill is door VectorSpaceLab op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇