Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Hermes Agent Skills

Hermes Agent Skills

If the memory system lets Hermes remember who you are, the Skills system lets Hermes remember how to do things.

Skills are the procedural memory of the Hermes Agent.

Skills allow the agent to create reusable workflows from experience and reuse them in future sessions.

The Skills system is the core differentiating feature of the Hermes Agent - it is the only agent with a built-in learning loop, able to create skills, improve them through use, and retain knowledge across sessions.


What are skills

Skills are a set of instructions and tools that define agent behavior; they can:

For more, see the Skills tutorial:https://www.runoob.com/ai-agent/skills-agent.html.

Skills vs memory

Comparison Dimensions Skills Memory
Content-Type Operating procedures, working methods Environmental facts, user preferences
When loaded On demand, loaded only when needed Automatically injected every session
// Process file content Can be large (hundreds of lines) Should stay concise (key facts)
Token consumption Zero cost when not loaded Fixed cost per session
Creator You, the Agent, or installed from the Hub Automatically created by the Agent based on the conversation
Typical examples How to deploy to Kubernetes The user lives in Shanghai and prefers concise replies

Rule of thumb: if you would write it into a reference document, it is a skill; if you would stick it on a sticky note, it is memory.


Skill directory structure

All skills are stored in the ~/.hermes/skills/ directory - this is the single source of truth.

On first installation, built-in skills are copied from the repository into this directory. Skills installed from the Hub and skills automatically created by the Agent are also stored here.



~/.hermes/skills/

├── mlops/                     # 分类目录

│   ├── axolotl/

│   │   ├── SKILL.md           # 主指令文件(必须)

│   │   ├── references/        # 补充文档(按需加载)

│   │   ├── templates/         # 输出模板

│   │   ├── scripts/           # 辅助脚本

│   │   └── assets/            # 附属资源

│   └── vllm/

│       └── SKILL.md

├── devops/

│   └── deploy-k8s/            # Agent 自动创建的技能

│       ├── SKILL.md

│       └── references/

├── .hub/                      # Skills Hub 状态

│   ├── lock.json

│   ├── quarantine/            # 安全隔离区

│   └── audit.log

└── .bundled_manifest          # 记录内置技能版本

The only mandatory file in each skill directory is SKILL.md; all other subdirectories are optional.

The Agent can modify or delete any skill - whether built-in, installed from the Hub, or created by itself.


Progressive disclosure: a Token-efficient loading mechanism

One of the smartest designs of the skill system is progressive disclosure - the Agent does not stuff all skill content into the context at once, but loads it in three layers on demand.



Level 0: skills_list()              → [{name, description, category}, ...]

                                       会话启动时加载,约 3,000 tokens

                                       ↓ 只有需要用某个技能时,才继续

Level 1: skill_view(name)           → 完整 SKILL.md 内容 + 元数据

                                       ↓ 只有需要参考文档时,才继续

Level 2: skill_view(name, path)     → 技能内的特定 references/ 文件

The practical implication of this design is very direct:

Progressive disclosure is what distinguishes the skill system fromstuffing all documentation into the system promptthe key design. It ensures the number of skills can grow indefinitely while the per-session Token cost stays roughly constant.


Built-in skills at a glance

Hermes ships with a large number of built-in skills, ready to use.

Start hermes from the command line:

hermes

Use the following command to view skill-related commands:

/skills

The following command lists all skills within a session:

/skills browse

View directly in the command line with hermes:

hermes skills list

In the desktop app, click the Skills & Tools menu on the left to view:

Skill categories

Built-in skills are stored in subdirectories by function:

Category directory Included skill types
software-development/ GitHub PR, code review, test-driven development
research/ arXiv paper search, web research
productivity/ OCR documents, ASCII art, plan generation
mlops/ Axolotl fine-tuning, vLLM deployment, Flash Attention
creative/ Writing, charts (Excalidraw)
devops/ Kubernetes, cloud deployment

Optional skills (not installed by default)

Optional skills ship with hermes-agent and are stored in optional-skills/ , but are not activated by default and need to be installed explicitly.

These skills usually require extra dependencies or serve niche use cases:

Example

Install optional skills

hermes skills

install

official

/

blockchain

/

solana

hermes skills

install

official

/

mlops

/

flash-attention

Browse all optional skills

hermes skills browse


Using skills

