Agent工坊

【Agent工坊】一条命令激活全套AI工作流:Hermes Agent Skill Bundles 实战配置指南

Hermes Agent v0.15 最被低估的功能——用 YAML 文件把多个 Skill 打包成一条斜杠命令,一键切换写作模式、开发模式、运营模式。


为什么你需要 Skill Bundles

如果你经常在 Hermes Agent 里做不同场景的工作——比如早上写公众号文章、下午写代码、晚上做竞品分析——你大概率经历过这样的流程:

/writing-style
/humanizer
/ideation
/obsidian
... 逐条输入,切场景时要重新加载

每次切换上下文,你都要手动激活 3-5 个 Skill。这些 Skill 分散在 19,932 个可选条目的 Skills Hub 里,光是记住哪几个组合最合适就很头疼。更糟的是,如果每个 Skill 的加载都需要一次独立的 API 调用,你的 Token 开销会成倍增长。

Skill Bundles 解决的就是这个问题。 它让你把一组相关的 Skill 打包成一个 YAML 文件,然后用一条斜杠命令全部激活。就像给 AI 配了"场景模式",一键切换。

Hermes Agent v0.15.0(2026年5月28日发布,代号 Velocity Release)正式推出了这个功能。虽然发布公告重点提了 Kanban 多Agent 平台和 76% 代码重构,但社区公认 Skill Bundles 是最实用的日常功能


Skill Bundle 的核心机制

它是怎么工作的

一个 Bundle 是一个 YAML 文件,放在 ~/.hermes/skill-bundles/ 目录下,包含四个核心字段:

字段 说明 示例
name 人类可读的名称 Writing Day
slash 触发的斜杠命令(以 / 开头) /writing-day
description 在命令列表里显示的描述 写作日全套技能组合
skills 要激活的 Skill 列表 [/humanizer, /ideation]
instruction 共享的系统级指令(可选) 你是一个专注的写作者...

当你输入 /writing-day 时,Hermes Agent 会一次性加载 bundle 里列出的所有 Skill。不是逐个调 API,而是一次性注入到当前会话的上下文里——这就省掉了多次 skill_view() 调用的时间。

官方的内置示例

Hermes Agent 自带的 Bundle 模板就是一个写作场景:

# ~/.hermes/skill-bundles/writing-day.yaml
name: Writing Day
slash: /writing-day
description: Complete writing toolkit — humanizer, ideation, obsidian capture, and YouTube content repurposing
skills:
  - /humanizer
  - /ideation
  - /obsidian
  - /youtube-content
instruction: >
  You are in writing day mode. Generate content that is natural,
  engaging, and optimized for a Chinese entrepreneurial audience.
  Prioritize actionable advice over theoretical discussion.

一条命令激活四个 Skill:文本人性化、创意发想、Obsidian 知识库对接、YouTube 内容改写。


实战:创建 AI 内容创业工作流

下面我们创建一个真实可用的 Bundle,专为 AI 内容创业者的日常工作流设计。这个 Bundle 涵盖了选题调研、竞品分析、内容创作三个环节。

Step 1:确认你需要的 Skill

先看看 Skills Hub 里有哪些可用的 Skill:

# 列出所有已安装的 Skill
hermes skills list

# 搜索与内容创作相关的 Skill
hermes skills search content
hermes skills search writing
hermes skills search competitor

v0.15.1 将 Skills Hub 从 858 个条目扩展到 19,932 个条目,所以搜索结果可能会很多。建议从这几个必装 Skill 开始:

Skill 用途 安装命令
humanizer 让 AI 文字更像人写的 内置
ideation 选题头脑风暴 内置
ai-neican-hotspot 热点监控与内容生成 hermes skills install ai-neican-hotspot
gpt-image-2-designer 配图/封面设计 hermes skills install gpt-image-2-designer
wechat-public-account-draft 公众号草稿提交 hermes skills install wechat-public-account-draft

Step 2:编写 Bundle 配置文件

~/.hermes/skill-bundles/ 下创建 content-factory.yaml

# ~/.hermes/skill-bundles/content-factory.yaml
name: Content Factory
slash: /content-factory
description: AI内容创业全流程——选题→调研→写作→配图→发布
skills:
  - /ai-neican-hotspot
  - /ideation
  - /humanizer
  - /gpt-image-2-designer
  - /wechat-public-account-draft
instruction: >
  You are running the Content Factory workflow for an AI entrepreneurship blog.
  Target readers: solo AI entrepreneurs who need practical tool tutorials,
  industry news, and monetization playbooks.

  Core pillars:
  1. AI Agent tool tutorials (Hermes, Claude Code, MCP)
  2. AI industry news analysis
  3. Solo-business monetization methods

  Writing rules:
  - 1500-2500 words for tutorials
  - Every claim must have a source URL
  - Include copyable code/config snippets
  - Produce at least 2 illustrations with Chinese data annotations
  - Submit to WeChat draft box when done

  Output quality standards:
  - Must have data (specific numbers, percentages, amounts)
  - Must have cases (real entrepreneurial stories)
  - Must have actionable steps (reader can apply immediately)
  - Must have unique perspective (not just news aggregation)

Step 3:测试你的 Bundle

# 在 Hermes 会话中输入
/content-factory

# 验证哪些 Skill 已激活
/skills

你会在已激活 Skill 列表里看到所有 5 个 Skill 都被标注为 active。现在你只需要说"写一篇关于 Claude Code MCP 接入的教程",Hermes Agent 就能在完整的工具链支持下工作了——从热点搜索到配图生成到草稿提交,全部自动化。


多场景 Bundle 模板集合

场景一:代码开发模式

