Create a skill
curl --request POST \
--url https://asteragents.com/api/skills/manage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"skillMdContent": "---\nname: PDF Report Generator\ndescription: Generate formatted PDF reports from structured data\n---\n\n## Instructions\n\n1. Collect the data\n2. Run scripts/generate_report.py\n3. Return the PDF"
}
'import requests
url = "https://asteragents.com/api/skills/manage"
payload = { "skillMdContent": "---
name: PDF Report Generator
description: Generate formatted PDF reports from structured data
---
## Instructions
1. Collect the data
2. Run scripts/generate_report.py
3. Return the PDF" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
skillMdContent: '---\nname: PDF Report Generator\ndescription: Generate formatted PDF reports from structured data\n---\n\n## Instructions\n\n1. Collect the data\n2. Run scripts/generate_report.py\n3. Return the PDF'
})
};
fetch('https://asteragents.com/api/skills/manage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://asteragents.com/api/skills/manage",
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([
'skillMdContent' => '---
name: PDF Report Generator
description: Generate formatted PDF reports from structured data
---
## Instructions
1. Collect the data
2. Run scripts/generate_report.py
3. Return the PDF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://asteragents.com/api/skills/manage"
payload := strings.NewReader("{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("https://asteragents.com/api/skills/manage")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asteragents.com/api/skills/manage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"skill": {
"id": 123,
"name": "<string>",
"description": "<string>",
"fileCount": 123
}
}{
"error": "Internal Server Error"
}Skills API
Create a skill
Create a new skill by providing SKILL.md content.
The name and description are automatically parsed from the SKILL.md YAML frontmatter.
Required frontmatter fields:
name— the skill name
Optional frontmatter fields:
description— what the skill does- Any additional fields are stored as
metadata
POST
/
skills
/
manage
Create a skill
curl --request POST \
--url https://asteragents.com/api/skills/manage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"skillMdContent": "---\nname: PDF Report Generator\ndescription: Generate formatted PDF reports from structured data\n---\n\n## Instructions\n\n1. Collect the data\n2. Run scripts/generate_report.py\n3. Return the PDF"
}
'import requests
url = "https://asteragents.com/api/skills/manage"
payload = { "skillMdContent": "---
name: PDF Report Generator
description: Generate formatted PDF reports from structured data
---
## Instructions
1. Collect the data
2. Run scripts/generate_report.py
3. Return the PDF" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
skillMdContent: '---\nname: PDF Report Generator\ndescription: Generate formatted PDF reports from structured data\n---\n\n## Instructions\n\n1. Collect the data\n2. Run scripts/generate_report.py\n3. Return the PDF'
})
};
fetch('https://asteragents.com/api/skills/manage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://asteragents.com/api/skills/manage",
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([
'skillMdContent' => '---
name: PDF Report Generator
description: Generate formatted PDF reports from structured data
---
## Instructions
1. Collect the data
2. Run scripts/generate_report.py
3. Return the PDF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://asteragents.com/api/skills/manage"
payload := strings.NewReader("{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("https://asteragents.com/api/skills/manage")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asteragents.com/api/skills/manage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"skillMdContent\": \"---\\nname: PDF Report Generator\\ndescription: Generate formatted PDF reports from structured data\\n---\\n\\n## Instructions\\n\\n1. Collect the data\\n2. Run scripts/generate_report.py\\n3. Return the PDF\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"skill": {
"id": 123,
"name": "<string>",
"description": "<string>",
"fileCount": 123
}
}{
"error": "Internal Server Error"
}Authorizations
JWT token from Clerk authentication.
Must be from a user with org:admin role.
Body
application/json
Full SKILL.md content including YAML frontmatter. Max 100KB.
Example:
"---\nname: PDF Report Generator\ndescription: Generate formatted PDF reports\n---\n\n## Instructions\n\nWhen asked to generate a report..."
⌘I