Skills System
Ghost uses a Skills.md format inspired by OpenClaw for defining reusable agent capabilities.
What Is a Skill?
Section titled “What Is a Skill?”A skill is a Markdown file with YAML frontmatter that teaches Ghost how to perform a specific task. Skills can:
- Define tool schemas that the agent can call
- Specify triggers (keywords, patterns) for automatic activation
- Include instructions, examples, and constraints
- Reference MCP servers for external tool access
SKILL.md Format
Section titled “SKILL.md Format”---name: file-organizerversion: 1.0.0description: Organizes files by type, date, or projecttriggers: - organize files - sort files - clean up foldertools: - name: move_file description: Move a file to a new location parameters: source: { type: string, description: "Source file path" } destination: { type: string, description: "Destination path" } - name: create_folder description: Create a new folder parameters: path: { type: string, description: "Folder path to create" }safety: moderate---
# File Organizer
You are a file organization assistant. When the user asks toorganize files, follow these steps:
1. List the files in the target directory2. Classify each file by type (documents, images, code, etc.)3. Propose an organization plan4. Ask for confirmation before moving files5. Execute the moves and report results
## Rules- Never delete files — only move them- Always ask before moving to a different drive- Preserve original filenamesSkill Registry
Section titled “Skill Registry”Ghost maintains a SkillRegistry that:
- Scans for
.skill.mdfiles in configured directories - Parses YAML frontmatter for metadata and tool schemas
- Indexes triggers for fast matching
- Registers tools with the agent engine
Trigger Matching
Section titled “Trigger Matching”When a user message arrives, the skill registry checks:
- Exact trigger match: “organize files” → file-organizer skill
- Partial match: “can you organize my files?” → fuzzy matching
- Skill name: “@file-organizer” → direct invocation
Built-in Skills vs. Custom
Section titled “Built-in Skills vs. Custom”Ghost ships with essential built-in skills. Users can create custom skills by placing .skill.md files in their skill directory.
Future: Skills Marketplace
Section titled “Future: Skills Marketplace”Phase 3 includes a Skills Marketplace for:
- Community-contributed skills
- Verified/audited skills
- Monetization for skill authors
- One-click install from Ghost UI