---
title: "Classify a GitHub resource"
method: POST
path: "/imports/github-resource"
---

# Classify a GitHub resource

`POST /imports/github-resource`

## Request

- Base URL: `https://superskill.sh/api`
- URL: `https://superskill.sh/api/imports/github-resource`
- Auth: none declared

Read-only classifier for GitHub resources. Uses GitHub API only, blocks unsafe hosts, redirects, traversal, symlinks and oversized responses. Upstream listing is allowed; use /imports/resource-package or hh publish-resource for explicit hosted package uploads when license and ownership allow it.

## Request body

- object
  - `url` string, required
  - `path` string
  - `action` 'classify'

## Response `200`

GitHub resource classification

- object
  - `url` string, required
  - `owner` string, required
  - `repo` string, required
  - `path` string, required
  - `classification` string, required
  - `detectedFiles` string[], required
  - `unsafeFiles` string[], required
  - `licenseStatus` string, required
  - `licenseName` string
  - `recommendedAction` string, required
  - `conversionBlocked` string
  - `archiveFetch` false, required

## Other responses

- `400`: Bad request
- `404`: Resource not found
- `413`: Bad request
- `451`: Authorization was provided but is not allowed for this action
- `502`: Dependent service unavailable

---

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