Skills-API

Endpunkte zum Auflisten, Suchen und Abrufen von Skills.

Skills auflisten

GET /api/v1/skills

Parameter

| Parameter | Typ | Beschreibung | |-----------|------|-------------| | page | number | Seitennummer (Standard: 1) | | limit | number | Elemente pro Seite (Standard: 20, max: 100) | | sort | string | Sortieren nach: stars, updated, name | | order | string | Sortierreihenfolge: asc, desc | | category | string | Nach Kategorie-Slug filtern | | platform | string | Nach Plattform filtern |

Beispielanfrage

bash
curl "https://skillsmp.com/api/v1/skills?category=development&sort=stars&order=desc&limit=10"

Beispielantwort

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
  }
}

Skill abrufen

GET /api/v1/skills/:owner/:repo

Beispielanfrage

bash
curl https://skillsmp.com/api/v1/skills/anthropic/brand-guidelines

Beispielantwort

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"
    }
  }
}

Skill-Inhalt abrufen

GET /api/v1/skills/:owner/:repo/content

Gibt den rohen SKILL.md-Inhalt zurück.

Beispielanfrage

bash
curl https://skillsmp.com/api/v1/skills/anthropic/brand-guidelines/content

Beispielantwort

json
{
  "data": {
    "content": "---\nname: Brand Guidelines\n...",
    "sha": "abc123def",
    "size": 4523
  }
}

Skill-Statistiken abrufen

GET /api/v1/skills/:owner/:repo/stats

Beispielantwort

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}
    ]
  }
}

Fehlercodes

| Code | HTTP-Status | Beschreibung | |------|-------------|-------------| | NOT_FOUND | 404 | Skill existiert nicht | | INVALID_PARAMS | 400 | Ungültige Abfrageparameter | | RATE_LIMITED | 429 | Zu viele Anfragen | | SERVER_ERROR | 500 | Interner Fehler |