-
Notifications
You must be signed in to change notification settings - Fork 430
Rework agents docs: simplify, fix links, update skills #2282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a7a1b56
f0e0570
c00cf9d
a570eb1
f21bb92
a597886
7b07c2d
a2bdb33
4c1e3e0
852be89
5f1c21b
8de5f18
3fcf5c1
7efc5ba
d1a815a
6c5530d
fb16d2e
0c3a385
90c0a3c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,115 +1,83 @@ | ||
| # Skills | ||
|
|
||
| Skills are [Agent Context](https://agents.md) definitions that provide coding agents with structured guidance for AI/ML tasks. They help agents understand best practices for a given domain or task. Hugging Face Skills is a repository of skills specifically designed for AI/ML tasks that you can make available to your coding agents. | ||
|
|
||
| Hugging Face Skills work with major coding agents: | ||
| - OpenAI Codex | ||
| - Anthropic Claude Code | ||
| - Google Gemini CLI | ||
| - Cursor | ||
| > [!TIP] | ||
| > Looking for the `hf` CLI Skill? It's the quickest way to connect your agent to the Hugging Face ecosystem. See the [Hugging Face CLI for AI Agents](./agents-cli) guide. | ||
|
|
||
| Each skill includes: | ||
| - Task definitions and workflows | ||
| - Best practices and guidelines | ||
| - Helper scripts and templates | ||
| - Integration with Hugging Face tools | ||
| Hugging Face provides a curated set of Skills built for AI builders. Train models, create datasets, run evaluations, track experiments. Each Skill is a self-contained `SKILL.md` that your agent follows while working on the task. | ||
|
|
||
| > [!TIP] | ||
| > In practice, coding agents are excellent at writing and defining custom skills using the [Agent Skills format](https://agentskills.io/home). Therefore, it is best to use Hugging Face Skills as building blocks for your domain-specific skills. | ||
| Skills work with all major coding agents: Claude Code, OpenAI Codex, Google Gemini CLI, and Cursor. Learn more about the format at [agentskills.io](https://agentskills.io). | ||
|
|
||
| ## Installation | ||
|
|
||
| Skills provide task-specific guidance for AI/ML workflows. They work alongside MCP or standalone. | ||
|
|
||
| <hfoptions id="install-skills"> | ||
|
|
||
| <hfoption id="Claude Code"> | ||
|
|
||
| ```bash | ||
| # start claude | ||
| claude | ||
|
|
||
| # install the skills marketplace plugin | ||
| # register the skills marketplace | ||
| /plugin marketplace add huggingface/skills | ||
| ``` | ||
|
|
||
| Then, to install a specific skill, use the following command: | ||
|
|
||
| ```bash | ||
| # skill name + marketplace | ||
| # install a specific Skill | ||
| /plugin install <skill-name>@huggingface/skills | ||
|
|
||
| # for example, to install the hugging face cli skill | ||
| /plugin install hugging-face-cli@huggingface/skills | ||
| ``` | ||
|
|
||
| </hfoption> | ||
|
|
||
| <hfoption id="OpenAI Codex"> | ||
|
|
||
| ```bash | ||
| # start codex | ||
| codex | ||
| Copy or symlink skills from the [repository](https://github.com/huggingface/skills) into one of Codex's standard `.agents/skills` locations (e.g. `$REPO_ROOT/.agents/skills` or `$HOME/.agents/skills`). Codex discovers them automatically via the Agent Skills standard. | ||
|
|
||
| # install all Hugging Face Skills | ||
| $skill-installer install https://github.com/huggingface/skills | ||
| ``` | ||
| Alternatively, use the bundled [`agents/AGENTS.md`](https://github.com/huggingface/skills/blob/main/agents/AGENTS.md) as a fallback. | ||
|
|
||
| </hfoption> | ||
|
|
||
| Or, to install a specific skill, use the following command: | ||
| <hfoption id="Gemini CLI"> | ||
|
|
||
| ```bash | ||
| # skill name + marketplace | ||
| $skill-installer install <skill-name> from https://github.com/huggingface/skills | ||
| gemini extensions install https://github.com/huggingface/skills.git --consent | ||
| ``` | ||
|
|
||
| For some GPT models, `skill-installer` works better with models on a local directory of skills, so do: | ||
| </hfoption> | ||
|
|
||
| ```bash | ||
| git clone https://github.com/huggingface/skills | ||
| <hfoption id="Cursor"> | ||
|
|
||
| # start codex | ||
| codex | ||
| Install via the Cursor plugin flow using the [repository URL](https://github.com/huggingface/skills). The repo includes `.cursor-plugin/plugin.json` and `.mcp.json` manifests. | ||
|
|
||
| # install the skills from the local directory | ||
| $skill-installer install the hugging face cli skill from the skills/skills/hugging-face-cli/ folder | ||
| ``` | ||
| </hfoption> | ||
|
|
||
| </hfoptions> | ||
|
|
||
| ### What You Can Do | ||
|
|
||
| Once configured, your coding agent can: | ||
|
|
||
| | Capability | Example | | ||
| | ---------- | ------- | | ||
| | Search the Hub | "Find a code generation model under 7B parameters" | | ||
| | Explore datasets | "What datasets are available for sentiment analysis?" | | ||
| | Run Spaces | "Use the Whisper Space to transcribe this audio file" | | ||
| | Get documentation | "How do I fine-tune a model with transformers?" | | ||
| | Train a model | "Train an LLM with SFT using the Qwen/Qwen3-0.6B model and the trl-lib/Capybara dataset" | | ||
| | Query a dataset | "Tell me about the evalstate/mcp-clients dataset from the last 2 days" | | ||
|
|
||
| ## Available Skills | ||
|
|
||
| Hugging Face Skills are available in the [Hugging Face Skills repository](https://github.com/huggingface/skills) and include two types of skills: | ||
| | Skill | What it does | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for this PR, but do we have a way to generate this content from the skills repo, else it's a constant maintenance churn (or include it, or just link to)?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes let's do that later also I'll update to use your installer as default it's going to be way nicer. |
||
| | ----- | ------------ | | ||
| | [`hf-cli`](https://github.com/huggingface/skills/tree/main/skills/hf-cli) | Hub operations via the `hf` CLI: download, upload, manage repos, run jobs | | ||
| | [`hugging-face-datasets`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-datasets) | Create and manage datasets on the Hub | | ||
| | [`hugging-face-dataset-viewer`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-dataset-viewer) | Explore and query any dataset via the Dataset Viewer API | | ||
| | [`hugging-face-model-trainer`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-model-trainer) | Train or fine-tune LLMs with TRL (SFT, DPO, GRPO) on HF Jobs | | ||
| | [`hugging-face-vision-trainer`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-vision-trainer) | Train object detection and image classification models | | ||
| | [`hugging-face-object-detection-trainer`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-object-detection-trainer) | Fine-tune object detection models (RTDETRv2, YOLOS, DETR) | | ||
| | [`hugging-face-evaluation`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-evaluation) | Add and manage evaluation results in model cards | | ||
| | [`hugging-face-jobs`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-jobs) | Run compute jobs on Hugging Face infrastructure | | ||
| | [`hugging-face-trackio`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-trackio) | Track and visualize ML training experiments | | ||
| | [`hugging-face-paper-publisher`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-paper-publisher) | Publish and manage research papers on the Hub | | ||
| | [`hugging-face-tool-builder`](https://github.com/huggingface/skills/tree/main/skills/hugging-face-tool-builder) | Build reusable scripts for HF API operations | | ||
| | [`gradio`](https://github.com/huggingface/skills/tree/main/skills/huggingface-gradio) | Build Gradio web UIs and demos | | ||
| | [`transformers-js`](https://github.com/huggingface/skills/tree/main/skills/transformers.js) | Run ML models in JavaScript/TypeScript with WebGPU/WASM | | ||
|
|
||
| - **Domain-specific skills** are ideal for instructing agents on specific AI tasks like dataset creation, model training, evaluation, and more. | ||
| - **Tool skills** are ideal for instructing agents on how to use the Hugging Face tools like the CLI, Hugging Face Spaces, or Hugging Face Jobs. | ||
| ## Using Skills | ||
|
|
||
| For example, currently available skills include: | ||
| Once installed, mention the Skill directly in your prompt: | ||
|
|
||
| - [hf-cli](https://github.com/huggingface/skills/tree/main/skills/hugging-face-cli) - The Hugging Face CLI skill | ||
| - [hf-datasets](https://github.com/huggingface/skills/tree/main/skills/hugging-face-datasets) - The Hugging Face Dataset Creation and Management skill | ||
| - [hf-trainer](https://github.com/huggingface/skills/tree/main/skills/hugging-face-model-trainer) - The Hugging Face Model Trainer skill | ||
| - [hf-evaluation](https://github.com/huggingface/skills/tree/main/skills/hugging-face-evaluation) - The Hugging Face Model Evaluator skill | ||
| - [hf-jobs](https://github.com/huggingface/skills/tree/main/skills/hugging-face-jobs) - The Hugging Face Jobs skill | ||
| - "Use the HF model trainer Skill to fine-tune Qwen3-0.6B with SFT on the Capybara dataset" | ||
| - "Use the HF evaluation Skill to add benchmark results to my model card" | ||
| - "Use the HF datasets Skill to create a new dataset from these examples" | ||
|
|
||
| Your agent loads the corresponding `SKILL.md` instructions and helper scripts automatically. | ||
|
|
||
| ## Resources | ||
|
|
||
| - [Skills Repository](https://github.com/huggingface/skills) - Browse and contribute | ||
| - [Agent Context Protocol](https://agents.md) - ACP specification | ||
| - [Agent Skills format](https://agentskills.io/home) - Agent Skills format | ||
| - [MCP Guide](./agents-mcp) - Use alongside skills | ||
|
|
||
| - [Agent Skills format](https://agentskills.io/home) - Specification and docs | ||
| - [CLI Guide](./agents-cli) - Hugging Face CLI for AI Agents | ||
| - [MCP Guide](./agents-mcp) - Use alongside Skills | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo this page should be the main section page (i.e. changing line 437 in
_toctree.ymlfromagents->agents-overview). we can moveagents.mdinto a subsection (Agents libraries?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I agree in another PR because it's already a lot of changes here.