beer-sakthai/sak-family-agent/sakthai-hf-hub-contents-api

Claude Code and agent skill by beer-sakthai/sak-family-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

HuggingFace Hub Contents API endpoint details and usage patterns

Install

npx vskill@latest install beer-sakthai/sak-family-agent/sakthai-hf-hub-contents-api

SKILL.md

HF Hub Contents API

Description

Deep knowledge of the Hugging Face Hub's Repository Contents API — listing, inspecting, and navigating repo file trees, getting path metadata with security scan results and last-commit info, enumerating branches/tags/refs, and querying commit history. Covers list_repo_tree, get_paths_info, list_repo_files, list_repo_refs, list_repo_commits, and the underlying dataclasses (RepoFile, RepoFolder, GitRefs, GitRefInfo, GitCommitInfo).

When to Use

  • Need to list all files in a repo without cloning it
  • Need detailed metadata about specific files (size, LFS info, security scan results, last commit)
  • Need to enumerate branches, tags, and pull request refs
  • Need to inspect commit history for a given revision
  • Need to navigate repo directory trees programmatically

Key APIs

MethodUse Case
list_repo_tree()Navigate repo file tree (folder listing)
get_paths_info()Get metadata for specific paths
list_repo_files()Flat list of all file paths
list_repo_refs()List branches, tags, PR refs
list_repo_commits()List commit history
create_branch()Create a new branch from a revision
delete_branch()Delete a branch
super_squash_history()Squash entire git history

Core Dataclasses

  • RepoFile — file entry (path, size, blob_id, lfs, security, last_commit)
  • RepoFolder — folder entry (path, tree_id, last_commit)
  • GitRefs — container (branches, converts, tags, pull_requests)
  • GitRefInfo — single ref (name, ref, target_commit)
  • GitCommitInfo — commit (commit_id, authors, created_at, title, message)
  • LastCommitInfo — last commit for a file/folder (oid, title, date)
  • BlobLfsInfo — LFS metadata (size, sha256, pointer_size)
  • BlobSecurityInfo — security scan (safe, status, av_scan, pickle_import_scan)

Reference

See references/hf-learnings.md for the complete deep-dive.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/beer-sakthai/sak-family-agent/sakthai-hf-hub-contents-api/badge)](https://verified-skill.com/skills/beer-sakthai/sak-family-agent/sakthai-hf-hub-contents-api)

Something wrong with this skill or its page? Tell us.