Skill documents for Agent8 AI.
Important: You must run the following command after cloning. Without this, the pre-commit validation will not work.
git config core.hooksPath .githooksskills/
<skill-name>.md
.githooks/
pre-commit
All skill documents are placed in the skills/ directory. Only .md files are allowed.
- Extension:
.md - Length: 1-64 characters (excluding
.md) - Format: lowercase alphanumeric with single hyphen separators
- Regex:
^[a-z0-9]+(-[a-z0-9]+)*$
Valid examples: gameserver-sdk-v2.md, environment-terrain.md
Invalid examples: My_Skill.md, --double-hyphen.md, UPPER.md
Each skill document must start with YAML frontmatter. Only these fields are recognized:
| Field | Required | Constraints |
|---|---|---|
name |
Yes | Must match the filename (without .md), 1-64 characters |
description |
Yes | 1-1024 characters, supports multi-line YAML values |
license |
No | |
compatibility |
No | |
metadata |
No | String-to-string map |
Unknown frontmatter fields are ignored.
Single-line example:
---
name: my-skill
description: A short description of what this skill does.
---Multi-line example (must use block scalar |):
---
name: my-skill
description: |
Core document on managing something in a project.
This document covers:
- Feature A
- Feature B
[Important] You must install the package using `bun add my-package` before you can use it.
---Note: Multi-line descriptions without block scalar syntax (
|) are not valid YAML and will be rejected by the pre-commit hook. After writing or editing a skill document, verify that the frontmatter renders correctly on GitHub.
The name field must exactly match the filename. For example, my-skill.md must have name: my-skill.
The content after the frontmatter closing --- is the skill body. Use the ## Instructions section to guide the AI on how to use the skill.
Common patterns (see vibe-starter-3d-character.md for a full example):
-
Instruct to install a package — Tell the AI to install the required package before use.
1. Ensure the package is installed. If not, run: `bun add vibe-starter-3d`
-
Instruct to read documentation from the package — Point the AI to a docs file inside
node_modules/so it can follow the detailed instructions.2. Read the documentation file at `node_modules/vibe-starter-3d/docs/read_vibe_starter_3d_character.md` and follow its instructions.
A pre-commit hook validates all staged skill documents before each commit. It checks:
- Only
.mdfiles exist inskills/ - Filename format and length
- Frontmatter
namematches the filename - Frontmatter
descriptionis within 1-1024 characters - Multi-line
descriptionuses YAML block scalar syntax (|)