Skip to content
Skillpedia
Agents11k Β· #11809

hive.writing-hive-skills

What it does

This skill explains how to create a new skill for a Hive agent and where it should be saved. It is for people who want to turn a repeated procedure into a reusable skill.

When to use it

  • βœ“When you want to turn a repeated procedure into a reusable skill for a Hive agent.
  • βœ“When you need a new skill added to an agent's library or project.
  • βœ“When you want a skill packaged with its scripts or reference files.

Skill link

https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/writing-hive-skills/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/writing-hive-skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to turn my weekly report steps into a reusable skill for my Hive agent.”

5 new skills a week. 1 minute to read.

How it works

The AI writes a SKILL.md file with a name and description at the top, then adds it with the write_skill tool. The scope setting decides who can see the skill, such as one queen, a colony or the shared library.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Operational Protocol: Writing Hive Skills

Hive agents discover skills by scanning several roots, in precedence order (later wins):

  1. Framework defaults shipped in core/framework/skills/_default_skills/
  2. ~/.agents/skills/ β€” user, cross-client
  3. $HIVE_HOME/skills/ β€” the shared library every queen and colony reads
  4. $HIVE_HOME/queens/<queen_id>/skills/ β€” one queen's own skills (her colonies read them too)
  5. $HIVE_HOME/colonies/<colony_name>/skills/ β€” one colony's skills
  6. <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 in framework/skills/defaults.py::SKILL_REGISTRY only when the skill is a universal operational protocol shipped with Hive. Default skills use the hive.<name> naming convention and include type: default-skill in 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 name frontmatter field (for framework defaults, the directory is the unprefixed name, e.g. writing-hive-skills/ for hive.writing-hive-skills).
  • Keep SKILL.md under ~500 lines. Move long reference material into references/.
  • 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
FAQ

Where do skills get saved?

They can go to a queen's own skills, a colony folder, the shared library or a project folder, depending on the scope chosen.

Why not save the skill file by hand?

A hand-saved skill is not in a running catalog until a new session, and it skips the user approval used for the shared library.

What must a skill folder contain?

It needs a SKILL.md file, with optional scripts, references and assets folders.

Details

Original description by the author

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

Popularity

GitHub stars
11k
Ranking position
#11809
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills