Huggingface Hubのロゴ

Huggingface Hub

組織
VectorSpaceLab
huggingface-hub

Use the Hugging Face Hub Python client and hf CLI for repository and artifact management, downloads and caching, hosted inference, cloud compute, model integration, and safe automation.

概要

公開者VectorSpaceLab
リポジトリAREX-Skill
スキル名huggingface-hub
スター
341
フォーク
26
同梱ファイル
30
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 30個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    VectorSpaceLabがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Huggingface Hub」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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 .claude/skills/huggingface-hub
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHuggingface Hubを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHuggingface Hubを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Huggingface Hubは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Hugging Face Hub

Use this repo skill for huggingface_hub 1.29.0 workflows: the official Python client and hf CLI for interacting with model, dataset, Space, and storage resources on the Hugging Face Hub. This is a router, not an exhaustive API manual. Resolve the user's dominant operation and load only the smallest focused route.

Install and establish the version

For an application, install the base package:

bash
python -m pip install huggingface_hub
python -c "import huggingface_hub; print(huggingface_hub.__version__)"

Add only the optional surface required by the task:

  • huggingface_hub[torch] for torch/safetensors model serialization and mixins.
  • huggingface_hub[oauth] for OAuth server helpers.
  • huggingface_hub[mcp] for MCP client/agent connections.
  • huggingface_hub[gradio] for Gradio-based webhook server integrations.
  • huggingface_hub[hf_xet] when explicitly controlling the Xet transfer extra.

The base package includes the hf entry point. Before relying on a detailed flag, run hf --help, hf version, and the relevant command's --help; CLI surfaces are version-sensitive. Keep HF_TOKEN or an existing login in a secret store and never put a token in source, output, URLs, or reports.

Route the request

User intentLoad this route
Create/search/manage repos, upload or commit files, branches/tags, cards, collections, discussions, PRs, or Hub webhook resourceshub-operations
Download files/snapshots, use cache/offline mode, Xet, HfFileSystem, hf://, buckets, copy, or syncdownloads-and-storage
Call hosted models, select providers, stream/async chat, use tools or JSON schema, MCP, or manage Inference Endpointsinference-and-endpoints
Choose hf commands, parse output, automate shell flows, use extensions, or generate/update CLI skillscli-and-automation
Run Jobs/Sandboxes, configure Spaces, build OAuth/webhook servers, integrate models/cards, serialize DDUF or torch checkpoints, or use TensorBoardhosted-compute-and-integrations

When a workflow crosses routes, keep one owner per operation: use the CLI route for command syntax and output, the Hub route for remote repository mutations, the storage route for read/cache behavior, and the hosted-compute route for paid or stateful cloud resources.

Safety contract

  1. Identify the endpoint, namespace/repo ID, singular Python repo_type (model, dataset, or space), revision, and credential source.
  2. Classify each step as local/read-only, remote mutation, credentialed, or destructive. Use placeholders only for examples, never as authorization.
  3. Inspect resources and current revisions before changing them. Pin a commit or branch when reproducibility or optimistic concurrency matters.
  4. Preview downloads, copies, sync plans, uploads, visibility changes, and deletes. Confirm exact targets immediately before destructive actions.
  5. Keep remote, paid, networked, credentialed, and long-running operations out of local smoke checks. Use mocked transports and temporary fixtures first.
  6. Verify the result by reading the resulting resource, revision, cache path, output shape, or terminal cloud status; do not infer success from a request being accepted.

Read cross-cutting troubleshooting when access, version, network, optional dependencies, cache state, or ambiguous mutation outcomes are involved. Read repository provenance before deciding whether this skill matches a checkout or needs refreshing.

Minimal local check

bash
python -c "import huggingface_hub; from huggingface_hub import HfApi, InferenceClient; print(huggingface_hub.__version__)"
hf --help

Do not run a command that creates, deletes, uploads, launches compute, changes secrets, or incurs inference cost until the target and authorization are explicit. The generated references contain safe mocked and local-only checks; they are not a substitute for permission to contact or mutate the Hub.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Huggingface Hub」では何ができますか?

Use the Hugging Face Hub Python client and hf CLI for repository and artifact management, downloads and caching, hosted inference, cloud compute, model integration, and safe automation.

TypingMindでHuggingface Hubを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Huggingface Hubはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHuggingface Hubをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hubを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Huggingface Hubを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Huggingface Hubで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHuggingface Hubを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Huggingface Hub」は無料ですか?

はい。VectorSpaceLabがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