Skill API
The Skill API defines how to build extensions that add new tools, integrations, and workflows to Aigentic agents. This reference covers skill creation using both SkillForge and manual methods.
SkillForge (AI-Powered Creation)
Section titled “SkillForge (AI-Powered Creation)”The fastest way to create a skill is through SkillForge, which generates complete skill packages from plain English:
- Open Skills from the sidebar and go to the Create tab.
- Describe what you want:
A skill that fetches the current weather for any cityusing the OpenWeatherMap API
- SkillForge generates the complete skill package.
- Review and install.
SkillForge handles tool definitions, parameter schemas, and implementation logic automatically.
SKILL.md Format
Section titled “SKILL.md Format”Skills are defined using a SKILL.md file with YAML frontmatter.
Basic Structure
Section titled “Basic Structure”---name: weather-lookupdescription: Fetches current weather data for any cityallowed-tools: - web_searchmetadata: author: your-username version: 1.0.0---
# Weather Lookup
This skill provides weather data for any city using the OpenWeatherMap API.
## Tools
### get_weatherFetches the current weather for a specified city.
**Parameters:**- `city` (string, required) — The city name- `units` (string, optional) — "metric" or "imperial", defaults to "metric"
**Returns:** Temperature, conditions, humidity, and wind speed.
## Usage
Use this skill when the user asks about current weather conditionsfor a specific location.Frontmatter Fields
Section titled “Frontmatter Fields”| Field | Required | Description |
|---|---|---|
name | Yes | Unique identifier (lowercase, hyphens allowed) |
description | Yes | Brief description shown in the UI |
allowed-tools | No | Built-in tools the skill requires |
metadata | No | Additional metadata |
metadata.author | No | Skill author |
metadata.version | No | Version string |
Tool Definitions
Section titled “Tool Definitions”Skills can define new tools using JSON Schema for input parameters:
{ "name": "search_github_repos", "displayName": "Search GitHub Repositories", "description": "Search GitHub repositories by query and language. Use when the user wants to find repositories.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query" }, "language": { "type": "string", "description": "Filter by programming language" }, "limit": { "type": "integer", "description": "Number of results (1-30)", "minimum": 1, "maximum": 30, "default": 10 } }, "required": ["query"] }}Writing Good Tool Descriptions
Section titled “Writing Good Tool Descriptions”The description field tells the AI model when and how to use the tool. A good description includes:
- What the tool does
- When to use it (trigger conditions)
- What it returns
Supported Input Types
Section titled “Supported Input Types”| JSON Schema Type | Description |
|---|---|
string | Text value |
integer | Whole number |
number | Decimal number |
boolean | True/false |
array | Ordered list |
object | Key-value map |
Credential Management
Section titled “Credential Management”Skills that access external services can declare required credentials:
---name: github-integrationdescription: GitHub repository managementmetadata: credentials: - key: GITHUB_TOKEN label: GitHub Personal Access Token description: Token with repo scope required: true---Credentials are stored in the encrypted vault and injected at runtime.
Installing Skills
Section titled “Installing Skills”Browse and install skills from the ClawHub catalog on the Skills page. After installing, an agent assignment dialog lets you select which agents should use the skill. You can also assign skills later from the agent’s profile dialog (Skills tab).
Complete Example
Section titled “Complete Example”Here is a complete skill that searches for news articles:
SKILL.md
Section titled “SKILL.md”---name: news-searchdescription: Search for recent news articles on any topicallowed-tools: - web_searchmetadata: author: example-user version: 1.0.0---
# News Search
Search for and summarize recent news articles on any topic.
## Tools
### search_newsSearches for recent news articles matching a query.
**Parameters:**- `topic` (string, required) — The news topic to search for- `count` (integer, optional) — Number of articles to return (default: 5)
**Returns:** List of articles with title, source, date, and summary.
## Usage
When a user asks about recent news, current events, or wants to knowwhat is happening with a particular topic, use the search_news toolto find relevant articles and summarize the results.Testing
Section titled “Testing”Install the skill, attach it to a test agent, and try:
User: What is the latest news about AI regulation in the EU?
Agent: [invokes search_news with topic="AI regulation EU"]
Here are the latest developments in EU AI regulation:
1. **EU AI Act Implementation Update** - ...2. **New Guidelines Released** - ......Publishing
Section titled “Publishing”Once your skill is tested:
- Ensure metadata is complete.
- Include clear usage instructions.
- Submit through the skills section.
Published skills are reviewed and appear in the skills directory.