Skills can be triggered in two ways: direct invocation via slash command and automatic triggering via natural language.

Direct invocation via slash command

Every installed skill automatically becomes a slash command.

Use it directly on any platform (CLI, Telegram, Discord, etc.):

Example

Load a skill and give it a task

/

ascii-art Generate a banner that says

"Hello World"

the banner

/

plan Design a REST API for a to-do app

/

github-pr-workflow Create a PR for an authentication module refactor

Enter only the skill name (without a task) - let the Agent ask what you need

/

excalidraw

The built-in plan A skill is a good example: after running /plan [请求] , the skill instructions tell Hermes to first check the context, then generate a Markdown implementation plan and save it to .hermes/plans/, instead of executing the task directly.

Natural language triggering

Skills can also be triggered through natural conversation; Hermes loads them automatically via the skill_view tool:

Example

The user describes the need in natural language

Help me search arXiv for the latest papers on diffusion model

The Agent will recognize that the arxiv skill is needed, load it automatically, then execute.

Keyword search for skills

Example

Search within a session

/

skills search docker

/

skills search music

Search from the command line

hermes skills search deployment


Install skills from the Hub

Besides built-in skills, you can also install third-party skills from the agentskills.io community Hub.

Install from the command line

Example

Install official optional skills (using the official/ prefix)

hermes skills

install

official

/

research

/

arxiv

hermes skills

install

official

/

creative

/

songwriting-and-ai-music

Install within a session

/

skills

install

official

/

creative

/

songwriting-and-ai-music

Install directly from a URL (any public SKILL.md file)

hermes skills

install

https:

//

sharethis.chat

/

SKILL.md

Install with a custom name

hermes skills

install

https:

//

example.com

/

SKILL.md

--name

my-skill

What happens after installation:

  1. The skill directory is copied to ~/.hermes/skills/
  2. appears in the skills_list output
  3. Can be used as a slash command

Installed skills take effect ina new sessionTo use them immediately in the current session, use /reset to start a new session, or add the --now flag to refresh the prompt cache immediately (which consumes a bit more Token).

Verify the installation

Example

Verify from the command line

hermes skills list

|

grep

arxiv

Or verify within a session

/

skills search arxiv

Add a skill source from a GitHub repository

Example

Add a GitHub repository as a skill source

hermes skills tap add github.com

/

username

/

my-skills-repo

Afterwards you can install skills from the repository

hermes skills

install

username

/

my-workflow


The /learn command: generate a skill from a source in one step

/learn is a shortcut for quickly turning something you already know - or a pile of reference material - into a reusable skill without hand-writing SKILL.md.

It is open-ended: point it at anything you can describe, and the Agent uses its existing tools to gather material, then generates a skill following standard authoring conventions.

Example

Learn from a local SDK or documentation directory (read with read_file / search_files)

/

learn ~

/

projects

/

The REST client in acme-sdk, focusing on authentication and pagination

Learn from an online documentation page (fetch with web_extract)

/

learn https:

//

docs.example.com

/

api

/

quickstart

Learn from a workflow you just completed

/

learn The steps I just used to deploy the staging server

Learn from pasted notes or a described process

/

learn Reimbursement process: open the portal, create a new expense report, attach the receipt, submit

How /learn works

The whole process has three steps:

  1. The Agent uses existing tools to gather source material (read files, scrape web pages, analyze the current conversation)
  2. Draft SKILL.md following the official Skill authoring standard (including a ≤60 character description, standard section order, the Hermes tool framework, and no fabricated commands)
  3. Pass skill_manage The tool saves it - if write_approvalis enabled, approval is requested first

/learn works identically in the CLI, messaging gateway, TUI, and Dashboard. The Dashboard Skills page also provides a graphicalLearn a skillpanel with three input boxes: directory, URL, and free text.


Automatic skill creation by the Agent

This is the most unique part of the Hermes skill system: Hermes learns from experience by saving reusable workflows as skills.

When it solves a complex problem, discovers a workflow, or is corrected, it can persist that knowledge as a skill document and load it in future sessions.

Skills accumulate over time, making the Agent increasingly good at your specific tasks and environment.

Trigger Timing

After completing a complex task (usually involving 5+ tool calls), Hermes may proactively suggest:



我注意到我们刚才走完了一个完整的 Docker 多阶段构建流程。

要不要我把这个工作流程保存为技能,下次可以直接复用?

