#关于skill的使用

1 messages · Page 1 of 1 (latest)

lunar furnace
#

我发现你们的开源项目中有skill这个部分,我想了解下:

1.如何使用这些skill,是把.md文件放在哪个本地文件夹下面?

2.关于图片中的comfyui-skill,如何使用他?有了这个skill就能自动生成comfyui节点和复杂工作流是吗?用hermes-agent+comfyui skill与我单纯使用大模型生成comfyui节点对比拥有什么优势?

3.在hermes-agent源代码中除了这个skill是我直接可以使用的,还有哪些是我拿来就能用的?以便更好的控制hermes-agent

woeful wingBOT
# lunar furnace 我发现你们的开源项目中有skill这个部分,我想了解下: 1.如何使用这些skill,是把.md文件放在哪个本地文件夹下面? 2.关于图片中的comfyui...

I found that your open source project has a skill section, and I would like to know more about it:

  1. How to use these skills? In which local folder should the .md file be placed?

  2. Regarding the comfyui-skill in the picture, how to use it? With this skill, can I automatically generate comfyui nodes and complex workflows? What are the advantages of using hermes-agent+comfyui skill compared to simply using a large model to generate comfyui nodes?

  3. In addition to this skill that I can use directly in the hermes-agent source code, what other skills can I use directly? In order to better control hermes-agent

hazy swift
#

可以的,我分开回答。

Hermes 的 skill 不是把一个单独的 .md 文件随便放进去就行,它需要是一个目录,目录里有 SKILL.md

默认 profile 的本地目录是:

~/.hermes/skills/<skill-name>/SKILL.md

也可以按分类放:

~/.hermes/skills/creative/comfyui/SKILL.md

如果你用的是 named profile,那么目录会在对应 profile 下面,例如:

~/.hermes/profiles/<profile-name>/skills/...

你可以先看当前已经安装/启用的 skill:

hermes skills list
hermes skills list --enabled-only

也可以用交互界面启用/禁用 skill:

hermes skills config

在 Hermes 里使用 skill 有几种方式。最直接的是在聊天里用 skill 的 slash command,例如:

/comfyui 帮我运行这个 ComfyUI workflow,并把 prompt 改成 ...

或者问 Hermes 自己怎么用 Hermes:

/hermes-agent skill 怎么安装、启用和调用?

这个 /hermes-agent 很适合问 Hermes 的配置、profile、provider、tools、skills、gateway、插件这些问题。它会让模型加载 Hermes Agent 自己的使用说明,少靠猜。

关于你截图里的 comfyui skill:它已经是内置 skill,路径在源码里是:

skills/creative/comfyui

但真正运行时通常会同步/安装到你的 Hermes skills 目录里。你可以用:

hermes skills list --enabled-only

确认它是否已经可用。

comfyui skill 不是“有了它就自动凭空生成所有复杂节点和完美 workflow”。它主要提供一套可靠流程和脚本,帮助 Hermes 做这些事:

检查你的机器适不适合本地跑 ComfyUI
安装/启动/停止 ComfyUI
管理 ComfyUI nodes 和 models
读取 ComfyUI 的 API-format workflow JSON
分析 workflow 里哪些参数可以改
把 prompt、seed、steps、width、height 等参数注入 workflow
调用 ComfyUI REST API 执行 workflow
等待结果并下载输出文件
检查 workflow 依赖的 custom nodes / models 是否存在

所以它的优势不是“比大模型更会幻想节点”,而是 Hermes 可以按这个 skill 里的流程实际操作你的本地 ComfyUI 或 Comfy Cloud。单纯让大模型生成 ComfyUI 节点,很多时候只是给你一段文本或 JSON;Hermes + comfyui skill 可以检查环境、读 workflow、运行脚本、提交到 ComfyUI、看报错、修参数,再把结果文件拿回来。

如果你已经有一个 ComfyUI workflow,最好从 ComfyUI 里导出 API Format 的 JSON,然后让 Hermes 用 /comfyui 帮你分析和运行。比如:

/comfyui 这个 workflow 可以改哪些参数?文件在 ~/Downloads/workflow_api.json

或者:

/comfyui 运行 ~/Downloads/workflow_api.json,把 prompt 改成 “cinematic cyberpunk city at night”,seed 用 123

至于还有哪些 skill 可以直接用,最可靠的是让本机 Hermes 自己列出来:

hermes skills list --enabled-only

如果想看所有可发现的官方/可安装 skill:

hermes skills browse --source official

