hermes-agent-skill-authoring – skill Agent & Tự động hóa cho agent AI
Viết tệp SKILL.md trong repo: frontmatter và cấu trúc.
Cài skill hermes-agent-skill-authoring bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/hermes-agent-skill-authoring-7aab3.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /hermes-agent-skill-authoring – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/hermes-agent-skill-authoring-7aab3.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $hermes-agent-skill-authoring – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/hermes-agent-skill-authoring-7aab3.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /hermes-agent-skill-authoring – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/hermes-agent-skill-authoring-7aab3.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /hermes-agent-skill-authoring – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Authoring Hermes-Agent Skills (in-repo)
Overview
There are two places a SKILL.md can live:
1. User-local: ~/.hermes/skills/<maybe-category>/<name>/SKILL.md — personal, not shared. Created via skill_manage(action='create').
2. In-repo (this skill is about this case): skills/<category>/<name>/SKILL.md or optional-skills/<category>/<name>/SKILL.md inside the hermes-agent repo — committed, shipped with the package. Use write_file + git add. skill_manage(action='create') does NOT target this tree.
In-repo skills must meet the repo's hardline authoring standards (see AGENTS.md, "Skill authoring standards (HARDLINE)" — that section is the source of truth; this skill is the operational walkthrough). Reviewers reject PRs that violate them, so meeting them up front is cheaper than a salvage pass later.
When to Use
- User asks you to add a skill "in this branch / repo / commit"
- You're committing a reusable workflow that should ship with hermes-agent
- You're editing an existing skill under
skills/oroptional-skills/(usepatchfor small edits,write_filefor rewrites;skill_managestill works for patch on in-repo skills, but not forcreate) - Don't use for: personal skills in
~/.hermes/skills/(just useskill_manage)
Decide the Tier First: Bundled vs Optional
- Bundled (
skills/<category>/) — daily-driver behavior, broadly useful across many user types, low footprint. Hard bar: you can say "a user will load this in 5+ sessions per month" with a straight face. - Optional (
optional-skills/<category>/) — niche, vertical-specific (blockchain, gaming, finance, one app), recurring-job/task skills, or anything heavy. Installed viahermes skills install official/<category>/<skill>.
When in doubt, optional. Promoting later is easy; demoting is churn. "Would be useful to anyone who ever needs this" is an optional-tier argument, not a bundled one.
Pick the category by what the tool IS, not what it feels like (an AI-agent CLI goes in autonomous-ai-agents/ even if it "feels productivity"). Confirm existing categories with search_files(pattern='*', target='files', path='skills') and don't invent new top-level categories casually.
No router / index / hub skills. A skill whose core content is a routing table pointing at sibling skills adds an indirection hop and duplicates the siblings' own When to Use triggers. If the skill would be empty without "load skill X instead" pointers, don't write it — the catalog and each sibling's triggers already do that job.
Required Frontmatter
Validator source of truth: tools/skill_manager_tool.py::_validate_frontmatter. Validator hard requirements:
- Starts with
---as the first bytes (no leading blank line). - Closes with
\n---\nbefore the body. - Parses as a YAML mapping.
namefield present.descriptionfield present (validator ceiling 1024 chars — but see the repo hardline below, which is much stricter).- Non-empty body after the closing
---.
Repo-standard shape (all fields expected, even where the validator doesn't enforce them):
---
name: my-skill-name # lowercase, hyphens, ≤64 chars (MAX_NAME_LENGTH)
description: Concise capability statement, under sixty chars.
version: 0.1.0 # semver; new skills start at 0.1.0
author: Real Name (github-handle), Hermes Agent
license: MIT
platforms: [linux, macos, windows] # audit, don't guess — see Platform Gating
metadata:
hermes:
tags: [Short, Descriptive, Tags]
related_skills: [other-in-repo-skill]
---description rules (HARDLINE — the validator's 1024 is NOT the standard)
- ≤ 60 characters. One sentence. Ends with a period.
- State the capability, not the implementation, and don't repeat the skill name or its category name (the index prints the category above the skill).
- No marketing words ("powerful", "comprehensive", "seamless", "advanced").
- 60 is the width the system prompt skill index shows;
skill_managerejects a new or changed description over it, and the index clips a longer legacy one at a word boundary. - If the description contains a
:, wrap it in double quotes or YAML parses it as a mapping and the docs generator crashes. Quotes don't count toward the 60.
Good: Track named companies for material news with cited digests.
Bad: Use when a user asks to monitor named competitors or companies for product launches, pricing changes, funding, ... (240 chars — rejected in review)
author rules
- Credit the human first, then "Hermes Agent" as secondary collaborator:
Ben Barclay (benbarclay), Hermes Agent. - Never
author: Hermes Agentalone for contributed skills — credit the human, not the tool, even (especially) when an agent drafted the text. - Maintainer-authored skills:
Teknium (teknium1), Hermes Agent.
related_skills rules
- Every entry must resolve to an existing in-repo skill in the same tree state as your PR. Do not reference skills that were only planned, live in another PR, or exist only in
~/.hermes/skills/. - Verify each entry:
search_files(pattern='<name>', target='files', path='skills')(andoptional-skills/).
Platform Gating: audit, don't trust
platforms: gates loading by host OS. Set it from what the skill's prose and scripts actually invoke:
| Skill uses only… | platforms: |
|---|---|
| Hermes tools + stdlib Python + cross-platform CLIs | [linux, macos, windows] |
| bash pipelines, grep/awk/sed chains, heredocs | [linux, macos] |
| osascript, defaults, pmset | [macos] |
| apt/systemctl//proc | [linux] |
<!-- no-tmp: ok — names the anti-pattern skill authors must avoid -->
POSIX-only signals to search for in scripts/: fcntl, termios, pty, os.fork, os.killpg, signal.SIGKILL, os.kill(pid, 0) liveness checks, hardcoded /tmp /proc /etc. Default posture: fix cross-platform first (tempfile.gettempdir(), pathlib.Path, psutil.pid_exists); gate narrower only when the dependency is genuinely platform-bound, and say why in ## Pitfalls.
Size Limits
- Full SKILL.md: ≤ 100,000 chars enforced (
MAX_SKILL_CONTENT_CHARS), but target ~100 lines for a simple skill, ~200 for a complex one. Peer skills sit at 8-14k chars. - Bulky or branch-specific material goes in
references/*.md,templates/, orscripts/— pointed to from SKILL.md, not inlined. - Don't expect the model to inline-write parsers or non-trivial logic every call — ship a helper script in
scripts/and reference it by path.
Body Structure (modern section order)
# <Skill> Skill
2-3 sentence intro: what it does, what it doesn't do, dependency stance.
## When to Use — bulleted triggers (+ "Don't use for:" counter-triggers)
## Prerequisites — exact env vars, installs, API key sourcing
## How to Run — canonical invocation through the `terminal` tool
## Quick Reference — flat command list, no narration
## Procedure — numbered steps, each with a checkable completion criterion
## Pitfalls — known limits, things that look broken but aren't
## Verification — how to prove the skill workedNot every section applies to every skill (a pure-procedure task skill may have no Quick Reference), but When to Use + actionable body + Pitfalls + Verification are the minimum. Cut marketing intros, "Setup Check" no-ops, and re-explanations of env vars already in Prerequisites.
Reference Hermes tools, not raw shell
When the skill needs a capability, name the proper Hermes tool in backticks: terminal, read_file, write_file, patch, search_files, web_search, web_extract, browser_exec, vision_analyze, delegate_task, cronjob. Do NOT name shell utilities the agent already has wrapped (grep → search_files, cat → read_file, sed/awk → patch, find/ls → search_files target='files'). A CLI-wrapper skill should frame invocations as terminal(command="{tool} ...", timeout=...) — bare shell prose ("run foo --version") is a review-blocking non-conformance. If the skill depends on an MCP server, name it and document setup in Prerequisites.
Never use machine-local paths
Write repo-relative paths (skills/..., tools/skill_manager_tool.py). A /home/<you>/... path baked into a committed skill breaks for every other user and is an instant review flag.
Writing Quality Principles
A skill exists to make the agent's process more predictable — the agent reliably follows the same useful discipline.
1. Optimize for process predictability. If a line does not change behavior, cut it.
2. Choose the right context load. The description is paid for every turn; details go in the body or linked references.
3. End steps with completion criteria. Checkable and, when it matters, exhaustive: "every modified file accounted for" beats "summarize changes."
4. Co-locate rules with the concept they govern.
5. **Use stro
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- cross-eval – /c-level-agents:cross-eval [memo] — Đồng thuận đa mô hình cho memo hội đồng quản trị…
- honcho – Cấu hình và khắc phục sự cố bộ nhớ Honcho cho Hermes.
- decide – /c-level-agents:decide [memo] — Ghi nhận quyết định vào bộ nhớ hai lớp qua…
- kanban-video-orchestrator – Lên kế hoạch và điều phối các quy trình sản xuất video đa tác tử.
- parallel-feature-development – Điều phối phát triển tính năng song song với chiến lược sở hữu tệp, quy tắc tránh xung…
- engineering-advanced-skills – Danh mục 37 kỹ năng engineering nâng cao cho agent của Claude Code, Codex, Gemini CLI…
- bamboohr-automation – Tự động hóa tác vụ BambooHR qua Rube MCP (Composio): nhân viên, nghỉ phép, phúc lợi…
- basecamp-automation – Tự động hóa quản lý dự án Basecamp, to-do, tin nhắn, người dùng và tổ chức danh sách…