hive.writing-hive-skills

Author Agent Skills for Hive agents conforming to the SKILL.md specification.

11.0k|5.7k|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/aden-hive/hive --skill hive-writing-hive-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hive.writing-hive-skills
Source: https://github.com/aden-hive/hive/tree/main/core/framework/skills/_default_skills/writing-hive-skills
Command: npx skills add https://github.com/aden-hive/hive --skill hive-writing-hive-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating a new Agent Skill for a Hive agent requires following a strict specification: a SKILL.md file with valid YAML frontmatter, correct directory naming, proper scoping across five discovery roots, and progressive-disclosure structure. This Skill encodes all of those rules so agents author compliant skills without trial and error.

Core Features & Use Cases

  • Specification Guidance: Defines the required SKILL.md frontmatter fields (name, description), naming constraints, and the optional scripts/, references/, and assets/ directory layout.
  • Scope Selection: Explains the five skill discovery roots and when to use colony-scoped (write_skill tool), project-scoped, user-scoped, or framework-default placement to avoid cross-colony leakage.
  • Authoring Best Practices: Provides rules for writing effective descriptions, structuring the body for agents, progressive disclosure tiers, and validation via the Hive CLI.
  • Use Case: A user asks their Hive agent to create a new skill for interacting with an internal API. The agent follows this protocol to pick the right scope, write a compliant SKILL.md with a trigger-rich description, add helper scripts, and validate it with hive skill validate.

Quick Start

Ask the agent to create a new Hive skill for your chosen API or workflow and have it scaffold and validate the SKILL.md following this protocol.

Frequently Asked Questions about hive.writing-hive-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new skill for a Hive agent?

Create a directory containing a SKILL.md file with YAML frontmatter defining a name and description, followed by the instruction body. Place it under the appropriate discovery root such as <project>/.hive/skills/ or ~/.hive/skills/, then validate with the Hive CLI.

What fields are required in SKILL.md frontmatter?

The frontmatter requires a name field (1-64 lowercase hyphenated characters matching the directory name) and a description field (1-1024 characters describing what the skill does and when to use it). Optional fields include license, compatibility, metadata, and allowed-tools.

Where should I place a skill so only one colony can use it?

Use the write_skill tool inside the colony after it has been forked, which materializes the skill under ~/.hive/colonies/<colony_name>/skills/. Placing it under ~/.hive/skills/ makes it visible to every colony on the machine.

How do I validate a Hive skill after writing it?

Run `uv run hive skill validate <path-to-skill-dir>` and `uv run hive skill doctor` from the Hive CLI, then confirm discovery with `uv run hive skill list`. Finally, test activation by invoking an agent on a matching task.

What should not be included in an Agent Skill?

Avoid generic programming knowledge the agent already has, conversation-specific state, and secrets or credentials since skills are stored as plaintext. Also avoid deeply nested reference chains; keep all referenced files one hop from SKILL.md.