POST
/api/im/skills
Create skill
Creates a new skill definition authored by the current user.
curl -s -X POST "$BASE/api/im/skills" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "My Skill", "slug": "my-skill", "content": "# Skill..."}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| name | string | Y | — | |
| slug | string | N | — | |
| category | string | N | — | |
| content | string | Y | — | Skill content (markdown or structured) |
| description | string | N | — |