Update README.md
Browse files
README.md
CHANGED
|
@@ -6,3 +6,111 @@ colorTo: gray
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
+
|
| 10 |
+
# Hugging Face Skills
|
| 11 |
+
|
| 12 |
+
Hugging Face Skills are Agent Context Protocol (ACP) definitions for AI/ML tasks like dataset creation, model training, and evaluation. They are interoperable with all major coding agent tools like OpenAI Codex, Anthropic's Claude Code, Google DeepMind's Gemini CLI, and Cursor.
|
| 13 |
+
|
| 14 |
+
## How do Skills work?
|
| 15 |
+
|
| 16 |
+
In practice, skills are self-contained folders that package instructions, scripts, and resources together for an AI agent to use on a specific use case. Each folder includes a `SKILL.md` file with YAML frontmatter (name and description) followed by the guidance your coding agent follows while the skill is active.
|
| 17 |
+
|
| 18 |
+
> [!NOTE]
|
| 19 |
+
> 'Skills' is actually an Anthropic term used within Claude AI and Claude Code and not adopted by other agent tools, but we love it! OpenAI Codex uses an `AGENTS.md` file to define the instructions for your coding agent. Google Gemini uses 'extensions' to define the instructions for your coding agent in a `gemini-extension.json` file. **This repo is compatible with all of them, and more!**
|
| 20 |
+
|
| 21 |
+
## Installation
|
| 22 |
+
|
| 23 |
+
Hugging Face skills are compatible with Claude Code, Codex, and Gemini CLI. With integrations Cursor, Windsurf, and Continue, on the way.
|
| 24 |
+
|
| 25 |
+
### Claude Code
|
| 26 |
+
|
| 27 |
+
1. Register the repository as a plugin marketplace:
|
| 28 |
+
|
| 29 |
+
```
|
| 30 |
+
/plugin marketplace add huggingface/skills
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
2. To install a skill, run:
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
/plugin install <skill-folder>@huggingface-skills
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
For example:
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
/plugin install hf-llm-trainer@huggingface-skills
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Codex
|
| 46 |
+
|
| 47 |
+
1. Codex will identify the skills via the `AGENTS.md` file. You can verify the instructions are loaded with:
|
| 48 |
+
|
| 49 |
+
```
|
| 50 |
+
codex --ask-for-approval never "Summarize the current instructions."
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
2. For more details, see the [Codex AGENTS guide](https://developers.openai.com/codex/guides/agents-md).
|
| 54 |
+
|
| 55 |
+
### Gemini CLI
|
| 56 |
+
|
| 57 |
+
1. This repo includes `gemini-extension.json` to integrate with the Gemini CLI.
|
| 58 |
+
|
| 59 |
+
2. Install locally:
|
| 60 |
+
|
| 61 |
+
```
|
| 62 |
+
gemini extensions install . --consent
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
or use the GitHub URL:
|
| 66 |
+
|
| 67 |
+
```
|
| 68 |
+
gemini extensions install https://github.com/huggingface/skills.git --consent
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
4. See [Gemini CLI extensions docs](https://geminicli.com/docs/extensions/#installing-an-extension) for more help.
|
| 72 |
+
|
| 73 |
+
## Skills
|
| 74 |
+
|
| 75 |
+
This repository contains a few skills to get you started. You can also contribute your own skills to the repository.
|
| 76 |
+
|
| 77 |
+
### Available skills
|
| 78 |
+
|
| 79 |
+
| Skill Folder | Description | Documentation |
|
| 80 |
+
|-------------------------|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
|
| 81 |
+
| `hf_dataset_creator/` | Prompts, templates, and scripts for creating structured training datasets. | [SKILL.md](hf_dataset_creator/skills/hugging-face-dataset-creator/SKILL.md) |
|
| 82 |
+
| `hf_model_evaluation/` | Instructions plus utilities for orchestrating evaluation jobs, generating reports, and mapping metrics. | [SKILL.md](hf_model_evaluation/skills/hugging-face-evaluation-manager/SKILL.md) |
|
| 83 |
+
| `hf-llm-trainer/` | Comprehensive training skill with `SKILL.md` guidance, helper scripts (e.g., `train_sft_example.py`, `convert_to_gguf.py`, cost estimators). | [SKILL.md](hf-llm-trainer/skills/model-trainer/SKILL.md) |
|
| 84 |
+
| `hf-paper-publisher/` | Tools for publishing and managing research papers on Hugging Face Hub. Index papers from arXiv, link papers to models/datasets, generate professional research articles from templates, and manage paper authorship. | [SKILL.md](hf-paper-publisher/skills/hugging-face-paper-publisher/SKILL.md) |
|
| 85 |
+
|
| 86 |
+
### Using skills in your coding agent
|
| 87 |
+
|
| 88 |
+
Once a skill is installed, mention it directly while giving your coding agent instructions:
|
| 89 |
+
|
| 90 |
+
- "Use the HF LLM trainer skill to estimate the GPU memory needed for a 70B model run."
|
| 91 |
+
- "Use the HF model evaluation skill to launch `run_eval_job.py` on the latest checkpoint."
|
| 92 |
+
- "Use the HF dataset creator skill to draft new few-shot classification templates."
|
| 93 |
+
- "Use the HF paper publisher skill to index my arXiv paper and link it to my model."
|
| 94 |
+
|
| 95 |
+
Your coding agent automatically loads the corresponding `SKILL.md` instructions and helper scripts while it completes the task.
|
| 96 |
+
|
| 97 |
+
### Contribute or customize a skill
|
| 98 |
+
|
| 99 |
+
1. Copy one of the existing skill folders (for example, `hf_dataset_creator/`) and rename it.
|
| 100 |
+
2. Update the new folder’s `SKILL.md` frontmatter:
|
| 101 |
+
```markdown
|
| 102 |
+
---
|
| 103 |
+
name: my-skill-name
|
| 104 |
+
description: Describe what the skill does and when to use it
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
# Skill Title
|
| 108 |
+
Guidance + examples + guardrails
|
| 109 |
+
```
|
| 110 |
+
3. Add or edit supporting scripts, templates, and documents referenced by your instructions.
|
| 111 |
+
4. Reinstall or reload the skill bundle in your coding agent so the updated folder is available.
|
| 112 |
+
|
| 113 |
+
### Additional references
|
| 114 |
+
- Browse the latest instructions, scripts, and templates directly at [huggingface/skills](https://github.com/huggingface/skills).
|
| 115 |
+
- Review Hugging Face documentation for the specific libraries or workflows you reference inside each skill.
|
| 116 |
+
|