curl --request POST \
--url http://localhost:3001/api/v1/skills \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"name": "<string>",
"description": "<string>",
"content": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"archiveUrl": "<string>"
}
'import requests
url = "http://localhost:3001/api/v1/skills"
payload = {
"name": "<string>",
"description": "<string>",
"content": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"archiveUrl": "<string>"
}
headers = {
"cookie": "nut-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'nut-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
content: '<string>',
license: '<string>',
compatibility: '<string>',
allowedTools: '<string>',
metadata: {},
archiveUrl: '<string>'
})
};
fetch('http://localhost:3001/api/v1/skills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3001",
CURLOPT_URL => "http://localhost:3001/api/v1/skills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'content' => '<string>',
'license' => '<string>',
'compatibility' => '<string>',
'allowedTools' => '<string>',
'metadata' => [
],
'archiveUrl' => '<string>'
]),
CURLOPT_COOKIE => "nut-session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3001/api/v1/skills"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "nut-session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3001/api/v1/skills")
.header("cookie", "nut-session=")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3001/api/v1/skills")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["cookie"] = 'nut-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"document": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"content": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}Create skill
Create a new skill. The skill is stored as
.nut/skills/<id>/SKILL.md with YAML frontmatter following the
Agent Skills specification. Optionally supply archiveUrl to
download and extract a zip archive from a trusted registry host.
curl --request POST \
--url http://localhost:3001/api/v1/skills \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"name": "<string>",
"description": "<string>",
"content": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"archiveUrl": "<string>"
}
'import requests
url = "http://localhost:3001/api/v1/skills"
payload = {
"name": "<string>",
"description": "<string>",
"content": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"archiveUrl": "<string>"
}
headers = {
"cookie": "nut-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'nut-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
content: '<string>',
license: '<string>',
compatibility: '<string>',
allowedTools: '<string>',
metadata: {},
archiveUrl: '<string>'
})
};
fetch('http://localhost:3001/api/v1/skills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3001",
CURLOPT_URL => "http://localhost:3001/api/v1/skills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'content' => '<string>',
'license' => '<string>',
'compatibility' => '<string>',
'allowedTools' => '<string>',
'metadata' => [
],
'archiveUrl' => '<string>'
]),
CURLOPT_COOKIE => "nut-session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3001/api/v1/skills"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "nut-session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3001/api/v1/skills")
.header("cookie", "nut-session=")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3001/api/v1/skills")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["cookie"] = 'nut-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"license\": \"<string>\",\n \"compatibility\": \"<string>\",\n \"allowedTools\": \"<string>\",\n \"metadata\": {},\n \"archiveUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"document": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"license": "<string>",
"compatibility": "<string>",
"allowedTools": "<string>",
"metadata": {},
"content": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Session cookie authentication
Body
Skill name (kebab-case, 1-64 chars, lowercase letters, numbers, and hyphens only). Must match the directory name.
64^[a-z0-9]([a-z0-9-]*[a-z0-9])?$Short description of the skill (max 1024 chars)
1024Skill instructions in Markdown (body of SKILL.md)
License identifier (e.g. MIT, Apache-2.0)
Compatibility requirements (e.g. "Requires git, node >= 18")
Space-delimited list of pre-approved tool names
Arbitrary key-value metadata map. Coconut-specific keys
include color, mcpServers, focusAreas, contextPreferences.
URL of a zip archive to download and extract into the skill directory. Must be hosted on a trusted registry domain.