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 under web/content/skills/<skill-name>/:
文件PurposeAudience
SKILL.mdAI-readable instructions; the model reads this directly to perform the taskAI 模型
README.mdHuman-readable page shown on the websiteUsers
CHANGELOG.mdVersion changelogMaintainers

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
字段DescriptionRequired
display_nameDisplay name on the websiteYes
iconEmoji iconYes
categoryCategory: toolchain, analysis, control, simulation, etc.Yes
platformsSupported flight controllers, comma-separatedYes
modelsRecommended AI models, comma-separatedNo
tagsSearch tags, comma-separatedNo
clientsCompatible AI clientsNo
repo_urlOpen-source repo URLNo
seed_ratingInitial 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:
分类ScopeExample
toolchainToolchains, parsers, format convertersPX4 ULog 解析器
analysisData analysis, fault diagnosis振动频谱分析
controlFlight control, navigation, path planningPID 自整定
simulationSimulation scenarios, digital twins视觉伺服仿真
visionVisual perception, object detection航拍目标检测
missionMission planning, route design自然语言任务规划

Test your Skill

After writing SKILL.md, load it in a local AI client and run the example input. Verify:
  1. The example input produces the expected output
  2. Bad input is handled properly (no guessing, no fabrication)
  3. 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.

Next step

Once written, publish to the hub to share it with others.