常见内置 skill 包括代码开发、GitHub、Google Workspace、Notion、Obsidian、Spotify、YouTube、ComfyUI、Excalidraw、Pixel Art、论文写作、Arxiv、MCP、Home Assistant/OpenHue 等。你本机具体有哪些,还是以 hermes skills list 的输出为准。

以后遇到 Hermes 本身怎么配置、skill 放哪里、某个命令怎么用这种问题,可以直接在 Hermes 里问:

/hermes-agent 我想了解 skill 的安装目录、启用方式和 slash command 用法

这样 Hermes 会加载自己的 Hermes Agent skill 来回答,会比普通模型直接猜命令更可靠。

woeful wingBOT
# hazy swift 可以的,我分开回答。 Hermes 的 skill 不是把一个单独的 `.md` 文件随便放进去就行,它需要是一个目录,目录里有 `SKILL.md`。 默...

Okay, I'll answer them separately.

Hermes' skill does not just put a separate .md file into it, it needs to be a directory with SKILL.md in it.

The default profile's local directory is:

~/.hermes/skills/<skill-name>/SKILL.md

You can also put it by category:

~/.hermes/skills/creative/comfyui/SKILL.md

If you are using a named profile, the directory will be under the corresponding profile, for example:

~/.hermes/profiles/<profile-name>/skills/...

You can first look at the currently installed/enabled skills:

hermes skills list
hermes skills list --enabled-only

Skills can also be enabled/disabled using the interactive interface:

hermes skills config

There are several ways to use skills in Hermes. The most direct way is to use the skill's slash command in chat, for example:

/comfyui Help me run this ComfyUI and change prompt to workflow...

Or ask Hermes how to use Hermes yourself:

/hermes-agent skill How to install, enable and call it?

This /hermes-agent is very suitable for asking questions about Hermes configuration, profile, provider, tools, skills, gateway, and plug-ins. It will load the model with Hermes Agent's own instructions, taking less guesswork.

Regarding the comfyui skill in your screenshot: it is already a built-in skill, and the path in the source code is:

skills/creative/comfyui

But when it is actually run it will usually be synced/installed into your Hermes skills directory. You can use:

hermes skills list --enabled-only

Confirm if it is already available.

comfyui skill is not "it will automatically generate all complex nodes and perfect workflow out of thin air". It mainly provides a set of reliable processes and scripts to help Hermes do these things:

Check whether your machine is suitable for running ComfyUI locally
Install/start/stop ComfyUI
Manage ComfyUI nodes and models
Read ComfyUI's API-format workflow JSON
Analyze which parameters can be changed in the workflow
Inject parameters such as

#

prompt, seed, steps, width, and height into the workflow
Call ComfyUI REST API to execute workflow
Wait for the results and download the output file
Check whether the custom nodes/models that the workflow depends on exist

So its advantage is not that "it can fantasize nodes better than large models", but that Hermes can actually operate your local ComfyUI or Comfy Cloud according to the process in this skill. Simply letting a large model generate ComfyUI nodes will often just give you a piece of text or JSON; Hermes + comfyui skill can check the environment, read the workflow, run the script, submit it to ComfyUI, read the error report, modify the parameters, and then get the result file back.

If you already have a ComfyUI workflow, it is best to export the JSON of API Format from ComfyUI, and then let Hermes use /comfyui to help you analyze and run it. For example:

/comfyui What parameters can be changed in this workflow? The file is in ~/Downloads/workflow_api.json

Or:

/comfyui Run ~/Downloads/workflow_api.json, change prompt to "cinematic cyberpunk city at night", use seed 123

As for which skills can be used directly, the most reliable thing is to let the local Hermes list it yourself:

hermes skills list --enabled-only

If you want to see all discoverable official/installable skills:

hermes skills browse --source official

Common built-in skills include code development, GitHub, Google Workspace, Notion, Obsidian, Spotify, YouTube, ComfyUI, Excalidraw, Pixel Art, paper writing, Arxiv, MCP, Home Assistant/OpenHue, etc. For specific information on your machine, please refer to the output of hermes skills list.

In the future, if you encounter problems such as how to configure Hermes itself, where to put skills, or how to use a certain command, you can ask directly in Hermes:

/hermes-agent I want to know the installation directory, activation method and slash command usage of skill

In this way, Hermes will load its own Hermes Agent skill

#

to answer, which will be more reliable than ordinary models directly guessing commands.

hazy swift
#

如果后面你还有 skill、ComfyUI、/hermes-agent 或 Hermes 配置相关的问题,随时开新线程继续问就行。这个线程我先关掉了,谢谢!