Manually ask the Agent to create a skill

You can also ask proactively at any time:

Example

Save the workflow we just did as a skill

Save our K8s deployment workflow as a skill

Learn the project conventions and save them as a skill

Learn the Git commit conventions for this project and save them as a skill

Control skill write permissions

By default the Agent can freely create and modify skills.

With approval mode enabled, the Agent asks for your confirmation every time it wants to create or modify a skill:

Example

File path: ~/.hermes/config.yaml

Enable skill write approval

skills

:

  write_approval

:

true  

Default false

With write_approval enabled, you can preview the skill content the Agent wants to write before deciding whether to approve it. This is an important security boundary - skill files have no signed provenance information, so you cannot tell apartwritten by the Agent itselfandmanually placed in the directory.


SKILL.md format explained

A skill is a Markdown file with YAML front matter.

Below is the complete format specification, including all optional and required fields:

Example


name: my-skill-name # lowercase letters and hyphens, ≤64 characters (required)

description: When the user needs <, use it.<.

             ≤1024 characters (required)

version: 1.0.0

author: Your name

license: MIT

platforms:

[

macos, linux

]

   # Optional - restrict the operating system

metadata:

  hermes:

    tags:

[

python, automation, devops

]

    category: devops

    related_skills:

[

other-skill, another-skill

]

    fallback_for_toolsets:

[

web

]

    # Optional - conditional activation

    requires_toolsets:

[

terminal

]

   # Optional - conditional activation

    config: # Optional - declare required configuration items

     -

key: myskill.api_key

        description: "API Key description"

        default: ""

        prompt: "Please enter the API Key"

required_environment_variables: # Optional - declare required environment variables

 -

name: TENOR_API_KEY

    prompt: Tenor API Key

    help: Get it from https://developers.google.com/tenor

   required_for: GIF search feature

Skill title

When to Use

List of trigger conditions

Reverse conditions (when not to use this skill)

Procedure

Step 1

Step 2

If you need API documentation, load the reference: skill_view

(

"my-skill", "references/api-docs.md"

)

Pitfalls

Known failure modes:

[

Description

]

. Workaround:

[

Solution

]

Watch out for edge cases:

[

Description

]

Verification

Run check-command to verify the result is correct.

Field limits

Field Limitation Description
name ≤64 characters Lowercase letters and hyphens
description ≤1024 characters The key basis for skill selection, which the Agent uses to decide whether to load
the entire SKILL.md ≤100,000 characters (about 36k tokens) Over 20k is recommended to split into references/

Conditional activation: smart show/hide mechanism

Skills can automatically appear or hide based on the tools available in the current session, with no manual management.

This is very useful in multi-environment deployments - the same skill list automatically adapts in different environments.

Example

Conditional activation config in SKILL.md front matter

metadata

:

  hermes

:

    fallback_for_toolsets

:

[

web

]

     

Show only when the web toolset is unavailable

    requires_toolsets

:

[

terminal

]

   

Show only when the terminal toolset is available

    fallback_for_tools

:

[

web_search

]

 

Show only when the web_search tool is unavailable

    requires_tools

:

[

terminal

]

       

Show only when the terminal tool is available

Field Behavior
fallback_for_toolsets Hidden when the listed toolsets are available, shown when unavailable
requires_toolsets Shown when the listed toolsets are available, hidden when unavailable
fallback_for_tools Same as above, but for specific tools rather than toolsets
requires_tools Same as above, but for specific tools

Real example: the built-in duckduckgo-search skill uses fallback_for_toolsets: [web].

When you configure a Firecrawl API Key (web toolset available), this skill hides automatically and the Agent directly uses web_search.

When the API Key is missing (web toolset unavailable), the DuckDuckGo skill automatically appears as a fallback.


Skill Bundle: combined loading

A skill bundle is a YAML file that combines multiple skills under one slash command.

Run / When invoked, all skills listed in the bundle load at once - suitable for scenarios where a task always needs the same set of skills.

Create a skill bundle

Example

Create a backend development skill bundle combining three skills

hermes bundles create backend-dev \

 

--skill

github-code-review \

 

--skill

test-driven-development \

 

--skill

github-pr-workflow \

 

-d

"Backend feature development - code review, testing, PR workflow"

When using it:

Example

One command loads three skills at once

/

backend-dev Refactor the authentication middleware

The Agent loads all three skills at once and appendsRefactor the authentication middlewareas the user instruction.

