Write a Skill
From use case and I/O to examples and safety boundaries — turning one successful attempt into a capability others can reproduce.
Define the task first
Write down the use case, inputs, outputs, and constraints. A good Skill should be reproducible without the author's private context.
Make the trigger specific: when this Skill applies, and — more telling — when it does not. Boundaries explain a capability better than its features do.
File structure
Every Skill has three core files underweb/content/skills/<skill-name>/:
| 文件 | Purpose | Audience |
|---|---|---|
SKILL.md | AI-readable instructions; the model reads this directly to perform the task | AI 模型 |
README.md | Human-readable page shown on the website | Users |
CHANGELOG.md | Version changelog | Maintainers |
SKILL.md format
SKILL.md uses YAML frontmatter for metadata; the body is what the AI actually reads:
---
name: my-skill-name
description: "一句话描述这个 Skill 解决什么问题。包含触发词帮助模型判断何时调用。"
metadata:
display_name: "用户看到的名称"
icon: "📊"
category: "toolchain"
platforms: "PX4"
models: "DeepSeek, GPT-4o-mini"
tags: "PX4, 日志分析, 振动"
clients: "Claude, Cursor"
repo_url: "https://github.com/example/my-skill"
---
# Skill 标题
## 何时使用
写清楚触发条件……
## 背景
为什么需要这个 Skill……
## 输入示例
```text
具体的输入格式
输出示例
{ "key": "value" }
注意事项
安全边界、限制条件……
Metadata fields
| 字段 | Description | Required |
|---|---|---|
display_name | Display name on the website | Yes |
icon | Emoji icon | Yes |
category | Category: toolchain, analysis, control, simulation, etc. | Yes |
platforms | Supported flight controllers, comma-separated | Yes |
models | Recommended AI models, comma-separated | No |
tags | Search tags, comma-separated | No |
clients | Compatible AI clients | No |
repo_url | Open-source repo URL | No |
seed_rating | Initial rating (4.0-5.0) | No |
Provide verifiable examples
Provide at least one real input and its expected output, and state how bad input is handled. For flight control, document the target platform and safety boundaries.
输入:某架四旋翼的一段悬停日志摘要
输出:振动指标超出建议阈值,建议检查电机 2 与桨叶动平衡
异常:日志缺少 IMU 数据时,明确返回"无法判定",不猜测数值
Category guide
Pick the right category so users can find your Skill faster:| 分类 | Scope | Example |
|---|---|---|
toolchain | Toolchains, parsers, format converters | PX4 ULog 解析器 |
analysis | Data analysis, fault diagnosis | 振动频谱分析 |
control | Flight control, navigation, path planning | PID 自整定 |
simulation | Simulation scenarios, digital twins | 视觉伺服仿真 |
vision | Visual perception, object detection | 航拍目标检测 |
mission | Mission planning, route design | 自然语言任务规划 |
Test your Skill
After writingSKILL.md, load it in a local AI client and run the example input. Verify:
- The example input produces the expected output
- Bad input is handled properly (no guessing, no fabrication)
- Edge cases return a clear result
Common pitfalls
- Prompt only, no I/O — the model re-guesses the format every run.
- Idealized examples — missing fields in real logs are where the work actually is.
- Omitted safety boundaries — when real aircraft are involved, read-only by default must be written down.
- Incomplete metadata — missing platforms or category means users can't find your Skill.
What must not go into a Skill
Keys, accounts, real GPS tracks, or operational data. Replace any coordinate in an example with a placeholder.