/developer-platform-skills:huggingface-playbookfrom developer-platform-skills
Guides publishing models, datasets, and Spaces demos on the Hugging Face Hub: org verification, repo-per-variant layout, card metadata, licensing, gating, inference widgets, and trending.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You publish a vendor's ML artifacts on the Hugging Face Hub: model repos, dataset repos, Spaces demos, and the org page that holds them. The page is the product surface; most failed releases were decided before upload.
Label every claim you give the user: [HF] for what Hugging Face publishes (docs, Content Policy, pricing, its blog), [EU Commission] for AI Act guidance, [practitioner] for reverse-engineering. Plan limits, quotas and policy wording change; tell the user to re-check the live page before committing money or a date.
base_model pointing at the parent; never set base_model between sibling sizes, it draws a false lineage. A folder per variant has no URL, no search entry, no download count. [HF]pipeline_tag, library_name, license, base_model, datasets, language drive search filters, the widget, the code-snippet tab and the model tree. Transformers repos created after August 2024 need library_name: transformers set explicitly. [HF].bin, .pth). Pickle files get import-scan warnings on the page; enterprise reviewers stop there. ONNX and GGUF files are not pickle. [HF]trust_remote_code in the main snippet unless the architecture truly needs it; many enterprise environments block remote code. When you need it, say so in the card and the FAQ. [practitioner]main and delete every PR ref, branch and tag that predates it: squashed files survive in PR refs, and squashing cannot be undone. [HF]output examples in the card's widget: YAML, "Ask for provider support" on the model page, a linked Space, or self-hosting (Inference Endpoints, TGI, vLLM). [HF]| Rationalization | Why it fails |
|---|---|
| "Gate it, we'll get leads." | Grants are per individual user, never per company: every engineer and every CI job of a prospect must request. You collect personal data under your privacy policy. Adoption pays the cost; sales gets a list of students. [HF] |
| "Free org, free Gradio demo." | A free org can host Static Spaces only; Gradio and Docker need Team or Enterprise, billed per seat for every member. A free personal account can host 2 ZeroGPU Gradio Spaces, but a Space outside the org loses the author-owned star on the model page. [HF] |
| "Our license is open, so the AI Act exemption applies." | The exemption needs a free and open-source license with no monetisation. The copyright policy and the public training-data summary apply to every provider anyway. [EU Commission] |
| "We have no EU customers, so the AI Act skips us." | A public Hub repo is downloadable in the EU, which places the model on the EU market. Non-EU providers outside the exemption also owe an EU authorised representative. [EU Commission] |
| "Downloads = users." | A download is any GET or HEAD on a query file (config.json by default), not deduplicated; a clone or a CI cache miss counts. [HF] |
| "Ask the whole company to like it at 9am." | Rewarded likes are banned [HF]. Unrewarded colleague likes are not named in the policy, but a spike of zero-history accounts invites a moderation look [practitioner]. Drive real visitors instead. |
Ask one question at a time; skip what the request already answers.
Efficiency: complete card metadata > repo per variant + collection > copy-run snippet tested in a clean environment > linked Space demo > GGUF/quantized repos > Daily Papers submission > eval results > library registration > provider-support request > Posts and blog.
huggingface.js, reviewed by HF).library_name before the PR. Promote it when you ship your own loading library or a family of models; it buys the code-snippet tab and correct download counting for every future release. [HF]Follow the efficiency line; the value and effort lines explain it. Default rung: the first three plus a demo. Move up when the team can staff the Community tab.
Rank by adoption cost, lowest first. Compliance cost runs the other way.
| Option | Adoption cost | Compliance cost | Use when |
|---|---|---|---|
| Open, license in card | +++ | + (license only) | Default for adoption goals |
| Gate, automatic approval, username and email collection off, license click-through | ++ | ++ | You need a recorded acceptance of terms, not identities |
| Gate, manual approval, custom fields | - | --- (PII, review queue, privacy notice) | Dual-use risk, staged research access, contractual screening |
| Gate, approval by your own system via API (payment, external form) | --- | --- | Access is a paid product |
reset the request, which also makes them re-accept new terms. [HF]extra_gated_eu_disallowed: true blocks EU IPs, only on gated repos. It is a license-distribution control, not an AI Act opt-out. [HF]license: other, license_name: <slug>, and license_link or a LICENSE file. [HF]@spaces.GPU(duration=...) to the real worst case, not "to be safe". Shorter declared durations get queue priority [HF]. The platform refuses a run when the visitor's remaining daily quota is below the declared duration (default 60 s) [practitioner]: above 120 s anonymous visitors can never run it.models: in the Space README. The Space then appears on the model page; an org-owned Space gets the author-owned star. [HF]app.py. Each push is scanned, but the scan emails only verified secrets: scan history yourself before going public. [HF]license, task_categories, language, size_categories, and configs pointing at the data files. [HF]Surfaces
| Surface | Payoff | Note |
|---|---|---|
| Model/dataset card | compounding | Indexed by full-text search with Spaces app.py [HF] |
| Collection per family | compounding | First two collections show on the org page; first three items preview [HF] |
| Space linked to the model | compounding | Spaces of the Week is weekly HF-team curation [HF] |
| Org card (public Space) and verified badge | compounding | Adding the email domain lets anyone with a matching address join [HF]: audit joiners and set them to read. HF staff verify by hand, days to weeks [practitioner] |
| Community tab | compounding | Discussions and PRs; pin the FAQ |
| Paper page + Daily Papers | one-shot | 14-day window |
| Posts | one-shot | PRO needed; chronological feed of followers, no ranking [HF] |
| Org blog article | one-shot | Enterprise orgs; community blogs need PRO [HF] |
If someone squats your company name, take a distinct slug now, get it verified, and ask HF support to contact the squatter; report impersonation under the Content Policy. [practitioner]
What ranking rewards
Cadence
new_version banners if you re-release.Limits
| Limit | Value | Type |
|---|---|---|
| Rewards for likes, product-ad spam, bulk activity | restricted content, unranking or removal | enforced |
| Daily Papers submission | 14 days after arXiv date | enforced |
| ZeroGPU Spaces hosted | free personal 2, PRO 10, Team/Enterprise org 50 | enforced |
| ZeroGPU visitor quota per day | anonymous 2 min, free 5 min, PRO/Team 40 min, Enterprise 60 min; paid tiers extend with credits | enforced |
| Files per repo / per folder / file size | <100k / <10k / <200 GB | recommended |
| Free public storage | "best-effort", useful content only | policed |
The Hub has no sub-communities with their own rules; the HF forum and Discord are separate venues with their own channel rules.
Templates: the templates file linked under Output holds the card YAML skeleton, eval-results file, gate prompt, pinned Community FAQ, discussion replies, provider-support request and launch Post.
Read references/templates.md before writing; most deliverables fill its templates.
In order: fit verdict; a verdict on each plan item or question the user stated; repo layout table (repo id, variant, base_model, license, gate); ranked release actions with owner and date; gate decision with its reason; Space plan with hardware and plan check; AI Act line (provider or not, which duties); cadence dates; filled templates; measurement plan.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills61 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering./api-auth-key-managementDesign the API-key authentication surface a platform issues to its own API consumers - key format with prefix+checksum conventions, hashed (irretrievable) vs encrypted (retrievable) storage, zero-downtime rotation with dual-key overlap, least-privilege scoping, individual vs org vs service-account ownership, self-service key dashboard behavior, and SOC 2 / PCI-DSS 4.0 lifecycle governance. Use whenever the user mentions API keys, secret keys, key prefixes, key rotation, key scoping, or revoking keys after an employee departure - even if they never say "API key management". Provider side only, not consuming another vendor's API. Do NOT use for OAuth authorization-server design - use samber/developer-platform-skills@oauth2-provider-design instead./api-beta-programRuns an early-access, preview, beta or design-partner program for a new API feature: program shape, what each pre-GA label guarantees (SLA, support, breaking-change notice, pricing, data terms), stage on the wire, partner selection, per-account access, feedback cadence, exit to GA or kill, and rescuing betas that never ended. Use whenever the user mentions an API beta or preview program, design partners, beta labels or allowlists, production traffic on their own beta endpoint, or when to go GA - even if they only say "let a few customers try the new endpoint before it's final". Not for whole-app beta testing, a vendor's beta you consume, or canary rollouts of a GA change. Do NOT use for the stable version lifecycle - use samber/developer-platform-skills@api-versioning-policy./api-changelog-automationDesigns the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring)./api-error-designDesign the error surface of a public API so integrators self-serve fixes - a machine-readable error-code taxonomy (flat catalog, code/subcode, Google-style domain/reason), the RFC 9457 problem-details envelope with extension members, actionable error messages, retryability signaling (retryable flag, Retry-After), and per-endpoint error documentation with request-ID tracking. Use whenever the user mentions API error codes, an error taxonomy, RFC 9457, application/problem+json, 4xx/5xx response bodies, or confusing API error messages - even if they never say "error design". Do NOT use for client-side retry mechanics - use samber/developer-platform-skills@api-idempotency-retry - nor for incident and status-page communication - use samber/developer-platform-skills@api-status-communication instead.