Agent skill · Hugging Face

Transformers.js skill for Claude Code, Codex and Cursor

Runs ML models for text, vision and audio directly in JavaScript or the browser.

Officialname: transformers-js★ 11k (repo)pushed 2026-10-23Apache-2.0SKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks.

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install Transformers.js

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add huggingface/skills --skill transformers-js

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

  • The SKILL.md says: "Requires Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support. WebGPU requires runtime and hardware support; WASM is the broad fallback. Internet access is needed for downloading models from Hugging Face Hub (optional if using local models)."

What's in the SKILL.md

40 sections
  • When to Use This Skill
  • Installation
  • NPM Installation
  • Browser Usage (CDN)
  • Core Concepts
  • 1. Pipeline API
  • 2. Model Selection
  • 3. Device Selection
  • 4. Quantization Options
  • Supported Tasks
  • Natural Language Processing
  • Computer Vision
  • Audio Processing
  • Multimodal
  • Feature Extraction (Embeddings)
  • Finding and Choosing Models
  • Browsing the Hugging Face Hub
  • Choosing the Right Model
  • Example: Finding a Text Generation Model
  • Tips for Model Selection
  • Advanced Configuration
  • Environment Configuration (env)
  • ModelRegistry (v4)
  • Standalone Tokenization (@huggingface/tokenizers)
  • + 16 more

Bundled files

7
  • references/CACHE.md
  • references/CONFIGURATION.md
  • references/EXAMPLES.md
  • references/MODEL_ARCHITECTURES.md
  • references/MODEL_REGISTRY.md
  • references/PIPELINE_OPTIONS.md
  • references/TEXT_GENERATION.md

Loaded only when the instructions point to them.

Facts

Skill name
transformers-js
Publisher
Hugging Face (official)
Repo
huggingface/skills
License
Apache-2.0
Version
4.x
SKILL.md size
1,587 words, 681 lines
Bundled files
7, 7 docs
Repo stars
11k (as of 2026-10-24)
SKILL.md checked
2026-11-07

Pairs with the Hugging Face MCP server: the server gives the agent the tools, the skill teaches it how to use them.

More skills from huggingface/skills

  • Hugging Face CLI: Uses the hf command line to download, upload and manage models, datasets, Spaces and jobs.
  • Gradio: Builds Gradio demo apps in Python: components, layouts, events and chat interfaces.
  • Hugging Face LLM Trainer: Fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs.

Related ai & ml skills

FAQ

What does the transformers-js skill do?+

Runs ML models for text, vision and audio directly in JavaScript or the browser. In its own SKILL.md, Hugging Face describes it as: "Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks."

How do I install the transformers-js skill?+

Run npx skills add huggingface/skills --skill transformers-js and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/transformers-js/SKILL.md; in Codex and Cursor in .agents/skills/transformers-js/.

Does Transformers.js work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more. The SKILL.md notes: Requires Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support. WebGPU requires runtime and hardware support; WASM is the broad fallback. Internet access is needed for downloading models from Hugging Face Hub (optional if using local models).

Who maintains Transformers.js?+

Hugging Face, the company or project behind it, in the huggingface/skills repo on GitHub, last pushed 2026-10-23. License: Apache-2.0.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers