{
  "schemaVersion": "1.0",
  "item": {
    "slug": "huggingface",
    "name": "Huggingface",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/TsukiSama9292/huggingface",
    "canonicalUrl": "https://clawhub.ai/TsukiSama9292/huggingface",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/huggingface",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=huggingface",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/huggingface"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/huggingface",
    "agentPageUrl": "https://openagent3.xyz/skills/huggingface/agent",
    "manifestUrl": "https://openagent3.xyz/skills/huggingface/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/huggingface/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Hugging Face CLI Skill",
        "body": "Use Hugging Face Hub CLI (hf) for various operations."
      },
      {
        "title": "Environment Variables",
        "body": "HF_TOKEN: Hugging Face API Token (get from https://huggingface.co/settings/tokens)"
      },
      {
        "title": "1. Authentication Management (hf auth)",
        "body": "# Check login status\nhf auth whoami\n\n# List all tokens\nhf auth list\n\n# Login\nhf auth login\n\n# Logout\nhf auth logout\n\n# Switch token\nhf auth switch"
      },
      {
        "title": "2. Model Management (hf models)",
        "body": "# List models (supports sorting and filtering)\nhf models ls --sort downloads --limit 10\nhf models ls --search \"llama\"\n\n# Get model info\nhf models info meta-llama/Llama-3.2-1B-Instruct"
      },
      {
        "title": "3. Dataset Management (hf datasets)",
        "body": "# List datasets\nhf datasets ls --limit 10\nhf datasets ls --search \"imagenet\"\n\n# Get dataset info\nhf datasets info HuggingFaceFW/fineweb"
      },
      {
        "title": "4. Spaces Management (hf spaces)",
        "body": "# List Spaces\nhf spaces ls --limit 10\n\n# Get Space info\nhf spaces info username/repo-name\n\n# Hot-reload (experimental, for Gradio 6.1+)\nhf spaces hot-reload username/repo-name app.py\nhf spaces hot-reload username/repo-name -f ./local/app.py"
      },
      {
        "title": "5. Repository Management (hf repos)",
        "body": "# Create new repository\nhf repos create my-model --type model\nhf repos create my-dataset --type dataset\nhf repos create my-space --type space\n\n# Delete repository\nhf repos delete username/repo-name\n\n# Set as private\nhf repos settings username/repo-name --private\n\n# Manage branches\nhf repos branch create username/repo-name feature-branch\nhf repos branch delete username/repo-name feature-branch\n\n# Manage tags\nhf repos tag create username/repo-name v1.0\nhf repos tag delete username/repo-name v1.0\n\n# Move repository to another namespace\nhf repos move old-namespace/my-model new-namespace/my-model"
      },
      {
        "title": "6. Download Files (hf download)",
        "body": "# Download entire model\nhf download meta-llama/Llama-3.2-1B-Instruct\n\n# Download specific files\nhf download meta-llama/Llama-3.2-1B-Instruct config.json tokenizer.json\n\n# Download with glob patterns\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.safetensors\"\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.json\" --exclude \"*.bin\"\n\n# Download to local directory\nhf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./models/llama\n\n# Download dataset\nhf download HuggingFaceM4/FineVision --repo-type dataset"
      },
      {
        "title": "7. Upload Files (hf upload)",
        "body": "# Upload entire directory\nhf upload my-cool-model . .\n\n# Upload single file\nhf upload username/my-model ./models/model.safetensors\n\n# Upload to dataset\nhf upload username/my-dataset ./data /train --repo-type dataset\n\n# With commit message\nhf upload username/my-model ./models . --commit-message=\"Epoch 34/50\" --commit-description=\"Val accuracy: 68%\"\n\n# Create Pull Request\nhf upload bigcode/the-stack . . --repo-type dataset --create-pr\n\n# Create private repository\nhf upload username/my-private-model . . --private"
      },
      {
        "title": "8. Collection Management (hf collections)",
        "body": "# Create collection\nhf collections create \"My Models\"\n\n# Add item to collection\nhf collections add-item username/my-collection moonshotai/kimi-k2 model\n\n# List collections\nhf collections ls\n\n# Get collection info\nhf collections info username/my-collection\n\n# Update collection\nhf collections update username/my-collection --title \"New Title\"\n\n# Update collection item\nhf collections update-item username/my-collection ITEM_OBJECT_ID --note \"Updated note\"\n\n# Delete item\nhf collections delete-item username/my-collection ITEM_OBJECT_ID\n\n# Delete collection\nhf collections delete username/my-collection"
      },
      {
        "title": "Example 1: Download and Upload Model",
        "body": "# Download model\nhf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./llama-model\n\n# Upload to your repository\nhf upload username/my-llama ./llama-model ."
      },
      {
        "title": "Example 2: Manage Space",
        "body": "# Create Space\nhf repos create my-app --type space\n\n# Upload code\nhf upload username/my-app ./app.py\n\n# Hot-reload for development\nhf spaces hot-reload username/my-app app.py"
      },
      {
        "title": "Example 3: Batch Operations",
        "body": "# Download all safetensors files\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.safetensors\"\n\n# Upload and create PR\nhf upload username/model . . --create-pr --commit-message=\"Update model\""
      },
      {
        "title": "Notes",
        "body": "Token Management: Ensure HF_TOKEN environment variable is set, or use --token parameter\nLarge File Upload: For large folders, consider using hf upload-large-folder\nSpace Hot-Reload: Only works with Gradio 6.1+, experimental feature\nFree Space Limits:\n\nFree fixed vCPU: 2\nRAM: 16GB\nNo persistent storage (use external storage or HF Datasets)"
      },
      {
        "title": "Resources",
        "body": "Hugging Face CLI Documentation\nHugging Face Token Settings\nHugging Face Spaces"
      }
    ],
    "body": "Hugging Face CLI Skill\n\nUse Hugging Face Hub CLI (hf) for various operations.\n\nEnvironment Variables\nHF_TOKEN: Hugging Face API Token (get from https://huggingface.co/settings/tokens)\nCore Features\n1. Authentication Management (hf auth)\n# Check login status\nhf auth whoami\n\n# List all tokens\nhf auth list\n\n# Login\nhf auth login\n\n# Logout\nhf auth logout\n\n# Switch token\nhf auth switch\n\n2. Model Management (hf models)\n# List models (supports sorting and filtering)\nhf models ls --sort downloads --limit 10\nhf models ls --search \"llama\"\n\n# Get model info\nhf models info meta-llama/Llama-3.2-1B-Instruct\n\n3. Dataset Management (hf datasets)\n# List datasets\nhf datasets ls --limit 10\nhf datasets ls --search \"imagenet\"\n\n# Get dataset info\nhf datasets info HuggingFaceFW/fineweb\n\n4. Spaces Management (hf spaces)\n# List Spaces\nhf spaces ls --limit 10\n\n# Get Space info\nhf spaces info username/repo-name\n\n# Hot-reload (experimental, for Gradio 6.1+)\nhf spaces hot-reload username/repo-name app.py\nhf spaces hot-reload username/repo-name -f ./local/app.py\n\n5. Repository Management (hf repos)\n# Create new repository\nhf repos create my-model --type model\nhf repos create my-dataset --type dataset\nhf repos create my-space --type space\n\n# Delete repository\nhf repos delete username/repo-name\n\n# Set as private\nhf repos settings username/repo-name --private\n\n# Manage branches\nhf repos branch create username/repo-name feature-branch\nhf repos branch delete username/repo-name feature-branch\n\n# Manage tags\nhf repos tag create username/repo-name v1.0\nhf repos tag delete username/repo-name v1.0\n\n# Move repository to another namespace\nhf repos move old-namespace/my-model new-namespace/my-model\n\n6. Download Files (hf download)\n# Download entire model\nhf download meta-llama/Llama-3.2-1B-Instruct\n\n# Download specific files\nhf download meta-llama/Llama-3.2-1B-Instruct config.json tokenizer.json\n\n# Download with glob patterns\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.safetensors\"\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.json\" --exclude \"*.bin\"\n\n# Download to local directory\nhf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./models/llama\n\n# Download dataset\nhf download HuggingFaceM4/FineVision --repo-type dataset\n\n7. Upload Files (hf upload)\n# Upload entire directory\nhf upload my-cool-model . .\n\n# Upload single file\nhf upload username/my-model ./models/model.safetensors\n\n# Upload to dataset\nhf upload username/my-dataset ./data /train --repo-type dataset\n\n# With commit message\nhf upload username/my-model ./models . --commit-message=\"Epoch 34/50\" --commit-description=\"Val accuracy: 68%\"\n\n# Create Pull Request\nhf upload bigcode/the-stack . . --repo-type dataset --create-pr\n\n# Create private repository\nhf upload username/my-private-model . . --private\n\n8. Collection Management (hf collections)\n# Create collection\nhf collections create \"My Models\"\n\n# Add item to collection\nhf collections add-item username/my-collection moonshotai/kimi-k2 model\n\n# List collections\nhf collections ls\n\n# Get collection info\nhf collections info username/my-collection\n\n# Update collection\nhf collections update username/my-collection --title \"New Title\"\n\n# Update collection item\nhf collections update-item username/my-collection ITEM_OBJECT_ID --note \"Updated note\"\n\n# Delete item\nhf collections delete-item username/my-collection ITEM_OBJECT_ID\n\n# Delete collection\nhf collections delete username/my-collection\n\nUsage Examples\nExample 1: Download and Upload Model\n# Download model\nhf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./llama-model\n\n# Upload to your repository\nhf upload username/my-llama ./llama-model .\n\nExample 2: Manage Space\n# Create Space\nhf repos create my-app --type space\n\n# Upload code\nhf upload username/my-app ./app.py\n\n# Hot-reload for development\nhf spaces hot-reload username/my-app app.py\n\nExample 3: Batch Operations\n# Download all safetensors files\nhf download meta-llama/Llama-3.2-1B-Instruct --include \"*.safetensors\"\n\n# Upload and create PR\nhf upload username/model . . --create-pr --commit-message=\"Update model\"\n\nNotes\nToken Management: Ensure HF_TOKEN environment variable is set, or use --token parameter\nLarge File Upload: For large folders, consider using hf upload-large-folder\nSpace Hot-Reload: Only works with Gradio 6.1+, experimental feature\nFree Space Limits:\nFree fixed vCPU: 2\nRAM: 16GB\nNo persistent storage (use external storage or HF Datasets)\nResources\nHugging Face CLI Documentation\nHugging Face Token Settings\nHugging Face Spaces"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/TsukiSama9292/huggingface",
    "publisherUrl": "https://clawhub.ai/TsukiSama9292/huggingface",
    "owner": "TsukiSama9292",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/huggingface",
    "downloadUrl": "https://openagent3.xyz/downloads/huggingface",
    "agentUrl": "https://openagent3.xyz/skills/huggingface/agent",
    "manifestUrl": "https://openagent3.xyz/skills/huggingface/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/huggingface/agent.md"
  }
}