---
title: "Import a skill from GitHub"
method: POST
path: "/api/v1/skills/import-from-github"
tags: ["Skills"]
---

# Import a skill from GitHub

`POST /api/v1/skills/import-from-github`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/skills/import-from-github`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Clones a public GitHub repo, parses a `SKILL.md`, and creates a `DRAFT` skill owned by the caller. Authenticated. Body: `repoUrl` (required) plus optional `path` to the SKILL.md within the repo.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object: The created DRAFT skill as a SkillSummary.
  - `id` string, required
  - `slug` string, required
  - `name` string, required
  - `description` string
  - `status` 'DRAFT' | 'PENDING_REVIEW' | 'PUBLISHED' | 'ARCHIVED', required
  - `visibility` string
  - `category` object
    - `name` string
    - `slug` string
  - `author` object
    - `username` string
    - `avatarUrl` string, nullable
    - `trustLevel` string
  - `platforms` string[]
  - `tags` string[]
  - `latestVersion` string
  - `installCount` integer
  - `likeCount` integer
  - `createdAt` string
  - `updatedAt` string

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
