Agent skill · Hugging Face
Transformers.js skill for Claude Code, Codex and Cursor
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
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (hf-cli), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add huggingface/skills /plugin install <plugin>@huggingface-skills # or only this skill: npx skills add huggingface/skills --skill transformers-js -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/huggingface/skills.git /tmp/transformers-js-src cp -r /tmp/transformers-js-src/skills/transformers-js ./transformers-js zip -r transformers-js.zip transformers-js
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add huggingface/skills --skill transformers-js -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install huggingface/skills transformers-js
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add huggingface/skills --skill transformers-js -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/huggingface/skills.git --path skills/transformers-js
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add huggingface/skills --skill transformers-js -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add huggingface/skills --skill transformers-js -a windsurf
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
- 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
- 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
- Claude API · Anthropic
- ChatGPT Apps · OpenAI
- OpenAI Docs · OpenAI
- Gemini API · Google (Gemini)
- Gemini Live API · Google (Gemini)
- Cloudflare Agents SDK · Cloudflare
- Deep Agents · LangChain
- LangGraph Fundamentals · LangChain
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