hive.writing-hive-skills
Fungsinya
Skill ini menjelaskan cara membuat skill baru untuk agent Hive dan di mana skill itu sebaiknya disimpan. Skill ini ditujukan untuk orang yang ingin mengubah prosedur yang berulang menjadi skill yang bisa dipakai ulang.
Kapan dipakai
- โSaat Anda ingin mengubah prosedur yang berulang menjadi skill yang bisa dipakai ulang untuk agent Hive.
- โSaat Anda perlu skill baru ditambahkan ke pustaka atau proyek agent.
- โSaat Anda ingin skill dikemas bersama skrip atau berkas referensinya.
Link skill
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/writing-hive-skills/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin mengubah langkah laporan mingguan saya menjadi skill yang bisa dipakai ulang untuk agent Hive saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menulis berkas SKILL.md dengan nama dan deskripsi di bagian atas, lalu menambahkannya dengan alat write_skill. Pengaturan cakupan menentukan siapa yang bisa melihat skill itu, misalnya satu queen, sebuah koloni, atau pustaka bersama.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 |
Pertanyaan umum
Di mana skill disimpan?
Skill bisa disimpan di skill milik queen, folder koloni, pustaka bersama, atau folder proyek, tergantung cakupan yang dipilih.
Mengapa tidak menyimpan berkas skill secara manual?
Skill yang disimpan manual tidak masuk ke katalog yang sedang berjalan sampai sesi baru, dan melewati persetujuan pengguna yang dipakai untuk pustaka bersama.
Apa yang harus ada dalam folder skill?
Harus ada berkas SKILL.md, dengan folder skrip, referensi dan aset yang bersifat opsional.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 11k
- Peringkat
- #11809
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
browser-edge-cases
11kMembantu agent Anda memperbaiki otomatisasi browser yang gagal di situs yang rumit, seperti LinkedIn, X atau halaman dengan skrip yang berat.
hive.browser-automation
11kMengajari agent Anda mengendalikan browser Chrome Anda sendiri dengan alat hive-browser, memakai tangkapan layar dan klik.
hive.colony-progress-tracker
11kMembantu agent Anda mengklaim tugas dan mencatat langkah serta pemeriksaannya di basis data bersama, sehingga pekerjaan terlacak saat berjalan.
hive.context-preservation
11kMembantu agent Anda menyimpan fakta penting dari hasil alat yang panjang ke dalam catatan sebelum detail lama dihapus dari memorinya.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.