hive.writing-hive-skills
できること
このスキルは、Hiveエージェント用の新しいスキルを作る方法と、それをどこに保存すべきかを説明します。繰り返す手順を、再利用できるスキルにしたい人向けです。
使う場面
- ✓繰り返す手順を、Hiveエージェント用の再利用可能なスキルにしたいとき。
- ✓エージェントのライブラリやプロジェクトに、新しいスキルを追加する必要があるとき。
- ✓スクリプトや参考ファイルと一緒にスキルをパッケージ化したいとき。
スキルのリンク
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/writing-hive-skills/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の週次レポートの手順を、Hiveエージェント用の再利用できるスキルにしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、先頭に名前と説明を付けたSKILL.mdファイルを書き、write_skillツールで追加します。スコープの設定によって、そのスキルを誰が見られるかが決まります。たとえば、一人のクイーン、コロニー、または共有ライブラリです。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Operational Protocol: Writing Hive Skills
Hive agents discover skills by scanning several roots, in precedence order (later wins):
- Framework defaults shipped in
core/framework/skills/_default_skills/ ~/.agents/skills/— user, cross-client$HIVE_HOME/skills/— the shared library every queen and colony reads$HIVE_HOME/queens/<queen_id>/skills/— one queen's own skills (her colonies read them too)$HIVE_HOME/colonies/<colony_name>/skills/— one colony's skills<project>/.agents/skills/, then<project>/.hive/skills/— project
Each skill is a directory containing a SKILL.md. At startup, only the frontmatter name + description of every skill is loaded; the body is loaded only when the agent activates the skill. Design for that.
Adding a skill as a queen: write_skill
Always add a skill with write_skill. Never write a SKILL.md into a skills folder with the terminal or write_file: a skill put there by hand isn't in any running catalog until a new session, and one put in the shared library skips the user's approval. write_skill takes the content inline or copies an existing skill folder (source_path, e.g. one you git cloned into your workspace), and its scope decides who sees it:
scope |
Lands in | Who sees it |
|---|---|---|
queen (default outside a colony) |
your own skills | you from your next turn, and your colonies' workers |
colony (default inside a colony) |
this colony's skills | this colony's workers spawned from now on |
global |
the shared library, after the user approves | every queen and colony |
- Your own (
scope="queen"): a protocol, an API you use, a style you keep. You can replace a skill you wrote, but not one the user made in your skills. - One colony (
scope="colony"): the operational protocol a single colony needs — its API auth, DOM selectors, DB schema, task-queue conventions. Write it once before fanning out workers and name it in each task string. Keeping it in the colony means no other colony sees it at selection time. - Everyone (
scope="global"): only when the skill is genuinely useful to every queen. Nothing is installed when you call it: the user is asked in this session's chat in the Hive dashboard, and a message tells you when they approve or decline. You don't wait for it; carry on. If you're talking with them in a chat app, tell them it's waiting in the dashboard.
write_skill(
skill_name="honeycomb-api-protocol",
skill_description="How to query the HoneyComb staging API…",
skill_body="## Operational Protocol\n\nAuth: …",
skill_files=[{"path": "scripts/fetch_tickers.py", "content": "…"}], # optional
scope="colony",
)
Other places skills come from
- Project-scoped:
<project>/.hive/skills/when the skill is tied to that codebase's APIs, conventions, or infra and multiple agents in the project should share it. - Framework default: add under
core/framework/skills/_default_skills/AND register inframework/skills/defaults.py::SKILL_REGISTRYonly when the skill is a universal operational protocol shipped with Hive. Default skills use thehive.<name>naming convention and includetype: default-skillin metadata.
Directory layout
<skill-name>/
├── SKILL.md # Required
├── scripts/ # Optional — executable helpers
├── references/ # Optional — on-demand docs
└── assets/ # Optional — templates, data, images
Rules:
- The directory name must equal the
namefrontmatter field (for framework defaults, the directory is the unprefixed name, e.g.writing-hive-skills/forhive.writing-hive-skills). - Keep
SKILL.mdunder ~500 lines. Move long reference material intoreferences/. - Reference other files with relative paths from the skill root (
scripts/foo.py,references/API.md). Keep references one level deep.
SKILL.md frontmatter
Required fields:
| Field | Constraints |
|---|---|
name |
1–64 chars, [a-z0-9-], no leading/trailing/consecutive hyphens. Must match the directory name. Framework defaults prefix with hive. |
description |
1–1024 chars. Must describe what the skill does and when to use it. Include trigger keywords the user is likely to say. |
Optional fields:
| Field | Notes |
|---|---|
license |
License name or reference to a bundled file |
compatibility |
≤500 chars. Only include if env requirements are non-trivial (networ |
よくある質問
スキルはどこに保存されますか?
選んだスコープによって、クイーン自身のスキル、コロニーのフォルダ、共有ライブラリ、またはプロジェクトのフォルダに保存されます。
スキルのファイルを手で保存してはいけないのですか?
手で保存したスキルは、新しいセッションまで実行中のカタログに入らず、共有ライブラリで使われるユーザー承認も受けないためです。
スキルのフォルダには何が必要ですか?
SKILL.mdファイルが必要です。scripts、references、assetsのフォルダは任意です。
詳細
作者による元の説明
Author a new Agent Skill for a Hive agent that conforms to the Agent Skills specification (SKILL.md with YAML frontmatter, optional scripts/references/assets directories). Use when the user asks to create, scaffold, add, install, or package a new skill for a Hive agent, or you want to keep a procedure as a skill.
repo: aden-hive/hive
人気
- GitHubのスター
- 11k
- ランキング
- #11809
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
browser-edge-cases
11kエージェントが、LinkedIn、X、スクリプトの多いページなど、扱いの難しいサイトでブラウザ自動化が失敗する原因を直せるよう支援します。
hive.browser-automation
11kエージェントが、hive-browserツールを使い、スクリーンショットとクリックで、自分のChromeブラウザを操作できるよう支援します。
hive.colony-progress-tracker
11kエージェントが、タスクを確保し、その手順と確認を共有データベースに記録できるよう支援します。作業が進むにつれて追跡されます。
hive.context-preservation
11kエージェントが、長いツールの結果から重要な事実を、メモとして保存し、古い詳細がメモリから消される前に残せるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。