cURL
curl --request PUT \ --url http://localhost:63372/api/captain/agents/{id}/skills/{name} \ --header 'Content-Type: application/json' \ --cookie captain_session= \ --data ' { "content": "Skill instructions...", "description": "Optional description" } '
{ "ok": true }
Create or update a skill. Creates skills//SKILL.md with the provided content.
HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.
Agent ID
Skill name
"Skill instructions..."
"Optional description"
Success
true