Skill bundle file format

Skill bundles are stored in ~/.hermes/skill-bundles/.yaml:

Example

File path: ~/.hermes/skill-bundles/backend-dev.yaml

name

:

backend-dev

description

:

Backend feature development - code review, testing, PR workflow

skills

:

 - github-code-review

  - test-driven-development

  - github-pr-workflow


Platform-level skill management

Different platforms can enable different subsets of skills.

For example, development-related skills have no reason to appear on Telegram:

Example

Open the interactive TUI to enable or disable skills per platform

hermes skills config

This opens an interactive TUI that lets you enable or disable skills separately on each platform (CLI, Telegram, Discord, etc.).


Create a skill manually: get started in five minutes

A skill is just a Markdown file with YAML front matter.

Creating a skill takes less than five minutes, with no registration required - just drop it into ~/.hermes/skills/ and it is ready to use.

Step 1: Create the directory

Example

Create the skill directory (category directory/skill name)

mkdir

-p

~

/

.hermes

/

skills

/

my-category

/

my-skill

Step 2: Write SKILL.md

Example


name: fly-deploy

description: Deploy a Python app to Fly.io, including environment variables and persistent volume configuration.

version: 1.0.0

metadata:

  hermes:

    tags:

[

python, deployment, fly.io

]

    category: devops

   requires_toolsets: [terminal]

Deploy a Python app to Fly.io

When to Use

The user needs to deploy a Python app (Flask/FastAPI/Django) to Fly.io

Needs to configure environment variables or Volume persistent storage

Not for: non-Python apps, or using other cloud platforms

Procedure

Check whether the fly CLI is installed: fly version

Log in to Fly: fly auth login

Initialize in the project root: fly launch

Configure fly.toml (check the

[

build

]

and

[

http_service

]

section)

Set the necessary Secret: fly secrets set KEY=VALUE

Deploy: fly deploy

Check logs: fly logs

Pitfalls

fly launch automatically detects the Python app and generates a Dockerfile,

  in most cases no manual writing is needed

Environment variables are set via fly secrets set rather than a .env file

  (.env is not uploaded)

The free plan has a monthly machine runtime limit; upgrade for long-running apps

Verification

fly status # Check app status

fly open # Open the app in the browser

Step 3 (optional): Add reference files

Example

Create a references subdirectory

mkdir

-p

~

/

.hermes

/

skills

/

my-category

/

my-skill

/

references

Put API documentation, examples, etc. into references/

Reference it in SKILL.md like this:

For detailed API parameters, load the reference documentation:

skill_view("fly-deploy", "references/fly-toml-reference.md")

Step 4: Test

Example

Start a new session to test the skill

hermes chat

-q

"/fly-deploy Help me deploy this FastAPI app"


Skill security considerations

Write approval gating

Skill files have no signed provenance information - cannot distinguishwritten by the Agent itselfandmanually placed in the directory.

The write approval mechanism and pending/ directory management are a critical security boundary.

With approval enabled,write_approval: true stages all skill write operations (including automatic creation initiated by the Agent) as pending approval, so you review them before deciding whether to allow the write.

Security scanning

Skill content is threat-scanned before loading, detecting malicious patterns such as prompt injection and backdoor installation instructions.

Content matching a threat pattern is replaced with [BLOCKED: ...] placeholders, preventing it from reaching the model - the file itself is not deleted, only the threat content is masked.

Notes when installing from the Hub

Source type Risk level Recommendation
Official built-in skills (official/ prefix) Low From the Hermes repository, reviewed, can be installed directly
Community skills (URL or third-party registry) Medium Preview the content with hermes skills inspect before installing
Skills in .hub/quarantine/ High Suspicious skills that have been quarantined, not recommended to install

Example

Preview skill content before installing, without performing the install

hermes skills inspect https:

//

example.com

/

SKILL.md


Skill updates and maintenance

Check and update

Example

Check for updates to all skills

hermes skills check

Update all updatable skills

hermes skills update

Update a specific skill

hermes skills update arxiv

Reset built-in skills

If you modified a built-in skill and want to restore the original:

Example

Safe reset: clear the modification record, keep the current file content

hermes skills reset google-workspace

Full restore: delete the current file, re-copy the built-in version

hermes skills reset google-workspace

--restore

Uninstall Hub skills

Example

Uninstall skills installed via the Hub

hermes skills uninstall my-hub-skill

Uninstalling can only remove skills installed via the Hub; built-in skills cannot be uninstalled (but you can stop receiving updates with hermes skills opt-out).


Publish a skill to the Skills Hub

If you created a valuable skill, you can publish it to agentskills.io to share with the community:

Example

Publish to the registry

hermes skills publish ~

/

.hermes

/

skills

/

devops

/

fly-deploy

View your published skills in the Hub

hermes skills list

--mine

Blueprint: skills + scheduled tasks

Skills can declare a schedule, becoming a shareable automation blueprint:

Example

Declare a blueprint schedule in SKILL.md

metadata

:

  hermes

:

    tags

:

[

blueprint, email

]

    blueprint

:

      schedule

:

"0 8 * * *"

   

Every day at 8 AM (Cron expression)

      description

:

"Daily email digest"

After installing this skill, run /suggestions to see Hermes automatically propose creating the corresponding scheduled task:

Example

View pending automation suggestions

/

suggestions

Accept the suggestion, create a Cron task

/

suggestions accept

1

Ignore the suggestion (no more repeated prompts)

/

suggestions dismiss

1

View official featured automation templates

/

suggestions catalog


External skill directories

If you maintain skills outside Hermes - for example a ~/.agents/skills/ directory shared by multiple AI tools - you can have Hermes scan these directories too.

Example

File path: ~/.hermes/config.yaml

Configure external skill directories

skills

:

  external_dirs

:

   - ~/.agents/skills

    - /home/shared/team-skills

    - $

{

SKILLS_REPO

}

/skills

Paths support ~ expansion and ${VAR} environment variable substitution.

Important rules:


Common Command Quick Reference

Example

─── Find Skills ───────────────────────────────────────────────

hermes skills list                    

List all skills

hermes skills search

<

Keyword

         

Search local and Hub skills

hermes skills browse                  

Browse official optional skills

─── Install Skills ───────────────────────────────────────────────

hermes skills

install

official

/<

Category

/<

Name

   

Install official optional skills

hermes skills

install

https:

//

...SKILL.md      

Install from URL

hermes skills tap add github.com

/

user

/

repo      

Add a GitHub skill source

─── Skill Info ───────────────────────────────────────────────

hermes skills inspect

<

id

           

Preview (check before installing)

hermes skills check                  

Check for updates

hermes skills config                  

Per-platform enable/disable configuration (TUI)

─── Updates and Maintenance ─────────────────────────────────────────────

hermes skills update                  

Update all skills

hermes skills update

<

name

         

Update a specific skill

hermes skills reset

<

name

           

Reset to initial state

hermes skills reset

<

name

--restore

hermes skills uninstall

<

name

       

Uninstall Hub skills

─── Publish ────────────────────────────────────────────────────

hermes skills publish

<

path

         

Publish to the registry

─── Skill Bundles ──────────────────────────────────────────────────

hermes bundles create

<

name

--skill

<

s1

--skill

<

s2

-d

"Description"

hermes bundles list

hermes bundles delete

<

name

/

skills

/

skills search

<

Keyword

/

skills browse                        

Browse optional skills

/

skills

install

<

id

/<

skill-name

[

Task description

]

             

Use a skill directly

/

learn

<

Source description or URL

             

Generate a skill from a source

/

suggestions                          

View the Agent's automation suggestions # View the Agent's automation suggestions


Create a custom skill

Skills are stored in the ~/.hermes/skills/ directory. Each skill is a directory containing skill.md :



~/.hermes/skills/

└── my-custom-skill/

    └── skill.md

Skill format



---

name: my-custom-skill

description: 一个有用的技能描述

version: 1.0.0

author: your-username

tags: [utility, example]

---



# Skill instructions



您是一个专业的[角色],擅长[领域]...



## Core Capabilities



1. 能力 A

2. 能力 B

3. 能力 C



## Usage Example



### 示例 1

[描述]



### 示例 2

[描述]

Skill metadata

Field Description Required
name Skill name (unique identifier) Is
description Skill description Is
version Semantic version No
author Skill author No
tags Array of category tags No

Skill command reference

Command Description
hermes skills list List all installed skills
hermes skills search Search available skills
hermes skills install Install a skill
hermes skills uninstall Uninstall a skill
hermes skills create Create a new skill
hermes skills update Update a skill