Skills API
Endpoints for listing, searching, and retrieving skills.
List Skills
GET /api/v1/skills
Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| page | number | Page number (default: 1) |
| limit | number | Items per page (default: 20, max: 100) |
| sort | string | Sort by: stars, updated, name |
| order | string | Sort order: asc, desc |
| category | string | Filter by category slug |
| platform | string | Filter by platform |
Example Request
bash
curl "https://skillsmp.com/api/v1/skills?category=development&sort=stars&order=desc&limit=10"
Example Response
json
{
"data": [
{
"id": "123",
"owner": "anthropic",
"repo": "brand-guidelines",
"name": "Brand Guidelines",
"description": "Maintain consistent brand identity",
"stars": 1250,
"forks": 89,
"updatedAt": "2024-01-15T10:30:00Z",
"categories": ["marketing", "design"],
"platforms": ["claude-code", "codex", "chatgpt"]
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 150,
"totalPages": 15
}
}
Get Skill
GET /api/v1/skills/:owner/:repo
Example Request
bash
curl https://skillsmp.com/api/v1/skills/anthropic/brand-guidelines
Example Response
json
{
"data": {
"id": "123",
"owner": "anthropic",
"repo": "brand-guidelines",
"name": "Brand Guidelines",
"description": "Maintain consistent brand identity across all AI-generated content",
"content": "# Brand Guidelines\n\n## Overview...",
"stars": 1250,
"forks": 89,
"watchers": 45,
"openIssues": 3,
"license": "MIT",
"createdAt": "2023-06-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"pushedAt": "2024-01-14T15:00:00Z",
"categories": ["marketing", "design"],
"platforms": ["claude-code", "codex", "chatgpt"],
"author": {
"name": "Anthropic",
"avatar": "https://github.com/anthropic.png"
},
"installCommands": {
"claudeCode": "claude skill add anthropic/brand-guidelines",
"codex": "codex config add-skill anthropic/brand-guidelines",
"chatgpt": "Copy to Custom Instructions"
}
}
}
Get Skill Content
GET /api/v1/skills/:owner/:repo/content
Returns the raw SKILL.md content.
Example Request
bash
curl https://skillsmp.com/api/v1/skills/anthropic/brand-guidelines/content
Example Response
json
{
"data": {
"content": "---\nname: Brand Guidelines\n...",
"sha": "abc123def",
"size": 4523
}
}
Get Skill Stats
GET /api/v1/skills/:owner/:repo/stats
Example Response
json
{
"data": {
"views": 15234,
"installs": 3456,
"favorites": 789,
"starHistory": [
{"date": "2024-01-01", "stars": 1100},
{"date": "2024-01-08", "stars": 1150},
{"date": "2024-01-15", "stars": 1250}
]
}
}
Error Codes
| Code | HTTP Status | Description |
|------|-------------|-------------|
| NOT_FOUND | 404 | Skill doesn't exist |
| INVALID_PARAMS | 400 | Invalid query parameters |
| RATE_LIMITED | 429 | Too many requests |
| SERVER_ERROR | 500 | Internal error |