
Hive.writing Hive Skills
Author a new Agent Skill for a Hive agent that conforms to the Agent Skills...
Install
npx skills add aden-hive/hive --skill hive.writing-hive-skills -g -a claude-code -y- Repository
- aden-hive/hive11.1k
- Category
- AI and agents
- Updated
- 9d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 2,306 tokens
- Runs scripts
- No, instructions only
What it does
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, or package a new skill for a Hive agent.
Operational Protocol: Writing Hive Skills
Hive agents discover skills by scanning several roots, in precedence order:
<project>/.hive/skills/, project, Hive-specific<project>/.agents/skills/, project, cross-client~/.hive/skills/, user, Hive-specific~/.agents/skills/, user, cross-client- Framework defaults shipped in
core/framework/skills/_default_skills/
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.
Choosing where to put a new skill
- Colony-scoped (via
write_skillinside colony mode): when the skill is the operational protocol a single colony needs, its API auth, DOM selectors, DB schema, task-queue conventions, do NOT place it under~/.hive/skills/or<project>/.hive/skills/yourself. Those roots are SHARED and every colony on the machine will see it. Instead, once you're inside the colony (post-fork), callwrite_skill(skill_name, skill_description, skill_body, skill_files?)and the skill is materialized under~/.hive/colonies/<colony_name>/skills/<skill-name>/where only that colony's workers discover it. See the subsection below. - Project-scoped: put under
<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. - User-scoped: put under
~/.hive/skills/when the skill is reusable across projects for this machine/user and all agents should see 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.