# ~/.hermes/skill-bundles/dev-mode.yaml
name: Dev Mode
slash: /dev
description: 全栈开发模式——代码编写+调试+部署
skills:
  - /code-wiki
  - /openhands
  - /web-pentest
instruction: >
  You are in full-stack development mode.
  Use code-wiki (Karpathy's LLM-Wiki) for persistent dev knowledge.
  Delegate coding tasks to OpenHands CLI for complex implementations.
  Run security checks with web-pentest before deployment.

场景二:市场竞品分析

# ~/.hermes/skill-bundles/competitor-analysis.yaml
name: Competitor Analysis
slash: /comp-analysis
description: 竞品分析模式——数据采集+对比+报告生成
skills:
  - /web-research
  - /ideation
  - /humanizer
instruction: >
  You are in competitor analysis mode.
  Deep-research competing AI products using web-research.
  Generate structured comparison tables with pricing, features, user base.
  Output in Chinese with actionable strategic recommendations.

场景三:日常效率模式

# ~/.hermes/skill-bundles/daily-ops.yaml
name: Daily Ops
slash: /daily
description: 日常运营——邮件+日历+任务管理
skills:
  - /email-assistant
  - /calendar-planner
  - /task-manager
instruction: >
  You are in daily operations mode.
  Triage emails, plan calendar slots, prioritize tasks.
  Keep responses concise — this is an efficiency mode.

Skill Bundles 的高级技巧

1. 利用 instruction 做场景级 Prompt 注入

instruction 字段的威力在于它能给所有被激活的 Skill 注入一个共享的系统级指令。这意味着你不需要在每个 Skill 里重复写"面向中国 AI 创业者"——写在 Bundle 的 instruction 里就够了。

instruction: >
  All output must be in Chinese (Simplified).
  Target reader: Chinese solo AI entrepreneur, 25-40 years old.
  Tone: professional but conversational, like a senior peer mentoring a junior.
  Every claim needs a source. Every tutorial needs copyable code.

2. 嵌套复用:一个 Bundle 调用另一个 Bundle

你可以在一个 Bundle 的 skills 列表里引用另一个 Bundle 的斜杠命令:

skills:
  - /dev           # 这是另一个 Bundle!
  - /content-factory

当启动这个 Bundle 时,Hermes Agent 会递归解析所有引用的 Bundle,最终加载全部子 Skill。但要小心——递归太深可能导致上下文窗口溢出。

3. 条件加载:根据可用工具自动切换

如果你的 Bundle 里有些 Skill 依赖特定工具(比如需要浏览器或特定 API),可以用 Skill 自身的条件激活机制:

# 在 Skill 的 SKILL.md 里
fallback_for_toolsets: [web]
# 当 web toolset 不可用时,这个 Skill 才会出现

这样你的 Bundle 在不同环境(有浏览器 vs 纯终端)下会自动适配。

4. Skills Hub 增量安装策略

v0.15.1 的技能目录已经扩展到 19,932 个条目。不建议一口气全部安装——会严重拖慢 skills_list() 的速度。推荐策略:

# 只安装你需要的
hermes skills install humanizer ideation code-wiki

# 定期清理不再用的
hermes skills uninstall deprecated-skill-name

# 用搜索发现新的
hermes skills search "MCP server" --limit 10

避坑指南

陷阱 表现 解决方案
YAML 缩进错误 Bundle 加载失败,无报错 yamllint 检查;skills 列表项用 - 而不是 tab
Skill 名写错 提示 "skill not found" hermes skills list 确认精确名称
instruction 太长 Token 超预算,后续对话变短 instruction 控制在 300 字以内
递归嵌套死循环 两个 Bundle 互相引用 不要做 A→B→A 的环形引用
旧版 Hermes 不兼容 /bundle-name 无响应 升级到 v0.15.0+:pip install --upgrade hermes-agent

最隐蔽的坑是 YAML 多行字符串格式instruction 字段如果不用 >(折叠块标量),可能会把换行符当作文本的一部分,导致奇怪的格式问题。推荐写法:

instruction: >
  这是第一行。
  这是第二行。
  # > 会把多行折叠成一个段落,保留空格

与竞品对比:这套方案的优势

方案 Skill Bundles OpenClaw 工作流 手动切换
切换速度 1 条命令 1 条命令 5+ 条命令
上下文保持 完整保持 需要配置 逐条加载易丢失
可复用性 YAML 文件可分享 JSON 配置
学习成本 5 分钟 15 分钟 0(但效率低)
共享指令注入 ✅ instruction 字段 ❌ 需手动追加

Skill Bundles 的独特优势在于"场景模式"思维——你不是在"逐个加载工具",而是在"切换工作模式"。这个心智模型更符合人类的工作习惯。


立即行动

  1. 检查版本hermes version 确认 ≥ v0.15.0
  2. 创建第一个 Bundle:复制上面的 /content-factory 模板
  3. 测试激活:输入 /content-factory 看是否加载成功
  4. 定制你自己的:从 hermes skills list 里选出你最常用的 3-5 个 Skill,打包成一个 Bundle
  5. 分享给团队:YAML 文件就是标准的配置分享格式,放进 Git 仓库即可

如果你有 5 个以上的日常工作场景,花 15 分钟创建对应的 Bundle,每天至少能省下 10 分钟的手动 Skill 加载时间。按年算,这就是 40+ 小时的时间节约——相当于多出一整个工作周。


「Agent工坊」是 AI创业内参的固定栏目,每期带你上手一个 AI Agent 工具的最新功能。关注我们,不错过任何效率提升的机会。

Agent工坊 #HermesAgent #SkillBundles #AI创业 #一人公司 #效率工具